PHP Class Bolt\Extension\SimpleExtension

Author: Carson Full ([email protected])
Inheritance: extends Bolt\Extension\AbstractExtension, implements Silex\ServiceProviderInterface, implements Symfony\Component\EventDispatcher\EventSubscriberInterface, use trait AssetTrait, use trait ConfigTrait, use trait Bolt\Extension\ControllerTrait, use trait Bolt\Extension\ControllerMountTrait, use trait Bolt\Extension\MenuTrait, use trait Bolt\Extension\NutTrait, use trait Bolt\Extension\TwigTrait
Show file Open project: bolt/bolt Class Usage Examples

Public Methods

Method Description
boot ( Silex\Application $app )
getServiceProviders ( )
getSubscribedEvents ( )
register ( Silex\Application $app )

Protected Methods

Method Description
registerServices ( Silex\Application $app ) Register additional services for the extension.
subscribe ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) Define events to listen to here.

Method Details

boot() public method

public boot ( Silex\Application $app )
$app Silex\Application

getServiceProviders() public method

public getServiceProviders ( )

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

register() final public method

final public register ( Silex\Application $app )
$app Silex\Application

registerServices() protected method

Example:
  $app['koala'] = $app->share(
      function ($app) {
          return new Koala($app['drop.bear']);
      }
  );
protected registerServices ( Silex\Application $app )
$app Silex\Application

subscribe() protected method

Define events to listen to here.
protected subscribe ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface