symfony2でbloチュートリアルをしています。
doctrine fixuresを入れた後
php app/console doctrine:fixtures:loadを実行したところ
C:\xampp\htdocs\Symblog> php app/console doctrine:fixtures:load
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Parameter "tags" must be an array for service
"doctrine_fixtures" in C:\xampp\htdocs\Symbl
og\app/config\services.yml. Check your YAML s
yntax in C:\xampp\htdocs\Symblog\app/config\s
ervices.yml (which is being imported from "C:
\xampp\htdocs\Symblog\app/config\config.yml")
.
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
Parameter "tags" must be an array for service
"doctrine_fixtures" in C:\xampp\htdocs\Symbl
og\app/config\services.yml. Check your YAML s
yntax.
とエラーが出ました。
調べてもよくわからないので教えてください
composer.jsonです
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The "Symfony Standard Edition" distribution",
"autoload": {
"psr-4": { "": "src/" },
"files": [ "app/AppKernel.php" ]
},
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.8.0",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"doctrine/data-fixtures": "1.0.0",
"doctrine/doctrine-fixtures-bundle": "@dev"
}, "require-dev": { "sensio/generator-bundle": "~3.0", "symfony/phpunit-bridge": "~2.7" }, "scripts": { "post-install-cmd": [ "Incenteev\ParameterHandler\ScriptHandler::buildParameters", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget" ], "post-update-cmd": [ "Incenteev\ParameterHandler\ScriptHandler::buildParameters", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget" ] }, "config": { "bin-dir": "bin" }, "extra": { "symfony-app-dir": "app", "symfony-web-dir": "web", "symfony-assets-install": "relative", "incenteev-parameters": { "file": "app/config/parameters.yml" }, "branch-alias": { "dev-master": "2.8-dev" } }
あなたの回答
tips
プレビュー