【发布时间】:2015-01-23 16:50:19
【问题描述】:
我正在尝试在 Symfony2 项目中配置 propel ORM,但每次运行 symfony 命令行工具时都会收到此错误消息:
[Symfony\Component\Config\Exception\FileLoaderLoadException]
There is no extension able to load the configuration for "propel" (in C:\Program Files (x86)\Zend\Apache2\htdocs\se\app/config\config.yml). Looked for namespace "propel", found "
framework", "security", "twig", "monolog", "swiftmailer", "assetic", "doctrine", "sensio_framework_extra", "acme_demo", "debug", "web_profiler", "sensio_distribution" in C:\Progr
am Files (x86)\Zend\Apache2\htdocs\se\app/config\config.yml (which is being imported from "C:\Program Files (x86)\Zend\Apache2\htdocs\se\app/config/config_dev.yml").
我是按照官方文档配置的:
#Propel Configuration
propel:
dbal:
driver: "%database_driver%"
user: "%database_user%"
password: "%database_password%"
dsn: "%database_driver%:host=%database_host%;dbname=%database_name%;charset=%database_charset%"
我通过作曲家正确安装了推进包。 propel 命令行工作正常。
【问题讨论】: