Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Dec 17, 2023
1 parent 00ade0c commit 5f11cc2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Resources/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@
$container->set(GenerateManifestCommand::class);

if (extension_loaded('imagick')) {
$container->set(ImagickImageProcessor::class);
$container
->set(ImagickImageProcessor::class)
->alias('pwa.image_processor.imagick', ImagickImageProcessor::class)
;
}
if (extension_loaded('gd')) {
$container->set(GDImageProcessor::class);
$container
->set(GDImageProcessor::class)
->alias('pwa.image_processor.gd', GDImageProcessor::class)
;
}
};

0 comments on commit 5f11cc2

Please sign in to comment.