1 | <?php |
||
20 | class DBALConfigurationFactory implements FactoryInterface |
||
|
|||
21 | { |
||
22 | /** @var string */ |
||
23 | protected $name; |
||
24 | |||
25 | 88 | public function __construct(string $name) |
|
26 | { |
||
27 | 88 | $this->name = $name; |
|
28 | 88 | } |
|
29 | |||
30 | /** |
||
31 | * {@inheritDoc} |
||
32 | * |
||
33 | * @return Configuration |
||
34 | */ |
||
35 | public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null) |
||
36 | { |
||
37 | $config = new Configuration(); |
||
38 | $this->setupDBALConfiguration($container, $config); |
||
39 | |||
40 | return $config; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | * |
||
46 | * @return Configuration |
||
47 | */ |
||
48 | public function createService(ServiceLocatorInterface $container) |
||
52 | |||
53 | 86 | public function setupDBALConfiguration(ContainerInterface $container, Configuration $config) : void |
|
54 | { |
||
73 | |||
74 | /** |
||
75 | * @return mixed |
||
76 | * |
||
77 | * @throws RuntimeException |
||
78 | */ |
||
79 | 88 | public function getOptions(ContainerInterface $serviceLocator) |
|
98 | |||
99 | protected function getOptionsClass() : string |
||
103 | } |
||
104 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.