public function getValidator($alias)
    {
        if (array_key_exists($alias, $this->validators)) {
            return $this->validators[$alias];
        }

        throw new JbFileUploaderException('Unknown validator ' . $alias);
    }
public function getValidator($alias)
    {
        if (array_key_exists($alias, $this->validators)) {
            return $this->validators[$alias];
        }

        throw new JbFileUploaderException('Unknown validator ' . $alias);
    }
public function getValidator ( $ alias ) { if ( array_key_exists ( $ alias , $ this -> validators ) ) { return $ this -> validators [ $ alias ] ; } throw new JbFileUploaderException ( 'Unknown validator ' . $ alias ) ; }
Get a validator by its alias

@param string $alias

@return \Jb\Bundle\FileUploaderBundle\Service\Validator\AbstractValidator

@throws \Jb\Bundle\FileUploaderBundle\Exception\JbFileUploaderException
Get a validator by its alias