mirror of
https://github.com/Intervention/image.git
synced 2025-08-13 17:34:04 +02:00
Update ImageServiceProviderLumen 5.4
Update ImageServiceProviderLumen based on 5.4 releases, replacing of share by singleton
This commit is contained in:
@@ -25,7 +25,7 @@ class ImageServiceProviderLumen extends ServiceProvider
|
|||||||
$app->configure('image');
|
$app->configure('image');
|
||||||
|
|
||||||
// create image
|
// create image
|
||||||
$app['image'] = $app->share(function ($app) {
|
$app->singleton('image',function ($app) {
|
||||||
return new ImageManager($app['config']->get('image'));
|
return new ImageManager($app['config']->get('image'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user