1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-12 08:54:03 +02:00

Don't run service provider boot method if absent

This is an actual fix for #621
This commit is contained in:
Bart Nagel
2017-05-30 17:48:06 -07:00
parent b29b7946d6
commit c63d113976

View File

@@ -40,7 +40,9 @@ class ImageServiceProvider extends ServiceProvider
*/
public function boot()
{
return $this->provider->boot();
if (method_exists($this->provider, 'boot')) {
return $this->provider->boot();
}
}
/**