Skip to content

Commit b65ebc7

Browse files
committed
feature #22296 Bump monolog to 1.19 and use the agent regex const from parent (redthor)
This PR was merged into the 3.3-dev branch. Discussion ---------- Bump monolog to 1.19 and use the agent regex const from parent See #22264 | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | refer to #22264 | License | MIT | Doc PR | Bump monolog and use const from parent. See #22264 (comment) I went for `static` instead of `self` in case anyone wanted to easily override just the agent string. Commits ------- 69f9586 Bump monolog to 1.19 and use the agent regex const from parent, see #22264
2 parents 3aeac5a + 69f9586 commit b65ebc7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function onKernelResponse(FilterResponseEvent $event)
4141
return;
4242
}
4343

44-
if (!preg_match('{\b(?:Chrome/\d+(?:\.\d+)*|HeadlessChrome|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}', $event->getRequest()->headers->get('User-Agent'))) {
44+
if (!preg_match(static::USER_AGENT_REGEX, $event->getRequest()->headers->get('User-Agent'))) {
4545
$this->sendHeaders = false;
4646
$this->headers = array();
4747

src/Symfony/Bridge/Monolog/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=5.5.9",
20-
"monolog/monolog": "~1.11",
20+
"monolog/monolog": "~1.19",
2121
"symfony/http-kernel": "~2.8|~3.0"
2222
},
2323
"require-dev": {

0 commit comments

Comments
 (0)