mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Move dependencies call to boot method
This commit is contained in:
@@ -41,7 +41,13 @@ class ConfigurationServiceProvider implements ServiceProviderInterface
|
|||||||
$app['debug']
|
$app['debug']
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function boot(SilexApplication $app)
|
||||||
|
{
|
||||||
$app['dispatcher'] = $app->share(
|
$app['dispatcher'] = $app->share(
|
||||||
$app->extend('dispatcher', function($dispatcher, SilexApplication $app){
|
$app->extend('dispatcher', function($dispatcher, SilexApplication $app){
|
||||||
$dispatcher->addSubscriber(new TrustedProxySubscriber($app['phraseanet.configuration']));
|
$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) {
|
$app['phraseanet.file-serve'] = $app->share(function (Application $app) {
|
||||||
return ServeFileResponseFactory::create($app);
|
return ServeFileResponseFactory::create($app);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function boot(Application $app)
|
||||||
|
{
|
||||||
$app['dispatcher'] = $app->share(
|
$app['dispatcher'] = $app->share(
|
||||||
$app->extend('dispatcher', function($dispatcher, Application $app){
|
$app->extend('dispatcher', function($dispatcher, Application $app){
|
||||||
$dispatcher->addSubscriber(new XSendFileSubscriber($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