Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure driver by passing its id string #1414

Open
olivervogel opened this issue Jan 8, 2025 · 0 comments
Open

Configure driver by passing its id string #1414

olivervogel opened this issue Jan 8, 2025 · 0 comments

Comments

@olivervogel
Copy link
Member

olivervogel commented Jan 8, 2025

Describe the feature you'd like

Currently you have to pass the driver by its full classname or by an object to the ImageManager::class.

$manager = new ImageManager(new Driver());
$manager = new ImageManager(Driver::class);

In version 2, a string (either gd or imagick) had to be passed to the ImageManager. This could be made possible again using the respective driver ID.

$manager = new ImageManager('gd');

Is your feature request related to a problem? Please describe.

When migrating from version 2, there might still be old configuration values like gd or imagick which then result in errors. See #1413

@olivervogel olivervogel changed the title Pass driver by its id. Configure driver by passing its id string Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant