Hey Moises- Yes, you're right that the task currently creates a routing.yml file. The issue is that the annotation routing is a feature only available if you're using the FrameworkExtraBundle (it's not *actually* a core feature). If you have that bundle installed and configured, then you'd be able to use the routing annotations. And to use the routing annotations, there's nothing the init:bundle task could really generate - the only real step is to add the annotation routing configuration into your app/config/routing.yml file as seen here: http://symfony.com/doc/2.0/quick_tour/the_big_picture.html#routing
Does that help? I'm open to improving that task, and I appreciate the feedback. So far, though, I'm not sure how the task should/could be imroved. Thanks! On Mar 24, 4:50 pm, Moises Gallego <[email protected]> wrote: > Hi all, I'm with symfony PR8 and appear me the following problem: > > I am creating a bundle with "php app / console init:Bundle Name > \NameBundle src" as the documentation says > > This command create the bundle, but with the old configuration, that > is, files of "routing" and without the possibility of using > annotations, since it seems that is not any "listener " by the > default. > > Someone know if there is an automatic way to generate, are going to > implement the procedure init:bundle with the new features? The only > option I have is to copy the folder DemoBundle and modify the files? > > A greeting and thank you very much. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
