Skip to content
Snippets Groups Projects
Select Git revision
  • e096d5ab6c423d413db8e6ad52f28bcbbe91eafd
  • master default protected
  • release_3.0.0
  • test
  • feature_pre_sql
  • develop
  • 3.0.1
  • 3.0.0
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.3.7
  • 1.3.6
  • 1.3.5
  • 1.3.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.6
  • 1.2.5
  • 1.2.4
  • 1.2.3
  • 1.2.2
  • 1.2.1
26 results

user.global.php

Blame
  • 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;
        }
    }