simen-backend-zf3mw/src/App/Action/User/DeleteFactory.php

18 lines
360 B
PHP
Raw Normal View History

<?php
namespace App\Action\User;
use App\Action\Article\DeleteAction;
use App\Service\Article\UserService;
use Interop\Container\ContainerInterface;
class DeleteFactory
{
public function __invoke(ContainerInterface $container)
{
$entityService = $container->get(UserService::class);
return new DeleteAction($entityService);
}
}