[FrameworkBundle] Deprecate the security.secure_random service
This commit is contained in:
parent
f35a0d202f
commit
8b555209af
@ -14,6 +14,7 @@
|
||||
<tag name="monolog.logger" channel="security" />
|
||||
<argument>%kernel.cache_dir%/secure_random.seed</argument>
|
||||
<argument type="service" id="logger" on-invalid="ignore" />
|
||||
<deprecated>The "%service_id%" service is deprecated since Symfony 2.8 and will be removed in 3.0. Use the random_bytes() function instead.</deprecated>
|
||||
</service>
|
||||
</services>
|
||||
</container>
|
||||
|
@ -69,6 +69,7 @@ abstract class FrameworkExtensionTest extends TestCase
|
||||
$this->assertTrue($container->hasDefinition('security.csrf.token_manager'));
|
||||
}
|
||||
|
||||
/** @group legacy */
|
||||
public function testSecureRandomIsAvailableIfCsrfIsDisabled()
|
||||
{
|
||||
$container = $this->createContainerFromFile('csrf_disabled');
|
||||
|
Reference in New Issue
Block a user