Select Git revision
RenduControllerFactory.php

Jean-Philippe Metivier authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
RenduControllerFactory.php 504 B
<?php
namespace UnicaenRenderer\Controller;
use Interop\Container\ContainerInterface;
use UnicaenRenderer\Service\Rendu\RenduService;
class RenduControllerFactory {
public function __invoke(ContainerInterface $container)
{
/**
* @var RenduService $contenuService
*/
$contenuService = $container->get(RenduService::class);
$controller = new RenduController();
$controller->setRenduService($contenuService);
return $controller;
}
}