1 | <?php |
||
18 | abstract class SchemaSetup |
||
19 | { |
||
20 | /** |
||
21 | * @param array $mappingPaths |
||
22 | * @param ObjectManager $om |
||
23 | * @return SchemaFactory |
||
24 | */ |
||
25 | public static function createDoctrineYamlSchemaFactory(array $mappingPaths, ObjectManager $om) |
||
26 | { |
||
27 | $accessor = new DefaultFilePathAccessor($mappingPaths); |
||
28 | $driver = new YamlDriver($accessor); |
||
29 | |||
30 | return self::createDoctrineSchemaFactory($driver, $om); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return MappingGuesserManager |
||
35 | */ |
||
36 | protected static function createDefaultMappingGuesserManager() |
||
44 | |||
45 | /** |
||
46 | * @param DriverInterface $driver |
||
47 | * @param ObjectManager $om |
||
48 | * @return SchemaFactory |
||
49 | */ |
||
50 | protected static function createDoctrineSchemaFactory(DriverInterface $driver, ObjectManager $om) |
||
61 | |||
62 | /** |
||
63 | * @return TypeResolver |
||
64 | */ |
||
65 | protected static function createTypeResolver() |
||
71 | } |
||
72 |