1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 04:08:14 +01:00

laravel 4 compatibility

This commit is contained in:
Oliver Vogel 2015-07-09 22:11:11 +02:00
parent d6c915496f
commit 6771cbfc78

View File

@ -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';