Skip to content

Instantly share code, notes, and snippets.

View Wharenn's full-sized avatar

Romain Mouillard Wharenn

View GitHub Profile
* When defining parameters, in what case should we:
* - add the question mark (?) before the type?
* - add the default value
* In this example `MyClass` can be replaced by any class or any scalar type (int, string, array, iterable, object...)
class Foo
Wharenn / Jenkinsfile
Created February 14, 2020 09:50 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
Wharenn / AppExtension.php
Last active February 6, 2019 13:18
StringReferenceProcessor to resolve id references to others fixtures when not set in a relation
namespace App\Bundle\DependencyInjection;
use App\Fixtures\StringReferenceProcessor;
use Sonata\ArticleBundle\Model\FragmentInterface;
use Sonata\BlockBundle\Model\BlockInterface;
use Symfony\Component\Config\FileLocator;