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());
}
}