Skip to content

Commit b831299

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: [HttpFoundation] Use the correct syntax for session gc based on Pdo driver Revert "bug #24987 [Console] Fix global console flag when used in chain (Simperfit)" Revert "bug #25487 [Console] Fix a bug when passing a letter that could be an alias (Simperfit)" Disable CSP header on exception pages only in debug Fixed submitting disabled buttons Fixed Button::setParent() when already submitted Improve assertions SCA: get rid of repetitive calls allow null values for root nodes in YAML configs [VarDumper] Fix docblock Improve phpdoc to make it more explicit
2 parents 5d64ada + 8c8b8fa commit b831299

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

Console/Application.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ public function __construct(KernelInterface $kernel)
3535

3636
parent::__construct('Symfony', Kernel::VERSION.' - '.$kernel->getName().'/'.$kernel->getEnvironment().($kernel->isDebug() ? '/debug' : ''));
3737

38-
$this->getDefinition()->addOption(new InputOption('--shell', '-s', InputOption::VALUE_NONE, 'Launch the shell.'));
39-
$this->getDefinition()->addOption(new InputOption('--process-isolation', null, InputOption::VALUE_NONE, 'Launch commands from shell as a separate process.'));
40-
$this->getDefinition()->addOption(new InputOption('--env', '-e', InputOption::VALUE_REQUIRED, 'The Environment name.', $kernel->getEnvironment()));
41-
$this->getDefinition()->addOption(new InputOption('--no-debug', null, InputOption::VALUE_NONE, 'Switches off debug mode.'));
38+
$inputDefinition = $this->getDefinition();
39+
$inputDefinition->addOption(new InputOption('--shell', '-s', InputOption::VALUE_NONE, 'Launch the shell.'));
40+
$inputDefinition->addOption(new InputOption('--process-isolation', null, InputOption::VALUE_NONE, 'Launch commands from shell as a separate process.'));
41+
$inputDefinition->addOption(new InputOption('--env', '-e', InputOption::VALUE_REQUIRED, 'The Environment name.', $kernel->getEnvironment()));
42+
$inputDefinition->addOption(new InputOption('--no-debug', null, InputOption::VALUE_NONE, 'Switches off debug mode.'));
4243
}
4344

4445
/**

Console/Descriptor/Descriptor.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ protected function write($content, $decorated = false)
110110
protected function renderTable(Table $table, $decorated = false)
111111
{
112112
if (!$decorated) {
113-
$table->getStyle()->setCellRowFormat('%s');
114-
$table->getStyle()->setCellRowContentFormat('%s');
115-
$table->getStyle()->setCellHeaderFormat('%s');
113+
$tableStyle = $table->getStyle();
114+
$tableStyle->setCellRowFormat('%s');
115+
$tableStyle->setCellRowContentFormat('%s');
116+
$tableStyle->setCellHeaderFormat('%s');
116117
}
117118

118119
$table->render();

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,9 @@ private function registerTemplatingConfiguration(array $config, $ide, ContainerB
471471
if (1 === count($engines)) {
472472
$container->setAlias('templating', (string) reset($engines));
473473
} else {
474+
$templateEngineDefinition = $container->getDefinition('templating.engine.delegating');
474475
foreach ($engines as $engine) {
475-
$container->getDefinition('templating.engine.delegating')->addMethodCall('addEngine', array($engine));
476+
$templateEngineDefinition->addMethodCall('addEngine', array($engine));
476477
}
477478
$container->setAlias('templating', 'templating.engine.delegating');
478479
}

HttpCache/HttpCache.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ public function __construct(HttpKernelInterface $kernel, $cacheDir = null)
5252
protected function forward(Request $request, $raw = false, Response $entry = null)
5353
{
5454
$this->getKernel()->boot();
55-
$this->getKernel()->getContainer()->set('cache', $this);
56-
$this->getKernel()->getContainer()->set($this->getSurrogate()->getName(), $this->getSurrogate());
55+
$container = $this->getKernel()->getContainer();
56+
$container->set('cache', $this);
57+
$container->set($this->getSurrogate()->getName(), $this->getSurrogate());
5758

5859
return parent::forward($request, $raw, $entry);
5960
}

0 commit comments

Comments
 (0)