diff --git a/autoload.php.dist b/autoload.php.dist index 338e9308cc..f160db88c0 100644 --- a/autoload.php.dist +++ b/autoload.php.dist @@ -13,7 +13,6 @@ $loader->registerNamespaces(array( 'Doctrine' => __DIR__.'/vendor/doctrine/lib', 'Assetic' => __DIR__.'/vendor/assetic/src', 'Monolog' => __DIR__.'/vendor/monolog/src', - 'Annotations' => array(__DIR__.'/vendor/annotations/src', __DIR__.'/vendor/annotations/doctrine-compat-src'), )); $loader->registerPrefixes(array( 'Swift_' => __DIR__.'/vendor/swiftmailer/lib/classes', diff --git a/src/Symfony/Bundle/DoctrineBundle/Tests/TestCase.php b/src/Symfony/Bundle/DoctrineBundle/Tests/TestCase.php index 7bd2afe229..d5902daf01 100644 --- a/src/Symfony/Bundle/DoctrineBundle/Tests/TestCase.php +++ b/src/Symfony/Bundle/DoctrineBundle/Tests/TestCase.php @@ -11,8 +11,7 @@ namespace Symfony\Bundle\DoctrineBundle\Tests; -use Annotations\Reader; - +use Doctrine\Common\Annotations\Reader; use Doctrine\ORM\EntityManager; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; @@ -27,9 +26,6 @@ class TestCase extends \PHPUnit_Framework_TestCase if (!class_exists('Doctrine\\Common\\Version')) { $this->markTestSkipped('Doctrine is not available.'); } - if (!class_exists('Annotations\Reader')) { - $this->markTestSkipped('Annotations is not available.'); - } } /** diff --git a/src/Symfony/Component/Validator/ValidatorFactory.php b/src/Symfony/Component/Validator/ValidatorFactory.php index 98c5b2ab1f..047a9692c4 100644 --- a/src/Symfony/Component/Validator/ValidatorFactory.php +++ b/src/Symfony/Component/Validator/ValidatorFactory.php @@ -11,8 +11,7 @@ namespace Symfony\Component\Validator; * file that was distributed with this source code. */ -use Annotations\Reader; - +use Doctrine\Common\Annotations\Reader; use Symfony\Component\Validator\Exception\MappingException; use Symfony\Component\Validator\Mapping\ClassMetadataFactory; use Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface;