Current path: home/webdevt/cryptoimpot.fr/module/User/src/Controller/Plugin/Factory/
?? Go up: /home/webdevt/cryptoimpot.fr/module/User/src/Controller/Plugin
<?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);
}
}