8000 Merge branch '2.8' into 3.2 · symfony/symfony@f53e81d · GitHub
[go: up one dir, main page]

Skip to content

Commit f53e81d

Browse files
committed
Merge branch '2.8' into 3.2
* 2.8: Fixes #22264 - add support for Chrome headless, see also Seldaek/monolog#966 bumped Symfony version to 2.8.20 updated VERSION for 2.8.19 updated CHANGELOG for 2.8.19 Dont call sprintf() when no placeholders are used
2 parents 757e5f7 + f92ada8 commit f53e81d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
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+)*|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}', $event->getRequest()->headers->get('User-Agent'))) {
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'))) {
4545
$this->sendHeaders = false;
4646
$this->headers = array();
4747

src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ protected function getContainerBuilder()
173173
}
174174

175175
if (!$this->getApplication()->getKernel()->isDebug()) {
176-
throw new \LogicException(sprintf('Debug information about the container is only available in debug mode.'));
176+
throw new \LogicException('Debug information about the container is only available in debug mode.');
177177
}
178178

179179
if (!is_file($cachedFile = $this->getContainer()->getParameter('debug.container.dump'))) {
180-
throw new \LogicException(sprintf('Debug information about the container could not be found. Please clear the cache and try again.'));
180+
throw new \LogicException('Debug information about the container could not be found. Please clear the cache and try again.');
181181
}
182182

183183
$container = new ContainerBuilder();

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public function setMethodCalls(array $calls = array())
269269
public function addMethodCall($method, array $arguments = array())
270270
{
271271
if (empty($method)) {
272-
throw new InvalidArgumentException(sprintf('Method name cannot be empty.'));
272+
throw new InvalidArgumentException('Method name cannot be empty.');
273273
}
274274
$this->calls[] = array($method, $arguments);
275275

src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private function addService($id, $definition)
9393
}
9494

9595
if ($definition->isSynthetic()) {
96-
$code .= sprintf(" synthetic: true\n");
96+
$code .= " synthetic: true\n";
9797
}
9898

9999
if ($definition->isDeprecated()) {
@@ -113,7 +113,7 @@ private function addService($id, $definition)
113113
}
114114

115115
if ($definition->isLazy()) {
116-
$code .= sprintf(" lazy: true\n");
116+
$code .= " lazy: true\n";
117117
}
118118

119119
if ($definition->getArguments()) {

0 commit comments

Comments
 (0)
0