mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Move dependencies call to boot method
This commit is contained in:
@@ -41,7 +41,13 @@ class ConfigurationServiceProvider implements ServiceProviderInterface
|
||||
$app['debug']
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function boot(SilexApplication $app)
|
||||
{
|
||||
$app['dispatcher'] = $app->share(
|
||||
$app->extend('dispatcher', function($dispatcher, SilexApplication $app){
|
||||
$dispatcher->addSubscriber(new TrustedProxySubscriber($app['phraseanet.configuration']));
|
||||
@@ -50,8 +56,4 @@ class ConfigurationServiceProvider implements ServiceProviderInterface
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
public function boot(SilexApplication $app)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -31,7 +31,13 @@ class FileServeServiceProvider implements ServiceProviderInterface
|
||||
$app['phraseanet.file-serve'] = $app->share(function (Application $app) {
|
||||
return ServeFileResponseFactory::create($app);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function boot(Application $app)
|
||||
{
|
||||
$app['dispatcher'] = $app->share(
|
||||
$app->extend('dispatcher', function($dispatcher, Application $app){
|
||||
$dispatcher->addSubscriber(new XSendFileSubscriber($app));
|
||||
@@ -40,11 +46,4 @@ class FileServeServiceProvider implements ServiceProviderInterface
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function boot(Application $app)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user