AsseticBundle\Module::onBootstrap PHP Method

onBootstrap() public method

Listen to the bootstrap event
public onBootstrap ( Zend\EventManager\EventInterface $e ) : array
$e Zend\EventManager\EventInterface
return array
    public function onBootstrap(EventInterface $e)
    {
        /** @var $e \Zend\Mvc\MvcEvent */
        // Only attach the Listener if the request came in through http(s)
        if (PHP_SAPI !== 'cli') {
            $app = $e->getApplication();
            $app->getServiceManager()->get('AsseticBundle\\Listener')->attach($app->getEventManager());
        }
    }