当我尝试为我的生产模式生成css和javascript文件时:
php app/console assetic:dump --env=prod
我遇到了以下问题
[Twig_Error_Loader]
The "/Applications/MAMP/htdocs/Symfony/vendor/symfony/swiftmailer-bundle/Sy
mfony/Bundle/SwiftmailerBundle/Resources/views" directory does not exist.
是的,它确实不存在。无论如何为什么要找这个文件?
有关我使用以下版本的更多信息
复制我的composer.json文件的粘贴
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.3.*",
"symfony/swiftmailer-bundle": "2.3.*",
"symfony/monolog-bundle": "2.3.*",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"sensio/generator-bundle": "2.3.*",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "dev-master",
"hwi/oauth-bundle": "0.4.*@dev"
},
我使用编辑器更新组件但仍然遇到同样的问题。