Commit e613fed9 authored by endi's avatar endi

use singleton method instead of old share

parent b0dbffe0
...@@ -39,8 +39,7 @@ class RestableServiceProvider extends ServiceProvider ...@@ -39,8 +39,7 @@ class RestableServiceProvider extends ServiceProvider
// Merge config to allow user overwrite. // Merge config to allow user overwrite.
$this->mergeConfigFrom($configPath, 'restable'); $this->mergeConfigFrom($configPath, 'restable');
$this->app['restable'] = $this->app->share(function ($app) $this->app->singleton('restable', function ($app) {
{
$response = new ResponseFactory($app['view'], $app['redirect']); $response = new ResponseFactory($app['view'], $app['redirect']);
$converter = new Format; $converter = new Format;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment