Created
May 29, 2012 15:23
-
-
Save mikeemoo/2829038 to your computer and use it in GitHub Desktop.
LowpressCmsBundle
This file contains hidden or 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 Lowpress\CmsBundle; | |
| use Symfony\Component\HttpKernel\Bundle\Bundle, | |
| Lowpress\CmsBundle\Doctrine\InheritanceListener; | |
| class LowpressCmsBundle extends Bundle | |
| { | |
| public function boot() | |
| { | |
| $em = $this->container->get('doctrine.orm.default_entity_manager'); | |
| $em->getEventManager()->addEventSubscriber(new InheritanceListener($em)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment