diff --git a/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php b/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php deleted file mode 100644 index 8f1e676e1..000000000 --- a/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php +++ /dev/null @@ -1,42 +0,0 @@ -. - */ - -namespace Doctrine\ORM\Mapping\Driver; - -use Doctrine\Common\Persistence\Mapping\Driver\FileDriver; - -/** - * Base driver for file-based metadata drivers. - * - * A file driver operates in a mode where it loads the mapping files of individual - * classes on demand. This requires the user to adhere to the convention of 1 mapping - * file per class and the file names of the mapping files must correspond to the full - * class name, including namespace, with the namespace delimiters '\', replaced by dots '.'. - * - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link www.doctrine-project.com - * @since 2.0 - * @author Benjamin Eberlei - * @author Guilherme Blanco - * @author Jonathan H. Wage - * @author Roman Borschel - */ -abstract class AbstractFileDriver extends FileDriver -{ -} \ No newline at end of file diff --git a/lib/Doctrine/ORM/Mapping/Driver/PHPDriver.php b/lib/Doctrine/ORM/Mapping/Driver/PHPDriver.php index 1071083cf..186ca8fef 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/PHPDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/PHPDriver.php @@ -20,7 +20,7 @@ namespace Doctrine\ORM\Mapping\Driver; use Doctrine\Common\Persistence\Mapping\ClassMetadata, - Doctrine\ORM\Mapping\Driver\AbstractFileDriver; + Doctrine\Common\Persistence\Mapping\Driver\FileDriver; /** * The PHPDriver includes php files which just populate ClassMetadata @@ -36,7 +36,7 @@ use Doctrine\Common\Persistence\Mapping\ClassMetadata, * @author Roman Borschel * @todo Rename: PHPDriver */ -class PHPDriver extends AbstractFileDriver +class PHPDriver extends FileDriver { const DEFAULT_FILE_EXTENSION = '.php'; diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index 3ab7a08f2..1969692fe 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -20,6 +20,7 @@ namespace Doctrine\ORM\Mapping\Driver; use SimpleXMLElement, + Doctrine\Common\Persistence\Mapping\Driver\FileDriver, Doctrine\Common\Persistence\Mapping\ClassMetadata, Doctrine\ORM\Mapping\MappingException; @@ -34,7 +35,7 @@ use SimpleXMLElement, * @author Jonathan H. Wage * @author Roman Borschel */ -class XmlDriver extends AbstractFileDriver +class XmlDriver extends FileDriver { const DEFAULT_FILE_EXTENSION = '.dcm.xml'; diff --git a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php index d74505150..051ea5612 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php @@ -20,6 +20,7 @@ namespace Doctrine\ORM\Mapping\Driver; use Doctrine\Common\Persistence\Mapping\ClassMetadata, + Doctrine\Common\Persistence\Mapping\Driver\FileDriver, Doctrine\ORM\Mapping\MappingException, Symfony\Component\Yaml\Yaml; @@ -32,7 +33,7 @@ use Doctrine\Common\Persistence\Mapping\ClassMetadata, * @author Jonathan H. Wage * @author Roman Borschel */ -class YamlDriver extends AbstractFileDriver +class YamlDriver extends FileDriver { const DEFAULT_FILE_EXTENSION = '.dcm.yml'; diff --git a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php index 2add41a2a..a87eb2004 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php @@ -19,14 +19,10 @@ namespace Doctrine\ORM\Tools\Console\Command\SchemaTool; -use Symfony\Component\Console\Input\InputArgument, - Symfony\Component\Console\Input\InputOption, - Symfony\Component\Console\Input\InputInterface, +use Symfony\Component\Console\Input\InputInterface, Symfony\Component\Console\Output\OutputInterface, Symfony\Component\Console\Command\Command, - Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper, - Doctrine\ORM\Tools\SchemaTool, - Doctrine\ORM\Mapping\Driver\AbstractFileDriver; + Doctrine\ORM\Tools\SchemaTool; abstract class AbstractCommand extends Command {