<?php

namespace Modules\Additional\Specifique\Client160;

use Helpers\Parametres\Parametres;
use Modules\Additional\Specifique\Client160\Modules\Fournisseur\Controller\QualityReviewController;
use Psr\Container\ContainerInterface;
use Skeleton\Module;
use Skeleton\Router;
use Skeleton\Renderer\RendererInterface;

class Specifique160Module extends Module
{

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

    /**
     * @param ContainerInterface $container
     * @throws \Psr\Container\ContainerExceptionInterface
     * @throws \Psr\Container\NotFoundExceptionInterface
     */
    public function __construct(ContainerInterface $container)
    {
        $container->get(RendererInterface::class)->addPath('Specifique160.Fournisseur', __DIR__ . '/Modules/Fournisseur/view');
        $router = $container->get(Router::class);

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

        $router->get(
            $baseUrl . '/qualityReview',
            QualityReviewController::class,
            'Specifique160.QualityReview.index',
        );
    }
}
