Skip to content
Snippets Groups Projects
Select Git revision
  • 818eb8628b5513b115556cba94fe3ca3d45c1bf4
  • master default protected
  • release-1.3.10
  • popover-bootstrap-3.4
  • zf-3.x
  • 3.0.9
  • 3.0.8
  • 1.3.10
  • 3.0.7
  • 3.0.6
  • 3.0.5
  • 3.0.4
  • 3.0.3
  • 3.0.2
  • 3.0.1
  • 3.0.0
  • 1.3.9
  • 1.3.8
  • 1.3.7
  • 1.3.6
  • 1.3.5
  • 1.3.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
25 results

schema.sqlite.sql

Blame
  • Forked from lib / unicaen / auth
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    MailControllerFactory.php 686 B
    <?php
    
    namespace UnicaenMail\Controller;
    
    use Psr\Container\ContainerExceptionInterface;
    use Psr\Container\ContainerInterface;
    use Psr\Container\NotFoundExceptionInterface;
    use UnicaenMail\Service\Mail\MailService;
    
    class MailControllerFactory
    {
    
        /**
         * @throws ContainerExceptionInterface
         * @throws NotFoundExceptionInterface
         */
        public function __invoke(ContainerInterface $container): MailController
        {
            /**
             * @var MailService $mailService
             */
            $mailService = $container->get(MailService::class);
    
            $controller = new MailController();
            $controller->setMailService($mailService);
            return $controller;
        }
    }