Skip to content

Instantly share code, notes, and snippets.

@philrennie
philrennie / UserBundle_Src_UserBundle_DependencyInjection_UserExtension.php
Last active October 10, 2017 17:55
Overriding user entity in FosUSerBundle to replace some associations without using @Orm\AttributeOverrides
<?php
namespace Acme\UserBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
/**
@philrennie
philrennie / keybase.md
Created October 14, 2014 15:42
Keybase proof

Keybase proof

I hereby claim:

  • I am philrennie on github.
  • I am philrennie (https://keybase.io/philrennie) on keybase.
  • I have a public key whose fingerprint is 2673 40B4 855F 2B10 99A1 17B6 900E B52E DC26 7F8F

To claim this, I am signing this object:

@philrennie
philrennie / Banner.php
Created May 3, 2012 12:55
Symfony2 Custom Validation Constraint - Which is never called
<?php
namespace Phil\MpbBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Phil\MpbBundle\Validator\Constraint as PhilAssert;
/**
* Phil\MpbBundle\Entity\Banner