0

我正在尝试继续本教程http://symfony.com/doc/master/cmf/cookbook/creating_a_cms/getting-started.html

在这个命令之后: php app/console dictionary:phpcr:fixtures:load

我有以下错误:

PHP Catchable 致命错误:传递给 Doctrine\Bundle\PHPCRBundle\Initializer\GenericInitializer::__construct() 的参数 2 必须是数组类型,没有给出

此处讨论了此错误https://github.com/doctrine/DoctrinePHPCRBundle/issues/119

但我仍然找不到正确的配置。

谁能写出我必须修复哪些依赖项才能使教程正常工作?这是我的 composer.json “要求”部分:

"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"
4

1 回答 1

0

这些教程已经过时了,我在 symfony cmf 文档中挣扎了好几天,但是由于@dbu,我终于得到了依赖项,看看我的composer.json并看看问题 SymfonyCMF RoutingBundle Doctrine PHPCR configuration error

于 2014-04-10T01:17:23.573 回答