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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -