?? GreyFile — Mystic File Browser

Current path: home/webdevt/cryptoimpot.fr/module/User/src/View/Helper/Factory/



?? Go up: /home/webdevt/cryptoimpot.fr/module/User/src/View/Helper

?? Viewing: CurrentUserFactory.php

<?php
namespace User\View\Helper\Factory;

use Interop\Container\ContainerInterface;
use User\View\Helper\CurrentUser;

class CurrentUserFactory
{
    public function __invoke(ContainerInterface $container)
    {        
        $entityManager = $container->get('doctrine.entitymanager.orm_default');
        $authService = $container->get(\Laminas\Authentication\AuthenticationService::class);
                        
        return new CurrentUser($entityManager, $authService);
    }
}


??

??