Permalink
Browse files

Code cleanup

  • Loading branch information...
1 parent d01b6bf commit 611c90d7abe68fc1f0b726653906ace22461acd5 @alvarezmario alvarezmario committed Oct 22, 2012
Showing with 1 addition and 3 deletions.
  1. +0 −1 Constraints/CollectionValidator.php
  2. +1 −2 ValidatorBuilder.php
@@ -15,7 +15,6 @@
use Symfony\Component\Validator\ConstraintValidator;
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
use Symfony\Component\Validator\Constraints\Collection\Optional;
-use Symfony\Component\Validator\Constraints\Collection\Required;
/**
* @author Bernhard Schussek <bschussek@gmail.com>
View
@@ -13,7 +13,6 @@
use Symfony\Component\Validator\Mapping\ClassMetadataFactory;
use Symfony\Component\Validator\Exception\ValidatorException;
-use Symfony\Component\Validator\Mapping\BlackholeMetadataFactory;
use Symfony\Component\Validator\Mapping\Loader\LoaderChain;
use Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface;
use Symfony\Component\Validator\Mapping\Cache\CacheInterface;
@@ -233,7 +232,7 @@ public function setMetadataCache(CacheInterface $cache)
if (null !== $this->metadataFactory) {
throw new ValidatorException('You cannot set a custom metadata cache after setting a custom metadata factory. Configure your metadata factory instead.');
}
-
+
$this->metadataCache = $cache;
return $this;

0 comments on commit 611c90d

Please sign in to comment.