18 lines
360 B
PHP
18 lines
360 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Action\Comment;
|
||
|
|
|
||
|
|
use App\Action\Article\GetAction;
|
||
|
|
use App\Service\Article\CommentService;
|
||
|
|
use Interop\Container\ContainerInterface;
|
||
|
|
|
||
|
|
class GetFactory
|
||
|
|
{
|
||
|
|
|
||
|
|
public function __invoke(ContainerInterface $container)
|
||
|
|
{
|
||
|
|
$entityService = $container->get(CommentService::class);
|
||
|
|
return new GetAction($entityService);
|
||
|
|
}
|
||
|
|
}
|