[FrameworkBundle] removed the Security Core and Security CSRF component dependencies on FrameworkBundle
This commit is contained in:
parent
6acf54f26b
commit
d703784d1f
@ -4,6 +4,10 @@ UPGRADE FROM 3.1 to 3.2
|
|||||||
FrameworkBundle
|
FrameworkBundle
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
* The `symfony/security-core` and `symfony/security-csrf` dependencies have
|
||||||
|
been removed; require them via `composer require symfony/security-core
|
||||||
|
symfony/security-csrf` if you depend on them and don't already depend on
|
||||||
|
`symfony/symfony`
|
||||||
* The `symfony/asset` dependency has been removed; require it via `composer
|
* The `symfony/asset` dependency has been removed; require it via `composer
|
||||||
require symfony/asset` if you depend on it and don't already depend on
|
require symfony/asset` if you depend on it and don't already depend on
|
||||||
`symfony/symfony`
|
`symfony/symfony`
|
||||||
|
@ -4,6 +4,7 @@ CHANGELOG
|
|||||||
3.2.0
|
3.2.0
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
* Removed `symfony/security-core` and `symfony/security-csrf` from the list of required dependencies in `composer.json`
|
||||||
* Removed `symfony/asset` from the list of required dependencies in `composer.json`
|
* Removed `symfony/asset` from the list of required dependencies in `composer.json`
|
||||||
* The `Resources/public/images/*` files have been removed.
|
* The `Resources/public/images/*` files have been removed.
|
||||||
* The `Resources/public/css/*.css` files have been removed (they are now inlined in TwigBundle).
|
* The `Resources/public/css/*.css` files have been removed (they are now inlined in TwigBundle).
|
||||||
|
@ -1006,6 +1006,10 @@ class FrameworkExtension extends Extension
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!class_exists('Symfony\Component\Security\Csrf\CsrfToken')) {
|
||||||
|
throw new LogicException('CSRF support cannot be enabled as the Security CSRF component is not installed.');
|
||||||
|
}
|
||||||
|
|
||||||
if (!$this->sessionConfigEnabled) {
|
if (!$this->sessionConfigEnabled) {
|
||||||
throw new \LogicException('CSRF protection needs sessions to be enabled.');
|
throw new \LogicException('CSRF protection needs sessions to be enabled.');
|
||||||
}
|
}
|
||||||
|
@ -28,8 +28,6 @@
|
|||||||
"symfony/filesystem": "~2.8|~3.0",
|
"symfony/filesystem": "~2.8|~3.0",
|
||||||
"symfony/finder": "~2.8|~3.0",
|
"symfony/finder": "~2.8|~3.0",
|
||||||
"symfony/routing": "~3.0",
|
"symfony/routing": "~3.0",
|
||||||
"symfony/security-core": "~3.2",
|
|
||||||
"symfony/security-csrf": "~2.8|~3.0",
|
|
||||||
"symfony/stopwatch": "~2.8|~3.0",
|
"symfony/stopwatch": "~2.8|~3.0",
|
||||||
"symfony/templating": "~2.8|~3.0",
|
"symfony/templating": "~2.8|~3.0",
|
||||||
"symfony/translation": "~2.8|~3.0",
|
"symfony/translation": "~2.8|~3.0",
|
||||||
@ -47,6 +45,8 @@
|
|||||||
"symfony/form": "~2.8|~3.0",
|
"symfony/form": "~2.8|~3.0",
|
||||||
"symfony/expression-language": "~2.8|~3.0",
|
"symfony/expression-language": "~2.8|~3.0",
|
||||||
"symfony/process": "~2.8|~3.0",
|
"symfony/process": "~2.8|~3.0",
|
||||||
|
"symfony/security-core": "~3.2",
|
||||||
|
"symfony/security-csrf": "~2.8|~3.0",
|
||||||
"symfony/serializer": "~2.8|~3.0",
|
"symfony/serializer": "~2.8|~3.0",
|
||||||
"symfony/validator": "~3.2",
|
"symfony/validator": "~3.2",
|
||||||
"symfony/yaml": "~3.2",
|
"symfony/yaml": "~3.2",
|
||||||
|
Reference in New Issue
Block a user