This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\Monolog; | |
use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy; | |
use Symfony\Component\HttpKernel\Exception\HttpException; | |
class LimitedErrorActivationStrategy extends ErrorLevelActivationStrategy | |
{ | |
public function __construct() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace PlatformBundle\Form\Extension; | |
use Symfony\Component\Form\AbstractTypeExtension; | |
use Symfony\Component\Form\Extension\Core\Type\TextType; | |
use Symfony\Component\Form\FormInterface; | |
use Symfony\Component\Form\FormView; | |
use Symfony\Component\OptionsResolver\OptionsResolver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\DataFixtures\Processor; | |
use AppBundle\Entity\Theme; | |
use AppBundle\Entity\ThemeRepository; | |
use AppBundle\File\Theme\BackgroundFile; | |
use Nelmio\Alice\ProcessorInterface; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
framework: | |
workflows: | |
pull_request: | |
type: 'state_machine' | |
supports: | |
- AppBundle\Entity\PullRequest | |
places: | |
- init | |
- foo | |
- bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$finder = PhpCsFixer\Finder::create() | |
->in(__DIR__.'/backend/src') | |
->in(__DIR__.'/backend/tests'); | |
return PhpCsFixer\Config::create() | |
->finder($finder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$errors = []; | |
foreach ($form->getErrors(true, true) as $error) { | |
$errors[$error->getOrigin()->getName()] = $error->getMessage(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Model\Address (local): | |
address_{1..20}: | |
street: <streetName()> | |
city: <city()> | |
state: 'NC' | |
zip: <postcode()> | |
Entity\Foo: | |
foo_{1..20}: | |
name (unique): <company()> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\DataFixtures\Faker; | |
use Doctrine\Common\Collections\ArrayCollection; | |
class ArrayCollectionProvider | |
{ | |
public function ArrayCollection($elements) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
repository.bucket: | |
class: AppBundle\Entity\BucketRepository | |
factory: ['@doctrine.orm.default_entity_manager', getRepository] | |
arguments: [AppBundle\Entity\Bucket] |