<?php
namespace Modules\Additional\Specifique\Client151;

use Skeleton\Module;
use Psr\Container\ContainerInterface;
use Skeleton\Renderer\RendererInterface;
use Helpers\Parametres\Parametres;
use Modules\Additional\Specifique\Client151\Modules\Suivi\Controller\SuiviCdeSpecifiqueController;
use Skeleton\Router;

class Specifique151Module extends Module
{

    const DEFINITIONS = __DIR__ . '/config.php';

    // private $router, $container
    public function __construct(ContainerInterface $container)
    {
        $container->get(RendererInterface::class)->addPath('specifique151', __DIR__.'/Modules/Suivi/View');
        
        $parametres     = new Parametres();
        $global         = $parametres->expression_global;
        
        $router = $container->get(Router::class);
        
        $router->get($container->get('baseUrl') . $container->get('Specifique151.prefix'). '/popup/AnnulationGide/{idCde:'.$global.'+}', SuiviCdeSpecifiqueController::class, 'Specifique151.Suivi.popupAnnulationGide');
    }
}
