mirror of
https://github.com/Intervention/image.git
synced 2025-08-14 01:44:03 +02:00
Don't run service provider boot method if absent
This is an actual fix for #621
This commit is contained in:
@@ -40,8 +40,10 @@ class ImageServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
|
if (method_exists($this->provider, 'boot')) {
|
||||||
return $this->provider->boot();
|
return $this->provider->boot();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register the service provider.
|
* Register the service provider.
|
||||||
|
Reference in New Issue
Block a user