Skip to content

Instantly share code, notes, and snippets.

Avatar

Romain Mouillard Wharenn

  • Meero
  • Paris
View GitHub Profile
@Wharenn
Wharenn / AppExtension.php
Last active Feb 6, 2019
StringReferenceProcessor to resolve id references to others fixtures when not set in a relation
View AppExtension.php
<?php
declare(strict_types=1);
namespace App\Bundle\DependencyInjection;
use App\Fixtures\StringReferenceProcessor;
use Sonata\ArticleBundle\Model\FragmentInterface;
use Sonata\BlockBundle\Model\BlockInterface;
use Symfony\Component\Config\FileLocator;
@Wharenn
Wharenn / Jenkinsfile
Created Feb 14, 2020 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
View Jenkinsfile
Some Jenkinsfile examples
View parameterTyping.php
<?php
/**
* 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