1 | <?php |
||
19 | abstract class AbstractFactory implements FactoryInterface |
||
20 | { |
||
21 | /** |
||
22 | * @param string|null $name |
||
23 | * @param string $type |
||
24 | * |
||
25 | * @return Reference |
||
26 | */ |
||
27 | final protected function createReference(string $name = null, string $type = 'prototype'): Reference |
||
31 | |||
32 | /** |
||
33 | * @param string|null $name |
||
34 | * |
||
35 | * @return Reference |
||
36 | */ |
||
37 | final protected function createChildReference(string $name = null): Reference |
||
41 | |||
42 | /** |
||
43 | * @param string|null $name |
||
44 | * |
||
45 | * @return ChildDefinition |
||
46 | */ |
||
47 | final protected function createChildDefinition(string $name = null): ChildDefinition |
||
51 | |||
52 | /** |
||
53 | * @param string|null $name |
||
54 | * @param string|null $type |
||
55 | * @param bool $prefix |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | final protected function getFactoryServiceName(string $name = null, string $type = null, bool $prefix = true): string |
||
68 | |||
69 | /** |
||
70 | * @param string|null $name |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | final protected function getPrototypeFactoryServiceName(string $name = null): string |
||
78 | |||
79 | /** |
||
80 | * @param string $name |
||
81 | * @param Definition $def |
||
82 | * @param ContainerBuilder $container |
||
83 | * |
||
84 | * @return string |
||
85 | */ |
||
86 | final protected function registerFactoryDefinition(string $name, Definition $def, ContainerBuilder $container): string |
||
101 | |||
102 | /** |
||
103 | * @return string |
||
104 | */ |
||
105 | abstract protected static function getDefinitionNamePrefix(): string; |
||
106 | |||
107 | /** |
||
108 | * @return string |
||
109 | */ |
||
110 | abstract protected static function getDefinitionTagContext(): string; |
||
111 | } |
||
112 |