PHP Class Bolt\EventListener\ConfigListener

This is a temporary solution to remove the configuration checks from pre-request, until such time as configuration can be refactored.
Author: Gawain Lynch ([email protected])
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Mostrar archivo Open project: bolt/bolt

Public Methods

Method Description
__construct ( Silex\Application $app ) Constructor.
getSubscribedEvents ( )
onRequest ( GetResponseEvent $event ) : null Normal functions.
onRequestEarly ( GetResponseEvent $event ) Early functions.

Private Methods

Method Description
setGlobals ( boolean $safe ) : array Get the parameters that will be used to update Bolt's registered Twig globals.
setVersionChangeNotice ( ) If required set a notification of version change, for admin users.

Method Details

__construct() public method

Constructor.
public __construct ( Silex\Application $app )
$app Silex\Application

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

onRequest() public method

Normal functions.
public onRequest ( GetResponseEvent $event ) : null
$event Symfony\Component\HttpKernel\Event\GetResponseEvent
return null

onRequestEarly() public method

Early functions.
public onRequestEarly ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent