这很奇怪。在我的项目上运行$ composer update
之后,我突然得到了
[Symfony的\元器件\ DependencyInjection \异常\ ParameterNotFoundException]
您已请求不存在的参数“assetic.read_from”。
错误。检查Symfony 2 docs,assetic.read_from
仍然是有效的配置设置。我当前的config.yml
有:
assetic:
read_from: "%kernel.root_dir%/../../www/www"
write_to: "%assetic.read_from%"
手动删除缓存无济于事。我可以注释掉这两行,它删除了抛出的异常,但这并没有真正解决潜在的问题。
是否删除/弃用了read_from
和write_to
隐身?或者还有其他事情发生了吗?
编辑:我的composer.json
是:
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.6.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "2.6.*",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0",
"sensio/framework-extra-bundle": "~3.0",
"incenteev/composer-parameter-handler": "~2.0",
"jms/security-extra-bundle": "dev-master",
"jms/di-extra-bundle": "dev-master",
"friendsofsymfony/user-bundle": "2.0.*@dev",
"roave/security-advisories": "dev-master"
}