1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-09 07:16:35 +02:00

changed ServiceProvider

This commit is contained in:
Oliver Vogel
2015-01-28 20:12:55 +01:00
parent 936887fad5
commit b2b068c496

View File

@@ -13,6 +13,26 @@ class ImageServiceProvider extends ServiceProvider
*/ */
protected $defer = false; protected $defer = false;
/**
* Actual provider
*
* @var \Illuminate\Support\ServiceProvider
*/
protected $provider;
/**
* Create a new service provider instance.
*
* @param \Illuminate\Contracts\Foundation\Application $app
* @return void
*/
public function __construct($app)
{
parent::__construct($app);
$this->provider = $this->getProvider();
}
/** /**
* Bootstrap the application events. * Bootstrap the application events.
* *
@@ -20,7 +40,7 @@ class ImageServiceProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
return $this->getProvider()->boot(); return $this->provider->boot();
} }
/** /**
@@ -30,7 +50,7 @@ class ImageServiceProvider extends ServiceProvider
*/ */
public function register() public function register()
{ {
return $this->getProvider()->register(); return $this->provider->register();
} }
/** /**