-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathXmlDriver.php
More file actions
25 lines (21 loc) · 803 Bytes
/
XmlDriver.php
File metadata and controls
25 lines (21 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
namespace Doctrine\Bundle\PHPCRBundle\Mapping\Driver;
use Doctrine\ODM\PHPCR\Mapping\Driver\XmlDriver as BaseXmlDriver;
use Doctrine\Persistence\Mapping\Driver\SymfonyFileLocator;
/**
* XmlDriver that additionally looks for mapping information in a global file.
*
* @author Fabien Potencier <fabien@symfony.com>
* @author Benjamin Eberlei <kontakt@beberlei.de>
*
* @deprecated The mapping pass uses the base class in doctrine/phpcr-odm directly
*/
class XmlDriver extends BaseXmlDriver
{
public const DEFAULT_FILE_EXTENSION = '.phpcr.xml';
public function __construct(array $prefixes, string $fileExtension = self::DEFAULT_FILE_EXTENSION)
{
$locator = new SymfonyFileLocator($prefixes, $fileExtension);
parent::__construct($locator, $fileExtension);
}
}