php - Routing Circular reference -
here app/config/routing.yml
appbundle: resource: "@appbundle/controller/" type: annotation prefix: / rapportbundle: resource: "@rapportbundle/controller/" type: annotation prefix: /rapport fos_user: resource: "@fosuserbundle/resources/config/routing/all.xml"
rapportbundle/controller/rapportcontroller.php
<?php namespace rapportbundle\controller; use sensio\bundle\frameworkextrabundle\configuration\route; use symfony\bundle\frameworkbundle\controller\controller; use sensio\bundle\frameworkextrabundle\configuration\template; class rapportcontroller extends controller { /** * @template * @route("/", name="rapport_index") */ public function indexaction() { return []; } }
and same file appbundle/controller/defaultcontroller.php
when launch index defaultcontroller, got :
circular reference detected in "/var/www/my-site/app/config/routing_dev.yml" ("/var/www/my-site/app/config/routing_dev.yml" > "/var/www/my-site/app/config/routing.yml" > "/var/www/my-site/app/config/routing_dev.yml").
(my routing_dev.yml has not been changed, it's symfony2 base)
do know why ?
i answer myself :
i forgot add rapportbundle appkernel....
Comments
Post a Comment