Correct namespace in Valdiators. Add namespace Mail.

This commit is contained in:
2014-06-04 21:57:19 +04:00
parent 1ba341b064
commit 3709fb2a74
6 changed files with 8 additions and 8 deletions

View File

@ -9,7 +9,7 @@
*
*/
class MbStrlenValidator extends \Majestic\Validator
class MbStrlenValidator extends Validator
{
const GREATHER_THAN = 'not_match';
@ -27,7 +27,7 @@ class MbStrlenValidator extends \Majestic\Validator
{
$this->setValue($value);
if ($this->token === null) {
throw new InitializationException('Token not defined.');
throw new \Majestic\Exception\InitializationException('Token not defined.');
}
if (mb_strlen($value) > $this->token) {