public static function onApplicationReady(Event $event)
    {
        $app = $event->getTarget();

        $twigAdapter = $app->getRenderer()->getAdapter('twig');
        if (null === $twigAdapter) {
            return;
        }

        foreach ($app->getContainer()->findTaggedServiceIds('twig.extension') as $id => $data) {
            $twigAdapter->addExtension($app->getContainer()->get($id));
        }
    }
public static function onApplicationReady(Event $event)
    {
        $app = $event->getTarget();

        $twigAdapter = $app->getRenderer()->getAdapter('twig');
        if (null === $twigAdapter) {
            return;
        }

        foreach ($app->getContainer()->findTaggedServiceIds('twig.extension') as $id => $data) {
            $twigAdapter->addExtension($app->getContainer()->get($id));
        }
    }
public static function onApplicationReady ( Event $ event ) { $ app = $ event -> getTarget ( ) ; $ twigAdapter = $ app -> getRenderer ( ) -> getAdapter ( 'twig' ) ; if ( null === $ twigAdapter ) { return ; } foreach ( $ app -> getContainer ( ) -> findTaggedServiceIds ( 'twig.extension' ) as $ id => $ data ) { $ twigAdapter -> addExtension ( $ app -> getContainer ( ) -> get ( $ id ) ) ; } }
occurs on `bbapplication.init`.

@param Event $event
occurs on bbapplication . init .