However, maybe the help should be updated then because they explicitly give "Acme\FooBundle" as an example.
At least a hint should be added that there might be need to add another backslash. > Le 30/05/2011 13:17, Douglas Greenshields a écrit : > > When trying to use the init:bundle command as follows (and as per the > > help): > > > > Symfony> init:bundle "Acme\FooBundle" src > > > > I got the following error: > > > > > > [InvalidArgumentException] > > The namespace must contain a vendor namespace (e.g. "VendorName > > \AcmeFooBundle" instead of simply "AcmeFooBundle"). > > > > If you've specified a vendor namespace, did you forget to surround > > it with quotes (init:bundle "Acme\FooBundle")? > > > > I suspected that the backslash between the vendor name and the bundle > > name was being used as an escape character, and tried: > > > > Symfony> init:bundle "Acme\\FooBundle" src > > > > which, indeed, successfully created the bundle. > > > > So the question is: what's the intended syntax here? Is it a bug in > > the implementation or the help/documentation? I'd create a PR but I > > don't know which way round would be correct. > > > > Thanks > > > > Douglas > > > It is not a bug. \ is the escaping character of your command line. And > \F may be a special character. > > -- > Christophe | Stof > -- 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 developers" 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-devs?hl=en
