Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function __invoke( |
||
31 | ContainerInterface $container, |
||
32 | string $requestedName, |
||
33 | array $options = null |
||
34 | ): CascadeSaveService { |
||
35 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
||
36 | |||
37 | $logger = $options['logger'] ?? NullLogger::class; |
||
38 | |||
39 | return new CascadeSaveService( |
||
40 | $this->getService($container, $logger, $requestedName), |
||
41 | $options['options'] ?? [], |
||
42 | $options['collection_options'] ?? [] |
||
43 | ); |
||
46 |