From c630be94a49ab405f00e1826afddabf3148f0530 Mon Sep 17 00:00:00 2001 From: Alexandr Shevchenko Date: Tue, 16 Jan 2018 14:16:20 +0300 Subject: [PATCH 1/2] Have replaced 'share' method of the container to 'singleton' because in Laravel 5.4 'share' was removed --- src/Torann/Registry/RegistryServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Torann/Registry/RegistryServiceProvider.php b/src/Torann/Registry/RegistryServiceProvider.php index 0d8dcf4..f1b3d65 100644 --- a/src/Torann/Registry/RegistryServiceProvider.php +++ b/src/Torann/Registry/RegistryServiceProvider.php @@ -61,7 +61,7 @@ protected function registerRegistry() */ protected function registerCache() { - $this->app['registry.cache'] = $this->app->share(function($app) + $this->app->singleton('registry.cache', function ($app) { $meta = $app->config->get('registry.cache_path'); $timestampManager = $app->config->get('registry.timestamp_manager'); From eddc2c324289ca2f1c2b79a5b1da581e07f51838 Mon Sep 17 00:00:00 2001 From: Alexandr Shevchenko Date: Tue, 16 Jan 2018 14:42:24 +0300 Subject: [PATCH 2/2] One more share() entry --- src/Torann/Registry/RegistryServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Torann/Registry/RegistryServiceProvider.php b/src/Torann/Registry/RegistryServiceProvider.php index f1b3d65..3801fae 100644 --- a/src/Torann/Registry/RegistryServiceProvider.php +++ b/src/Torann/Registry/RegistryServiceProvider.php @@ -46,7 +46,7 @@ public function register() */ protected function registerRegistry() { - $this->app['registry'] = $this->app->share(function($app) + $this->app->singleton('registry', function($app) { $config = $app->config->get('registry', array());