Created
April 30, 2011 09:35
-
-
Save immutef/949555 to your computer and use it in GitHub Desktop.
MenuBundle EventDispatcher integration
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 Turtle\AcpBundle; | |
final class Events | |
{ | |
const onMenuConfigure = 'onMenuConfigure'; | |
} |
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 Turtle\AcpBundle; | |
use Symfony\Component\HttpKernel\Bundle\Bundle, | |
Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Turtle\AcpBundle\DependencyInjection\Compiler\ConfigureMenuListenersPass; | |
class TurtleAcpBundle extends Bundle | |
{ | |
/** | |
* {@inheritDoc} | |
*/ | |
public function build(ContainerBuilder $container) | |
{ | |
parent::build($container); | |
$container->addCompilerPass(new ConfigureMenuListenersPass()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment