It appears that the "@validation" prefix is still set in the symfony/symfony master branch.
When FrameworkExtension enables validation annotations[1], it merges a provided array (if any) atop the "validator.annotations.namespaces" DI parameter. According to validator.xml, the parameter is still defined with the "validation" prefix[2], even in the PR9-tagged version[3]. [1] https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L496 [2] https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Resources/config/validator.xml [3] https://github.com/symfony/symfony/blob/vPR9/src/Symfony/Bundle/FrameworkBundle/Resources/config/validator.xml On Wed, Mar 30, 2011 at 7:29 AM, Matt Robinson <[email protected]> wrote: > Hah, well it's possible I suppose, although I'm not sure how :) > > Here's what I did: > > * un-tarred the PR9 symfony standard package > * ran bin/vendors.sh > * copied my test bundle from the old install to the src folder in the new > one > * added my bundle to autoload.php, config.yml, routing.yml, and > AppKernel.php, and modified parameters.ini. > > Then I made the required changes in the UPDATE doc (removing "Bundle" from > configs, etc) > > Finally I ran the app, and it worked fine, except that I noticed my form > validated an invalid email address. I changed @assert back to @validation > and the app once again threw the correct error. > > Where are prefixes set in the config? I ack-grepped for 'validation' and > 'assert' in the original config files and I don't see anything there. > > > On 30 Mar 2011, at 12:04, Bernhard Schussek wrote: > > > Hi Matt, > > > > Could it be that you have overridden the prefixes in your config file? > > > > Bernhard > > -- > 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 > -- jeremy mikola -- 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
