Skip to content

Add support for custom screenshot drivers - #3

Merged
stevebauman merged 1 commit into
masterfrom
feature/screenshot-manager
Oct 15, 2026
Merged

stevebauman merged 1 commit into
masterfrom
feature/screenshot-manager

Conversation

@stevebauman

Copy link
Copy Markdown
Member

I've added a Laravel-style driver manager so you can register custom capture drivers with Screenshot::extend() and select them with Screenshot::driver('remote'). Chrome remains the default, and existing fluent calls continue to use the configured driver.

Drivers share the same capture builders and defaults. Screenshot::fake() records calls across all driver names, and both the manager and fake implement Contracts\Factory so you can use constructor injection in application code.

This changes the container API: inject Contracts\Factory instead of the concrete Screenshot class, and register custom drivers through extend() instead of replacing the Driver binding.

@stevebauman
stevebauman merged commit 1ad48c2 into master Oct 15, 2026
16 checks passed
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

Successfully merging this pull request may close these issues.

1 participant