我正在尝试继续本教程http://symfony.com/doc/master/cmf/cookbook/creating_a_cms/getting-started.html。
执行此命令后: php app / console doctrine:phpcr:fixtures:load
我遇到以下错误:
PHP Catchable致命错误:传递给Doctrine \ Bundle \ PHPCRBundle \ Initializer \ GenericInitializer :: __ construct()的参数2必须是数组类型,没有给出
此处讨论了此错误https://github.com/doctrine/DoctrinePHPCRBundle/issues/119
但我仍然找不到合适的配置。
任何人都可以编写我必须修复的依赖项来使教程工作吗? 这是我的composer.json“require”部分:
"php": ">=5.3.3",
"symfony/symfony": "~2.4",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~3.0",
"sensio/generator-bundle": "~2.3",
"incenteev/composer-parameter-handler": "~2.0",
"doctrine/phpcr-bundle": "dev-master as 1.0.0",
"doctrine/phpcr-odm": "dev-master as 1.0.0",
"jackalope/jackalope-doctrine-dbal": "1.0.0",
"symfony-cmf/routing-auto-bundle": "1.0.*@alpha",
"symfony-cmf/menu-bundle": "1.0",
"sonata-project/doctrine-phpcr-admin-bundle": "dev-master",
"symfony-cmf/tree-browser-bundle": "@dev",
"doctrine/data-fixtures": "1.0.0",
"phpcr/phpcr-utils": "dev-master as 1.0.0"
答案 0 :(得分:0)
那些教程已经过时了,我有几天与symfony cmf文档挣扎,但是由于@dbu看了我的composer.json并且看了question SymfonyCMF RoutingBundle Doctrine PHPCR configuration error,我依旧得到了依赖。 }