Doctrine Bundleに問題があります。私は、Webページへの侵入を試みるとき、私はエラーを持っている:Symfony - DoctrineBundleがアプリケーションに登録されていません
The DoctrineBundle is not registered in your application.
それはので設定におかしい/ bundles.php私が持っている:
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
FOS\RestBundle\FOSRestBundle::class => ['all' => true],
JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
];
アプリケーションのためのドクトリンバンドルavalible追加する方法は?または、おそらく教義/オルームとは何か? ありがとうございました。
EDIT
私は、コントローラで$これをダンプすると、services.kernel.bundlesに私が持っている:
["DoctrineBundle"]=>
object(Doctrine\Bundle\DoctrineBundle\DoctrineBundle)#73 (6) {
["autoloader":"Doctrine\Bundle\DoctrineBundle\DoctrineBundle":private]=>
NULL
["name":protected]=>
string(14) "DoctrineBundle"
["extension":protected]=>
NULL
["path":protected]=>
NULL
["namespace":"Symfony\Component\HttpKernel\Bundle\Bundle":private]=>
string(30) "Doctrine\Bundle\DoctrineBundle"
["container":protected]=>
*RECURSION*
}
}
キャッシュをクリアしましたか? '' 'php bin/console cache:clear --no-warmup --env = prod''' –
はい、キャッシュはクリアです –
@PiotrŻęgotaこれを解決しましたか?私はstandar 3.4のインストールでこれも遭遇します – ihsan