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