Skip to content

Commit

Permalink
Added missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
lunetics committed Oct 21, 2012
1 parent 1712f10 commit cb2c97e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Validator/LocaleAllowed.php
@@ -0,0 +1,34 @@
<?php
/**
* This file is part of the LuneticsLocaleBundle package.
*
* <https://github.com/lunetics/LocaleBundle/>
*
* For the full copyright and license information, please view the LICENSE
* file that is distributed with this source code.
*/

namespace Lunetics\LocaleBundle\Validator;

use Symfony\Component\Validator\Constraint;

/**
* LocaleAllowed Constraint
*
* @Annotation
*/
class LocaleAllowed extends Constraint
{
/**
* @var string
*/
public $message = 'The locale "%string%" is not allowed by application configuration.';

/**
* {@inheritDoc}
*/
public function validatedBy()
{
return 'lunetics_locale.validator.locale_allowed';
}
}

0 comments on commit cb2c97e

Please sign in to comment.