移动供应商目录

时间:2017-04-27 16:29:28

标签: php symfony composer-php

我安装了基于Symfony2的应用程序OroCommerce。我希望有一个供应商'用户目录之外的更高级别的目录。我按照http://symfony.com/doc/current/configuration/override_dir_structure.html#override-the-vendor-directory的步骤进行操作,但现在无法找到命名空间。我收到以下错误:

  

YamlFileLoader.php第399行中的InvalidArgumentException:没有扩展能够加载" framework"的配置。 (在/home/oro2/public_html/app/config/config_dev.yml)。寻找命名空间"框架",找到" web_profiler"," sensio_distribution"," debug"       在YamlFileLoader.php第399行       在YamlFileLoader->验证(数组('导入' =>数组(数组('资源' =>' config.yml')),&# 39; framework' =>数组('路由器' =>数组('资源' =>'%kernel.root_dir%/ config / routing_dev.yml& #39;),' profiler' =>数组(' only_exceptions' => false)),' web_profiler' =>数组(' toolbar' => true,' intercept_redirects' => false),' monolog' =>数组(' handlers' =>数组(& #39; main' =>数组('类型' =>'流','路径' =>'%内核。 logs_dir%/%kernel.environment%.log',' level' =>' debug'))),' oro_assetic' => array( ' css_debug' => null,' css_debug_all' => false),' oro_message_queue' =>数组('客户' => ;阵列(' traceable_producer' => true))),' /home/oro2/public_html/app/config/config_dev.yml')在YamlFileLoader.php第369行       在YamlFileLoader.php第44行的YamlFileLoader-> loadFile(' /home/oro2/public_html/app/config/config_dev.yml')       在YamlFileLoader->在DelegatingLoader.php第45行中加载(' /home/oro2/public_html/app/config/config_dev.yml',null)       at DelegatingLoader->在AppKernel.php第35行中加载(' /home/oro2/public_html/app/config/config_dev.yml')       在Appsternel-> registerContainerConfiguration(对象(DelegatingLoader))在bootstrap.php.cache第2776行       在bootstrap.php.cache第2728行的Kernel-> buildContainer()中       在OroKernel.php第290行中的Kernel-> initializeContainer()       在引导程序.php.cache第2507行的OroKernel-> initializeContainer()中       在OroKernel.php第252行的Kernel-> boot()中       在引导程序.php.cache第2538行的OroKernel-> boot()中       at app_dev.php第33行中的Kernel-> handle(object(Request))

我忘记了什么吗?有谁知道如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

你正在调用%kernel.root_dir%/config/routing_dev.yml实际上不存在的地方,因为你移动了配置文件dir

相关问题