?? GreyFile — Mystic File Browser

Current path: home/webdevt/cryptoimpot.fr/module/User/src/Controller/Plugin/Factory/



?? Go up: /home/webdevt/cryptoimpot.fr/module/User/src/Controller/Plugin

?? Viewing: CurrentUserPluginFactory.php

<?php
namespace User\Controller\Plugin\Factory;

use Interop\Container\ContainerInterface;
use User\Controller\Plugin\CurrentUserPlugin;

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




??

??