Php Symfony2安装失败-错误1866(不允许使用属性路径)/FileLoaderLoadException(无法导入资源)

Php Symfony2安装失败-错误1866(不允许使用属性路径)/FileLoaderLoadException(无法导入资源),php,symfony,composer-php,Php,Symfony,Composer Php,我正在尝试使用vagrant安装一个预先制作的开发环境。最后一个组件是symfony2。控制台抛出一个错误(如下所示)。有什么办法可以解决吗?我试过用谷歌搜索,但没有成功。谢谢你的见解 安装日志: ==> default: ==> default:

我正在尝试使用vagrant安装一个预先制作的开发环境。最后一个组件是symfony2。控制台抛出一个错误(如下所示)。有什么办法可以解决吗?我试过用谷歌搜索,但没有成功。谢谢你的见解

安装日志:

==> default: 
==> default:                                                                                                                                                                        
==> default:   [Symfony\Component\Config\Exception\FileLoaderLoadException]                                                                                                         
==> default:   Cannot import resource "/srv/wealthbot/vendor/friendsofsymfony/jsrouting-bundle/Resources/config/routing/routing.xml" from "/srv/wealthbot/app/config/routing.yml".  
==> default:                                                                                                                                                                        
==> default: 
==> default:                                                                                                                                                                    
==> default:   [InvalidArgumentException]                                                                                                                                       
==> default:   [ERROR 1866] Element '{http://symfony.com/schema/routing}route', attribute 'path': The attribute 'path' is not allowed. (in /srv/wealthbot/ - line 6, column 0)  
==> default:                                                                                                                                                                    
==> default: 
==> default: cache:warmup [--no-optional-warmers]
==> default: Warming up the cache for the prod environment with debug false
==> default: 
# Internal routing configuration to handle ESI
#_internal:
#    resource: "@FrameworkBundle/Resources/config/routing/internal.xml"
#    prefix:   /_internal
fos_user_security:
    resource: "@FOSUserBundle/Resources/config/routing/security.xml"

fos_user_profile:
    resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
    prefix: /profile

fos_user_register:
    resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
    prefix: /register

fos_user_resetting:
    resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
    prefix: /resetting

fos_user_change_password:
    resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
    prefix: /profile

fos_user_group:
    resource: "@FOSUserBundle/Resources/config/routing/group.xml"
    prefix: /group

fos_js_routing:
    resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"

NelmioApiDocBundle:
    resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
    prefix:   /api/doc
来自/srv/wealthbot/vendor/friendsofsymfony/jsrouting bundle/Resources/config/routing/routing.xml的routing.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<routes xmlns="http://symfony.com/schema/routing"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">

    <route id="fos_js_routing_js" path="/js/routing.{_format}">
        <default key="_controller">fos_js_routing.controller:indexAction</default>
        <default key="_format">js</default>
        <requirement key="_format">js|json</requirement>
    </route>
</routes>

Symfony 2.1(很久以前就放弃了支持)没有路由的
path
属性。您必须使用
模式
属性。

您使用哪个Symfony版本?这是在main composer.json中指定为“require”的组件和版本集。安装脚本运行composer安装--首选源代码。快速更新:我现在看到这个错误是由安装脚本中的缓存清除和预热命令触发的。这是安装脚本:有4个缓存命令,每个命令都会触发相同的错误。routing.xml中的参数无效