Completed
Push — master ( 014eb2...0ec7e8 )
by Alejandro
14s queued 12s
created

TaskRunnerFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 3
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Shlinkio\Shlink\EventDispatcher\Async;
5
6
use Interop\Container\ContainerInterface;
7
use Psr\Log\LoggerInterface;
8
use Zend\ServiceManager\Factory\FactoryInterface;
9
10
class TaskRunnerFactory implements FactoryInterface
11
{
12 1
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null): TaskRunner
13
    {
14 1
        $logger = $container->get(LoggerInterface::class);
15 1
        return new TaskRunner($logger, $container);
16
    }
17
}
18