symfony - class was not found with Nelmio Doc -


this first installation.

i followed exact steps symfony's website (https://symfony.com/doc/current/bundles/nelmioapidocbundle/index.html) , put generic apidoc() on top of 1 test function:

/**  * @apidoc(  *  resource=true,  *  description="this description of api method",  *  filters={  *      {"name"="a-filter", "datatype"="integer"}  *  }  * )  * @get("test/hello")  */ public function gethelloaction(request $request) {   $formattedresponse = array(     "hello" => world   ); 

when go api/doc url (http://localhost:8000/api/doc), following message:

the _controller value "appcorebundle:profile:myaccount" maps "app\corebundle\controller\profilecontroller" class, class not found. create class or check spelling of class , namespace.

if go in corebundle routing.yml file, on top of it, have definition class:

my_account:     path: /mon_compte     defaults:         _controller: appcorebundle:profile:myaccount 

if remove entry, top entry in routing.yml file becomes:

google_connect:     path: /connect-google-api     defaults:         _controller: appcorebundle:google:connect 

and now, if try browse doc again, i've got following error message:

the _controller value "appcorebundle:google:connect" maps "app\corebundle\controller\googlecontroller" class, class not found. create class or check spelling of class , namespace.

and goes on , on that...

the error happens when try dump documentation:

app/console api:swagger:dump   [invalidargumentexception]                                                                                                                                                        _controller value "appcorebundle:profile:myaccount" maps "app\corebundle\controller\profilecontroller" class, class not found. create class or check spelling of class , namespace.  

it sounds namespace issue, can't figure out. tried clear cache, without success.

anyone has idea ?

cheers, julien


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -