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

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

class Specifique123Module extends Module
{

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



    // private $router, $container
    public function __construct(ContainerInterface $container)
    {
        $parametres     = new Parametres();
       
        $router = $container->get(Router::class);
        $container->get(RendererInterface::class)->addPath('Specifique123', __DIR__);
        $container->get(RendererInterface::class)->addPath('Specifique123Facture', __DIR__.'/Modules/Facture/view');

        $base_url = $container->get('baseUrl') . $container->get('Specifique123.prefix');

        // Controller Ajax Facture
        $router->get($base_url . '/ajax-facture/changeCdc', AjaxFactureController::class, 'Specifique123.ajax.changeCdc');
        $router->get($base_url . '/ajax-facture/changeCodeTaxe', AjaxFactureController::class, 'Specifique123.ajax.changeCodeTaxe');
    }
}
