Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
18 | { |
||
19 | $configService = $container->get('Config'); |
||
20 | $viewHelperManager = $container->get('ViewHelperManager'); |
||
21 | |||
22 | $akismetConfig = $configService['rb_comment']['akismet']; |
||
23 | |||
24 | return new Akismet( |
||
25 | $akismetConfig['api_key'], |
||
26 | $viewHelperManager->get('serverUrl')->__invoke() |
||
27 | ); |
||
28 | } |
||
29 | } |
||
30 |