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

use Skeleton\Router;
use Skeleton\Module;
use Psr\Container\ContainerInterface;
use Helpers\Parametres\Parametres;
use Skeleton\Renderer\RendererInterface;
use Modules\Additional\Specifique\Client112\Modules\Facture\Controller\GestionFactureController;

class Specifique112Module extends Module
{

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



    // private $router, $container
    public function __construct(ContainerInterface $container)
    {
        $parametres     = new Parametres();
        $numFact        = $parametres->id_facture;
        $societe        = $parametres->id_societe;
       
        $router = $container->get(Router::class);
        $container->get(RendererInterface::class)->addPath('Specifique112', __DIR__);

        // Controller Gestion Facture
        $router->get($container->get('baseUrl') . $container->get('Specifique112.prefix') . '/CommandeReguMail/{numFact:'.$numFact.'+}/{codeSte:'.$societe.'+}', GestionFactureController::class, 'Specifique112.GestionFacture.specMail');
    }
}
