Skip to content
Snippets Groups Projects
Commit 25b35bbc authored by elise's avatar elise
Browse files

add twig in user action

parent 1f9fcb68
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ namespace App\Application\Actions\User;
use App\Application\Actions\Action;
use Psr\Log\LoggerInterface;
use Doctrine\ORM\EntityManager;
use Slim\Views\Twig;
abstract class UserAction extends Action
{
......@@ -18,10 +19,13 @@ abstract class UserAction extends Action
* @param LoggerInterface $logger
* @param UserRepository $userRepository
*/
public function __construct(LoggerInterface $logger, EntityManager $em)
public function __construct(LoggerInterface $logger, EntityManager $em, Twig $twig)
{
parent::__construct($logger);
$this->userRepository = $em->getRepository('App\Domain\User\User');
$this->em = $em;
$this->twig = $twig;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment