[FrameworkBundle] removed the Asset component dependency on FrameworkBundle
This commit is contained in:
parent
f1c1e37949
commit
1dd4e21fad
@ -4,6 +4,9 @@ UPGRADE FROM 3.1 to 3.2
|
|||||||
FrameworkBundle
|
FrameworkBundle
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
* 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
|
||||||
|
`symfony/symfony`
|
||||||
* 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
|
* The `Resources/public/css/*.css` files have been removed (they are now inlined
|
||||||
in TwigBundle).
|
in TwigBundle).
|
||||||
|
@ -4,6 +4,7 @@ CHANGELOG
|
|||||||
3.2.0
|
3.2.0
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
* 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).
|
||||||
* The `Controller::getUser()` method has been deprecated and will be removed in
|
* The `Controller::getUser()` method has been deprecated and will be removed in
|
||||||
|
@ -134,6 +134,10 @@ class FrameworkExtension extends Extension
|
|||||||
$this->registerSecurityCsrfConfiguration($config['csrf_protection'], $container, $loader);
|
$this->registerSecurityCsrfConfiguration($config['csrf_protection'], $container, $loader);
|
||||||
|
|
||||||
if ($this->isConfigEnabled($container, $config['assets'])) {
|
if ($this->isConfigEnabled($container, $config['assets'])) {
|
||||||
|
if (!class_exists('Symfony\Component\Asset\Package')) {
|
||||||
|
throw new LogicException('Asset support cannot be enabled as the Asset component is not installed.');
|
||||||
|
}
|
||||||
|
|
||||||
$this->registerAssetsConfiguration($config['assets'], $container, $loader);
|
$this->registerAssetsConfiguration($config['assets'], $container, $loader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.5.9",
|
"php": ">=5.5.9",
|
||||||
"symfony/asset": "~2.8|~3.0",
|
|
||||||
"symfony/cache": "~3.2",
|
"symfony/cache": "~3.2",
|
||||||
"symfony/class-loader": "~3.2",
|
"symfony/class-loader": "~3.2",
|
||||||
"symfony/dependency-injection": "~3.2",
|
"symfony/dependency-injection": "~3.2",
|
||||||
@ -38,6 +37,7 @@
|
|||||||
"doctrine/annotations": "~1.0"
|
"doctrine/annotations": "~1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
"symfony/asset": "~2.8|~3.0",
|
||||||
"symfony/browser-kit": "~2.8|~3.0",
|
"symfony/browser-kit": "~2.8|~3.0",
|
||||||
"symfony/console": "~2.8.8|~3.0.8|~3.1.2|~3.2",
|
"symfony/console": "~2.8.8|~3.0.8|~3.1.2|~3.2",
|
||||||
"symfony/css-selector": "~2.8|~3.0",
|
"symfony/css-selector": "~2.8|~3.0",
|
||||||
|
Reference in New Issue
Block a user