MAJ image

This commit is contained in:
2017-10-11 13:37:06 +02:00
parent a34031f914
commit dac71b61a3
6 changed files with 233 additions and 5 deletions

View File

@@ -4,6 +4,8 @@ namespace Meoran\Images\Providers;
use Illuminate\Support\ServiceProvider;
use Intervention\Image\ImageServiceProvider;
use Meoran\Images\Console\Commands\CacheGarbageCollectorCommand;
use Meoran\Images\Console\Commands\RemoveUselessPicturesCommand;
use Spatie\LaravelImageOptimizer\ImageOptimizerServiceProvider;
class ImagesServiceProvider extends ServiceProvider
@@ -14,7 +16,7 @@ class ImagesServiceProvider extends ServiceProvider
require_once __DIR__ . '/../functions.php';
$this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');
$this->mergeConfigFrom(__DIR__ . '/../../config/image.php', 'image');
$this->mergeConfigFrom(__DIR__ . '/../../config/image.php', 'images');
$this->app->register(ImageServiceProvider::class);
@@ -26,6 +28,11 @@ class ImagesServiceProvider extends ServiceProvider
$this->publishes([
// __DIR__ . '/../../config/synchronize.php' => base_path('config/synchronize.php')
]);
$this->commands([
// CacheGarbageCollectorCommand::class,
// RemoveUselessPicturesCommand::class,
]);
}
}