Метод | Описание | |
---|---|---|
boot ( Silex\Application $app ) | ||
getServiceProviders ( ) | ||
getSubscribedEvents ( ) | ||
register ( Silex\Application $app ) |
Метод | Описание | |
---|---|---|
registerServices ( Silex\Application $app ) | Register additional services for the extension. | |
subscribe ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) | Define events to listen to here. |
final public register ( Silex\Application $app ) | ||
$app | Silex\Application |
$app['koala'] = $app->share( function ($app) { return new Koala($app['drop.bear']); } );
protected registerServices ( Silex\Application $app ) | ||
$app | Silex\Application |
protected subscribe ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) | ||
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface |