mirror of
https://github.com/Intervention/image.git
synced 2025-01-17 12:18:14 +01:00
laravel 4 compatibility
This commit is contained in:
parent
d6c915496f
commit
6771cbfc78
@ -63,7 +63,7 @@ class ImageServiceProvider extends ServiceProvider
|
||||
{
|
||||
if (get_class($this->app) == 'Laravel\Lumen\Application') {
|
||||
$provider = '\Intervention\Image\ImageServiceProviderLumen';
|
||||
} elseif (version_compare($this->app->version(), '5.0', '<')) {
|
||||
} elseif (version_compare(Application::VERSION, '5.0', '<')) {
|
||||
$provider = '\Intervention\Image\ImageServiceProviderLaravel4';
|
||||
} else {
|
||||
$provider = '\Intervention\Image\ImageServiceProviderLaravel5';
|
||||
|
Loading…
x
Reference in New Issue
Block a user