Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Insight] The boot method in a bundle should be empty. - in Bundle/CoreBundle/VictoireCoreBundle.php, line 18 #114

Closed
talbotseb opened this issue Jun 2, 2015 · 0 comments

Comments

@talbotseb
Copy link

in Bundle/CoreBundle/VictoireCoreBundle.php, line 18

VictoireCoreBundle has a non-empty boot method, which may slow down Symfony2 application boot.

class VictoireCoreBundle extends Bundle
{
    /**
     * create admin menu, add listeners for generate contextual menu item and dispatch globals item menus
     */
    public function boot()
    {
        $driverChain = $this->container->get('doctrine.orm.entity_manager')->getConfiguration()->getMetadataDriverImpl();

        $proxyDriver = $this->container->get('victoire_core.entity_proxy.cache_driver');
        $driverChain->addDriver($proxyDriver, 'Victoire');

Posted from SensioLabsInsight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant