1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 08:40:33 +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,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();
}
} }
/** /**