mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Update service provider
This commit is contained in:
@@ -34,6 +34,5 @@ class BorderManagerServiceProvider implements ServiceProviderInterface
|
|||||||
|
|
||||||
public function boot(Application $app)
|
public function boot(Application $app)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -26,6 +26,5 @@ class BrowserServiceProvider implements ServiceProviderInterface
|
|||||||
|
|
||||||
public function boot(Application $app)
|
public function boot(Application $app)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -20,8 +20,6 @@ class CacheServiceProvider implements ServiceProviderInterface
|
|||||||
|
|
||||||
public function register(Application $app)
|
public function register(Application $app)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$app['phraseanet.cache-service'] = $app->share(function(Application $app) {
|
$app['phraseanet.cache-service'] = $app->share(function(Application $app) {
|
||||||
if ( ! file_exists(__DIR__ . '/../../../../../tmp/cache_registry.yml')) {
|
if ( ! file_exists(__DIR__ . '/../../../../../tmp/cache_registry.yml')) {
|
||||||
touch(__DIR__ . '/../../../../../tmp/cache_registry.yml');
|
touch(__DIR__ . '/../../../../../tmp/cache_registry.yml');
|
||||||
@@ -31,14 +29,12 @@ class CacheServiceProvider implements ServiceProviderInterface
|
|||||||
});
|
});
|
||||||
|
|
||||||
$app['cache'] = $app->share(function(Application $app) {
|
$app['cache'] = $app->share(function(Application $app) {
|
||||||
|
|
||||||
return $app['phraseanet.cache-service']
|
return $app['phraseanet.cache-service']
|
||||||
->get('MainCache', $app['phraseanet.configuration']->getCache())
|
->get('MainCache', $app['phraseanet.configuration']->getCache())
|
||||||
->getDriver();
|
->getDriver();
|
||||||
});
|
});
|
||||||
|
|
||||||
$app['opcode-cache'] = $app->share(function(Application $app) {
|
$app['opcode-cache'] = $app->share(function(Application $app) {
|
||||||
|
|
||||||
return $app['phraseanet.cache-service']
|
return $app['phraseanet.cache-service']
|
||||||
->get('OpcodeCache', $app['phraseanet.configuration']->getOpcodeCache())
|
->get('OpcodeCache', $app['phraseanet.configuration']->getOpcodeCache())
|
||||||
->getDriver();
|
->getDriver();
|
||||||
@@ -47,6 +43,5 @@ class CacheServiceProvider implements ServiceProviderInterface
|
|||||||
|
|
||||||
public function boot(Application $app)
|
public function boot(Application $app)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -22,7 +22,6 @@ class ConfigurationServiceProvider implements ServiceProviderInterface
|
|||||||
public function register(SilexApplication $app)
|
public function register(SilexApplication $app)
|
||||||
{
|
{
|
||||||
$app['phraseanet.configuration'] = $app->share(function(Application $app) {
|
$app['phraseanet.configuration'] = $app->share(function(Application $app) {
|
||||||
|
|
||||||
return Configuration::build(null, $app->getEnvironment());
|
return Configuration::build(null, $app->getEnvironment());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -21,7 +21,6 @@ class ORMServiceProvider implements ServiceProviderInterface
|
|||||||
public function register(Application $app)
|
public function register(Application $app)
|
||||||
{
|
{
|
||||||
$app['EM'] = $app->share(function(Application $app) {
|
$app['EM'] = $app->share(function(Application $app) {
|
||||||
|
|
||||||
return Builder::create(
|
return Builder::create(
|
||||||
$app, $app['phraseanet.configuration']
|
$app, $app['phraseanet.configuration']
|
||||||
->getService($app['phraseanet.configuration']
|
->getService($app['phraseanet.configuration']
|
||||||
@@ -32,6 +31,5 @@ class ORMServiceProvider implements ServiceProviderInterface
|
|||||||
|
|
||||||
public function boot(Application $app)
|
public function boot(Application $app)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user