1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-31 01:29:51 +02:00

Set default driver configuration

This commit is contained in:
Oliver Vogel
2023-10-21 11:26:52 +02:00
parent f0e7abb56b
commit 4b7234e0cf

View File

@@ -11,7 +11,7 @@ class ImageManager
private static $required_options = ['driver'];
public function __construct(protected array $options)
public function __construct(protected array $options = ['driver' => 'gd'])
{
if (count(array_intersect(array_keys($options), self::$required_options)) != count(self::$required_options)) {
throw new Exceptions\ConfigurationException(