2016-07-31 20:47:25 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Action\Article;
|
|
|
|
|
|
|
|
|
|
use App\Action\Article\ListAction;
|
2016-08-01 17:30:43 +02:00
|
|
|
use App\Service\Article\ArticleService;
|
2016-07-31 20:47:25 +02:00
|
|
|
use Interop\Container\ContainerInterface;
|
|
|
|
|
|
2016-08-01 17:30:43 +02:00
|
|
|
class ListFactory
|
2016-07-31 20:47:25 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public function __invoke(ContainerInterface $container)
|
|
|
|
|
{
|
2016-08-01 17:30:43 +02:00
|
|
|
$entityService = $container->get(ArticleService::class);
|
|
|
|
|
return new ListAction($entityService);
|
2016-07-31 20:47:25 +02:00
|
|
|
}
|
2016-08-01 17:30:43 +02:00
|
|
|
}
|