I've rewritten how the Validator component pulls constraint validators from the 
service container to get rid of the naming convention that was previously in 
use.

If this change is applied you can register constraint validators as services 
using the validator.constraint_validator tag, along with an alias attribute:

<service id="some_doctrine_validator">
  <argument type="service" id="doctrine.orm.some_entity_manager" />
  <tag name="validator.constraint_validator" alias="some_alias" />
</service>

Your constraint can now reference this validator in its validatedBy() method:

public function validatedBy()
{
  return 'some_alias';
}

In this example validatedBy() no longer returns a class name; I'm not sure how 
I feel about this.

Anyway, take a look and let me know what you think:
http://github.com/fabpot/symfony/pull/73

--

Kris Wallsmith | Release Manager
[email protected]
Portland, Oregon USA

http://twitter.com/kriswallsmith

-- 
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

Reply via email to