diff --git a/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php b/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php index 35f9ce003..8f1e676e1 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php @@ -20,7 +20,6 @@ namespace Doctrine\ORM\Mapping\Driver; use Doctrine\Common\Persistence\Mapping\Driver\FileDriver; -use Doctrine\Common\Persistence\Mapping\Driver\FileLocator; /** * Base driver for file-based metadata drivers. @@ -38,6 +37,6 @@ use Doctrine\Common\Persistence\Mapping\Driver\FileLocator; * @author Jonathan H. Wage * @author Roman Borschel */ -abstract class AbstractFileDriver extends FileDriver implements Driver +abstract class AbstractFileDriver extends FileDriver { } \ No newline at end of file diff --git a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php index 8ffdb6abe..f4501de8b 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php @@ -35,7 +35,7 @@ use Doctrine\Common\Annotations\AnnotationReader, * @author Jonathan H. Wage * @author Roman Borschel */ -class AnnotationDriver extends AbstractAnnotationDriver implements Driver +class AnnotationDriver extends AbstractAnnotationDriver { /** * {@inheritdoc} diff --git a/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php b/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php index 5e6733be5..a0705e6c2 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php @@ -21,6 +21,7 @@ namespace Doctrine\ORM\Mapping\Driver; use Doctrine\DBAL\Schema\AbstractSchemaManager, Doctrine\DBAL\Schema\SchemaException, + Doctrine\Common\Persistence\Mapping\Driver\MappingDriver, Doctrine\Common\Persistence\Mapping\ClassMetadata, Doctrine\ORM\Mapping\ClassMetadataInfo, Doctrine\Common\Util\Inflector; @@ -35,7 +36,7 @@ use Doctrine\DBAL\Schema\AbstractSchemaManager, * @author Jonathan Wage * @author Benjamin Eberlei */ -class DatabaseDriver implements Driver +class DatabaseDriver implements MappingDriver { /** * @var AbstractSchemaManager diff --git a/lib/Doctrine/ORM/Mapping/Driver/Driver.php b/lib/Doctrine/ORM/Mapping/Driver/Driver.php deleted file mode 100644 index 2ec4866f7..000000000 --- a/lib/Doctrine/ORM/Mapping/Driver/Driver.php +++ /dev/null @@ -1,33 +0,0 @@ -. - */ - -namespace Doctrine\ORM\Mapping\Driver; - -use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver; - -/** - * Contract for metadata drivers. - * - * @since 2.0 - * @author Jonathan H. Wage - * @todo Rename: MetadataDriver or MappingDriver - */ -interface Driver extends MappingDriver -{ -} \ No newline at end of file diff --git a/lib/Doctrine/ORM/Mapping/Driver/StaticPHPDriver.php b/lib/Doctrine/ORM/Mapping/Driver/StaticPHPDriver.php index 4430d4c7f..64177bace 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/StaticPHPDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/StaticPHPDriver.php @@ -20,7 +20,8 @@ namespace Doctrine\ORM\Mapping\Driver; use Doctrine\Common\Persistence\Mapping\ClassMetadata, - Doctrine\ORM\Mapping\MappingException; + Doctrine\Common\Persistence\Mapping\Driver\MappingDriver, + Doctrine\ORM\Mapping\MappingException; /** * The StaticPHPDriver calls a static loadMetadata() method on your entity @@ -34,7 +35,7 @@ use Doctrine\Common\Persistence\Mapping\ClassMetadata, * @author Jonathan H. Wage * @author Roman Borschel */ -class StaticPHPDriver implements Driver +class StaticPHPDriver implements MappingDriver { /** * Paths of entity directories.