| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 27 | public function __invoke( |
||
| 28 | ContainerInterface $container, |
||
| 29 | string $requestedName, |
||
| 30 | ?array $options = null |
||
| 31 | ): Forward { |
||
| 32 | $class = strpos($requestedName, 'Copy') === false ? Forward::class : ApplicationCarbonCopy::class; |
||
| 33 | |||
| 34 | return new $class( |
||
| 35 | $container->get('ViewHelperManager'), |
||
| 36 | $container->get('repositories')->get(Attachment::class), |
||
| 37 | $options |
||
| 38 | ); |
||
| 41 |