mtas-tv-backend/src/App/Handler/KanbanHandlerFactory.php

23 lines
528 B
PHP
Raw Normal View History

2018-04-21 15:23:06 +02:00
<?php
declare(strict_types=1);
namespace App\Handler;
use App\Service\JiraCollectorService;
use Interop\Container\ContainerInterface;
class KanbanHandlerFactory
{
/**
* @param ContainerInterface $container
* @return KanbanHandler
*/
public function __invoke(ContainerInterface $container)
{
/** @var JiraCollectorService $dataCollectorService */
$dataCollectorService = $container->get(JiraCollectorService::class);
return new KanbanHandler($dataCollectorService);
}
}