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

Merge pull request #731 from tremby/fix-lumen-support

Don't run service provider boot method if absent
This commit is contained in:
Oliver Vogel
2017-06-03 20:31:08 +02:00
committed by GitHub

View File

@@ -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.