-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathYamlDriver.php
More file actions
25 lines (21 loc) · 808 Bytes
/
YamlDriver.php
File metadata and controls
25 lines (21 loc) · 808 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\YamlDriver as BaseYamlDriver;
use Doctrine\Persistence\Mapping\Driver\SymfonyFileLocator;
/**
* YamlDriver 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 YamlDriver extends BaseYamlDriver
{
public const DEFAULT_FILE_EXTENSION = '.phpcr.yml';
public function __construct(array $prefixes, string $fileExtension = self::DEFAULT_FILE_EXTENSION)
{
$locator = new SymfonyFileLocator($prefixes, $fileExtension);
parent::__construct($locator, $fileExtension);
}
}