Loading module/Application/config/contrat.config.php +1 −1 Changes for module/Application/config/contrat.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -332,7 +332,7 @@ return [ ], 'controllers' => [ 'factories' => [ 'Application\Controller\Contrat' => ContratControllerFactory::class, 'Application\Controller\Contrat' => Controller\Factory\ContratControllerFactory::class, ], ], 'service_manager' => [ Loading module/Application/src/Application/Controller/ContratController.php +6 −5 Changes for module/Application/src/Application/Controller/ContratController.php: 6 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -54,14 +54,14 @@ class ContratController extends AbstractController use ModeleContratServiceAwareTrait; use ModeleFormAwareTrait; private $viewRenderer; private $renderer; public function __construct(PhpRenderer $viewRenderer) public function __construct(PhpRenderer $renderer) { $this->viewRenderer = $viewRenderer; $this->renderer = $renderer; } Loading Loading @@ -343,11 +343,12 @@ class ContratController extends AbstractController } if (!empty($contrat->getIntervenant()->getEmail())) { $html = $this->viewRenderer->render('application/contrat/mail/contrat', [ $html = $this->renderer->render('application/contrat/mail/contrat', [ 'contrat' => $contrat, ]); $message = $this->getServiceModeleContrat()->prepareMail($contrat, $html); $this->mail()->send($message); $mail = $this->mail()->send($message); $here=""; } return $this->getResponse(); Loading module/Application/src/Application/Controller/Factory/ContratControllerFactory.php +27 Changes for module/Application/src/Application/Controller/Factory/ContratControllerFactory.php: 27 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Controller\Factory; use Application\Controller\ContratController; use Psr\Container\ContainerInterface; class ContratControllerFactory { /** * Create controller * * @param ContainerInterface $container * * @return ContratController */ public function __invoke(ContainerInterface $container, $requestedName, $options = null) { $renderer = $container->get('ViewRenderer'); $controller = new ContratController($renderer); return $controller; } } No newline at end of file Loading
module/Application/config/contrat.config.php +1 −1 Changes for module/Application/config/contrat.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -332,7 +332,7 @@ return [ ], 'controllers' => [ 'factories' => [ 'Application\Controller\Contrat' => ContratControllerFactory::class, 'Application\Controller\Contrat' => Controller\Factory\ContratControllerFactory::class, ], ], 'service_manager' => [ Loading
module/Application/src/Application/Controller/ContratController.php +6 −5 Changes for module/Application/src/Application/Controller/ContratController.php: 6 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -54,14 +54,14 @@ class ContratController extends AbstractController use ModeleContratServiceAwareTrait; use ModeleFormAwareTrait; private $viewRenderer; private $renderer; public function __construct(PhpRenderer $viewRenderer) public function __construct(PhpRenderer $renderer) { $this->viewRenderer = $viewRenderer; $this->renderer = $renderer; } Loading Loading @@ -343,11 +343,12 @@ class ContratController extends AbstractController } if (!empty($contrat->getIntervenant()->getEmail())) { $html = $this->viewRenderer->render('application/contrat/mail/contrat', [ $html = $this->renderer->render('application/contrat/mail/contrat', [ 'contrat' => $contrat, ]); $message = $this->getServiceModeleContrat()->prepareMail($contrat, $html); $this->mail()->send($message); $mail = $this->mail()->send($message); $here=""; } return $this->getResponse(); Loading
module/Application/src/Application/Controller/Factory/ContratControllerFactory.php +27 Changes for module/Application/src/Application/Controller/Factory/ContratControllerFactory.php: 27 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Controller\Factory; use Application\Controller\ContratController; use Psr\Container\ContainerInterface; class ContratControllerFactory { /** * Create controller * * @param ContainerInterface $container * * @return ContratController */ public function __invoke(ContainerInterface $container, $requestedName, $options = null) { $renderer = $container->get('ViewRenderer'); $controller = new ContratController($renderer); return $controller; } } No newline at end of file