Skip to content

Instantly share code, notes, and snippets.

@umpirsky
Created October 1, 2012 16:42
Show Gist options
  • Save umpirsky/3812922 to your computer and use it in GitHub Desktop.
Save umpirsky/3812922 to your computer and use it in GitHub Desktop.
Using Zend Validator with Symfony
<?php
use Zymfony\Component\Validator\Constraint;
class ZymfonyModel
{
/**
* @Constraint(validator = "creditcard")
*/
protected $creditCard;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment