Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3.1406 |
Changes | 0 |
1 | <?php |
||
27 | 1 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
28 | { |
||
29 | // For v2, we need to pull the parent service locator |
||
30 | 1 | if (!method_exists($container, 'configure')) { |
|
31 | $container = $container->getServiceLocator() ?: $container; |
||
32 | } |
||
33 | |||
34 | 1 | return new FileSystemLoader($container->get('HtImg\RelativePathResolver')); |
|
35 | } |
||
36 | |||
42 |
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.