PHP / Assetic - 您已请求不存在的参数“assetic.read_from”

时间:2015-01-28 20:54:47

标签: php symfony assetic

这很奇怪。在我的项目上运行$ composer update之后,我突然得到了

  

[Symfony的\元器件\ DependencyInjection \异常\ ParameterNotFoundException]
    您已请求不存在的参数“assetic.read_from”。

错误。检查Symfony 2 docsassetic.read_from仍然是有效的配置设置。我当前的config.yml有:

assetic:
    read_from:      "%kernel.root_dir%/../../www/www"
    write_to:       "%assetic.read_from%"

手动删除缓存无济于事。我可以注释掉这两行,它删除了抛出的异常,但这并没有真正解决潜在的问题。

是否删除/弃用了read_fromwrite_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"
}

0 个答案:

没有答案