Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2ef397

Browse files
Merge branch '4.3' into 4.4
* 4.3: cs fix cs fix [HttpKernel] Remove outdated docblock comment Fix handling for session parameters
2 parents e132c42 + 2c1f349 commit a2ef397

File tree

10 files changed

+17
-9
lines changed

10 files changed

+17
-9
lines changed

src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Bridge\ProxyManager\Tests\LazyProxy\PhpDumper;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use ProxyManager\Version;
1615
use Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper;
1716
use Symfony\Component\DependencyInjection\Definition;
1817
use Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\DumperInterface;

src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ abstract protected function describeEventDispatcherListeners(EventDispatcherInte
174174
/**
175175
* Describes a callable.
176176
*
177-
* @param callable $callable
177+
* @param mixed $callable
178178
*/
179179
abstract protected function describeCallable($callable, array $options = []);
180180

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ private function registerSessionConfiguration(array $config, ContainerBuilder $c
898898
// session storage
899899
$container->setAlias('session.storage', $config['storage_id'])->setPrivate(true);
900900
$options = ['cache_limiter' => '0'];
901-
foreach (['name', 'cookie_lifetime', 'cookie_path', 'cookie_domain', 'cookie_secure', 'cookie_httponly', 'cookie_samesite', 'use_cookies', 'gc_maxlifetime', 'gc_probability', 'gc_divisor'] as $key) {
901+
foreach (['name', 'cookie_lifetime', 'cookie_path', 'cookie_domain', 'cookie_secure', 'cookie_httponly', 'cookie_samesite', 'use_cookies', 'gc_maxlifetime', 'gc_probability', 'gc_divisor', 'sid_length', 'sid_bits_per_character'] as $key) {
902902
if (isset($config[$key])) {
903903
$options[$key] = $config[$key];
904904
}

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
'gc_maxlifetime' => 90000,
3838
'gc_divisor' => 108,
3939
'gc_probability' => 1,
40+
'sid_length' => 22,
41+
'sid_bits_per_character' => 4,
4042
'save_path' => '/path/to/sessions',
4143
],
4244
'assets' => [

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/full.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<framework:ssi enabled="true" />
1616
<framework:profiler only-exceptions="true" enabled="false" />
1717
<framework:router resource="%kernel.project_dir%/config/routing.xml" type="xml" />
18-
<framework:session gc-maxlifetime="90000" gc-probability="1" gc-divisor="108" storage-id="session.storage.native" handler-id="session.handler.native_file" name="_SYMFONY" cookie-lifetime="86400" cookie-path="/" cookie-domain="example.com" cookie-secure="true" cookie-httponly="false" use-cookies="true" save-path="/path/to/sessions" />
18+
<framework:session gc-maxlifetime="90000" gc-probability="1" gc-divisor="108" storage-id="session.storage.native" handler-id="session.handler.native_file" name="_SYMFONY" cookie-lifetime="86400" cookie-path="/" cookie-domain="example.com" cookie-secure="true" cookie-httponly="false" use-cookies="true" save-path="/path/to/sessions" sid-length="22" sid-bits-per-character="4" />
1919
<framework:request>
2020
<framework:format name="csv">
2121
<framework:mime-type>text/csv</framework:mime-type>

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/full.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ framework:
2929
gc_probability: 1
3030
gc_divisor: 108
3131
gc_maxlifetime: 90000
32+
sid_length: 22
33+
sid_bits_per_character: 4
3234
save_path: /path/to/sessions
3335
assets:
3436
version: v1

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,8 @@ public function testSession()
532532
$this->assertEquals(108, $options['gc_divisor']);
533533
$this->assertEquals(1, $options['gc_probability']);
534534
$this->assertEquals(90000, $options['gc_maxlifetime']);
535+
$this->assertEquals(22, $options['sid_length']);
536+
$this->assertEquals(4, $options['sid_bits_per_character']);
535537

536538
$this->assertEquals('/path/to/sessions', $container->getParameter('session.save_path'));
537539
}

src/Symfony/Component/CssSelector/XPath/Translator.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ public function selectorToXPath(SelectorNode $selector, string $prefix = 'descen
114114
return ($prefix ?: '').$this->nodeToXPath($selector);
115115
}
116116

117+
/**
118+
* @return $this
119+
*/
117120
public function registerExtension(Extension\ExtensionInterface $extension): self
118121
{
119122
$this->extensions[$extension->getName()] = $extension;
@@ -139,6 +142,9 @@ public function getExtension(string $name): Extension\ExtensionInterface
139142
return $this->extensions[$name];
140143
}
141144

145+
/**
146+
* @return $this
147+
*/
142148
public function registerParserShortcut(ParserInterface $shortcut): self
143149
{
144150
$this->shortcutParsers[] = $shortcut;

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ private function addParameters(): string
200200
/**
201201
* Dumps callable to YAML format.
202202
*
203-
* @param callable $callable
204-
*
205-
* @return callable
203+
* @param mixed $callable
206204
*/
207205
private function dumpCallable($callable)
208206
{

src/Symfony/Component/HttpKernel/Bundle/Bundle.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
1919

2020
/**
21-
* An implementation of BundleInterface that adds a few conventions
22-
* for DependencyInjection extensions and Console commands.
21+
* An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions.
2322
*
2423
* @author Fabien Potencier <[email protected]>
2524
*/

0 commit comments

Comments
 (0)