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

Add support for custom user agent in screenshot generation #166

Merged
merged 3 commits into from
Apr 7, 2024

Conversation

Spomky
Copy link
Member

@Spomky Spomky commented Apr 7, 2024

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.

Target branch: 1.2.x
Resolves issue #147

  • It is a Bug fix
  • It is a New feature
  • Breaks BC
  • Includes Deprecations

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.
@Spomky Spomky added the enhancement New feature or request label Apr 7, 2024
@Spomky Spomky added this to the 1.2.0 milestone Apr 7, 2024
@Spomky Spomky self-assigned this Apr 7, 2024
@Spomky Spomky linked an issue Apr 7, 2024 that may be closed by this pull request
Spomky added 2 commits April 7, 2024 20:46
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.
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.
@Spomky Spomky merged commit 9f110f8 into 1.2.x Apr 7, 2024
7 checks passed
@Spomky Spomky deleted the features/no-profiler-for-screenshots branch April 7, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable profiler when creating screenshots
1 participant