1 | <?php |
||
11 | abstract class AbstractResourceBundle extends BaseAbstractResourceBundle |
||
12 | { |
||
13 | protected $mappingFormat = self::MAPPING_YAML; |
||
14 | |||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | public function getSupportedDrivers() |
||
19 | { |
||
20 | return array( |
||
21 | SyliusResourceBundle::DRIVER_DOCTRINE_ORM, |
||
22 | ); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | protected function getModelNamespace() |
||
29 | { |
||
30 | $bundle = explode('\\', $class = get_called_class()); |
||
31 | |||
32 | return str_replace($bundle[count($bundle) - 1], 'Model', $class); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Dos expected alias (dos_xx not do_s_xx). |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | public static function expectedAlias($name) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | protected function getBundlePrefix() |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function getContainerExtension() |
||
84 | } |
||
85 |