Skip to content

Commit

Permalink
Add support for custom user agent in screenshot generation
Browse files Browse the repository at this point in the history
This update includes a new service, `ScreenshotSubscriber`, that disables profiler if the user agent matches a specified one. Also, a custom user agent can now be used when using the `CreateScreenshotCommand`, and this setting is configurable in `web_client.php`. Finally, some PHPStan warnings were addressed and the "ext-sockets" package was added to the dev dependencies.
  • Loading branch information
Spomky committed Apr 7, 2024
1 parent 9f611e4 commit dcff6d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Command/CreateScreenshotCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use Symfony\Component\Panther\Client;
use Symfony\Component\Yaml\Yaml;
use Throwable;
use function assert;
use function count;

#[AsCommand(
Expand Down

0 comments on commit dcff6d9

Please sign in to comment.