mirror of
https://github.com/Intervention/image.git
synced 2025-01-17 20:28:21 +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') {
|
if (get_class($this->app) == 'Laravel\Lumen\Application') {
|
||||||
$provider = '\Intervention\Image\ImageServiceProviderLumen';
|
$provider = '\Intervention\Image\ImageServiceProviderLumen';
|
||||||
} elseif (version_compare($this->app->version(), '5.0', '<')) {
|
} elseif (version_compare(Application::VERSION, '5.0', '<')) {
|
||||||
$provider = '\Intervention\Image\ImageServiceProviderLaravel4';
|
$provider = '\Intervention\Image\ImageServiceProviderLaravel4';
|
||||||
} else {
|
} else {
|
||||||
$provider = '\Intervention\Image\ImageServiceProviderLaravel5';
|
$provider = '\Intervention\Image\ImageServiceProviderLaravel5';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user