diff --git a/lib/Alchemy/Phrasea/Core/Provider/BorderManagerServiceProvider.php b/lib/Alchemy/Phrasea/Core/Provider/BorderManagerServiceProvider.php index 60fc5f4de2..c40f7fcfed 100644 --- a/lib/Alchemy/Phrasea/Core/Provider/BorderManagerServiceProvider.php +++ b/lib/Alchemy/Phrasea/Core/Provider/BorderManagerServiceProvider.php @@ -22,18 +22,17 @@ class BorderManagerServiceProvider implements ServiceProviderInterface { $app['border-manager'] = $app->share(function(Application $app) { - $configuration = $app['phraseanet.configuration'] - ->getService($app['phraseanet.configuration'] - ->getBorder()); + $configuration = $app['phraseanet.configuration'] + ->getService($app['phraseanet.configuration'] + ->getBorder()); - $service = Builder::create($app, $configuration); + $service = Builder::create($app, $configuration); - return $service->getDriver(); - }); + return $service->getDriver(); + }); } public function boot(Application $app) { - } } diff --git a/lib/Alchemy/Phrasea/Core/Provider/BrowserServiceProvider.php b/lib/Alchemy/Phrasea/Core/Provider/BrowserServiceProvider.php index 1dae8a41e7..8f9902ce98 100644 --- a/lib/Alchemy/Phrasea/Core/Provider/BrowserServiceProvider.php +++ b/lib/Alchemy/Phrasea/Core/Provider/BrowserServiceProvider.php @@ -20,12 +20,11 @@ class BrowserServiceProvider implements ServiceProviderInterface public function register(Application $app) { $app['browser'] = $app->share(function($app) { - return new \Browser(); - }); + return new \Browser(); + }); } public function boot(Application $app) { - } } diff --git a/lib/Alchemy/Phrasea/Core/Provider/CacheServiceProvider.php b/lib/Alchemy/Phrasea/Core/Provider/CacheServiceProvider.php index ace8a7192d..eb35bef7c1 100644 --- a/lib/Alchemy/Phrasea/Core/Provider/CacheServiceProvider.php +++ b/lib/Alchemy/Phrasea/Core/Provider/CacheServiceProvider.php @@ -20,33 +20,28 @@ class CacheServiceProvider implements ServiceProviderInterface public function register(Application $app) { - - $app['phraseanet.cache-service'] = $app->share(function(Application $app) { - if ( ! file_exists(__DIR__ . '/../../../../../tmp/cache_registry.yml')) { - touch(__DIR__ . '/../../../../../tmp/cache_registry.yml'); - } + if ( ! file_exists(__DIR__ . '/../../../../../tmp/cache_registry.yml')) { + touch(__DIR__ . '/../../../../../tmp/cache_registry.yml'); + } - return new CacheManager($app, new \SplFileInfo(__DIR__ . '/../../../../../tmp/cache_registry.yml')); - }); + return new CacheManager($app, new \SplFileInfo(__DIR__ . '/../../../../../tmp/cache_registry.yml')); + }); $app['cache'] = $app->share(function(Application $app) { - - return $app['phraseanet.cache-service'] - ->get('MainCache', $app['phraseanet.configuration']->getCache()) - ->getDriver(); - }); + return $app['phraseanet.cache-service'] + ->get('MainCache', $app['phraseanet.configuration']->getCache()) + ->getDriver(); + }); $app['opcode-cache'] = $app->share(function(Application $app) { - - return $app['phraseanet.cache-service'] - ->get('OpcodeCache', $app['phraseanet.configuration']->getOpcodeCache()) - ->getDriver(); - }); + return $app['phraseanet.cache-service'] + ->get('OpcodeCache', $app['phraseanet.configuration']->getOpcodeCache()) + ->getDriver(); + }); } public function boot(Application $app) { - } } diff --git a/lib/Alchemy/Phrasea/Core/Provider/ConfigurationServiceProvider.php b/lib/Alchemy/Phrasea/Core/Provider/ConfigurationServiceProvider.php index be1165f6a4..1837c8d558 100644 --- a/lib/Alchemy/Phrasea/Core/Provider/ConfigurationServiceProvider.php +++ b/lib/Alchemy/Phrasea/Core/Provider/ConfigurationServiceProvider.php @@ -22,7 +22,6 @@ class ConfigurationServiceProvider implements ServiceProviderInterface public function register(SilexApplication $app) { $app['phraseanet.configuration'] = $app->share(function(Application $app) { - return Configuration::build(null, $app->getEnvironment()); }); } diff --git a/lib/Alchemy/Phrasea/Core/Provider/ORMServiceProvider.php b/lib/Alchemy/Phrasea/Core/Provider/ORMServiceProvider.php index 5addc4ae23..299cac57a8 100644 --- a/lib/Alchemy/Phrasea/Core/Provider/ORMServiceProvider.php +++ b/lib/Alchemy/Phrasea/Core/Provider/ORMServiceProvider.php @@ -21,17 +21,15 @@ class ORMServiceProvider implements ServiceProviderInterface public function register(Application $app) { $app['EM'] = $app->share(function(Application $app) { - - return Builder::create( - $app, $app['phraseanet.configuration'] - ->getService($app['phraseanet.configuration'] - ->getOrm()) - )->getDriver(); - }); + return Builder::create( + $app, $app['phraseanet.configuration'] + ->getService($app['phraseanet.configuration'] + ->getOrm()) + )->getDriver(); + }); } public function boot(Application $app) { - } }