<?
    /**FONCTION A COLLER DANS LE CONTROLLER DU SITE */

    // public function __construct(EntityManagerInterface $manager, RequestStack $requestStack)
    // {
    //     $this->outilsBox = new Outils($manager, $requestStack);    
    // }

    /** FONCTIONS A INSERER DANS LE CONTROLLER
     * 
     */
    // protected function jobController()
    // {
    //     //Si besoin on crée un formulaire
    //     if($this->outilsBox->getFormClassType() != null && $this->outilsBox->getFormElement() != null)
    //     {
    //         $this->outilsBox->setFormForm($this->createForm($this->outilsBox->getFormClassType(), $this->outilsBox->getFormElement()));
    //         $this->outilsBox->creerFormulaire($this);
    //     }
        
    //     //On récupére le jobController
    //     $jobController = $this->outilsBox->recupJobController();

    //     //On enregistre les données du manager
    //     $this->outilsBox->enregistrer();

    //     //On recherche ce qui doit être affiché
    //     switch($jobController['affichage']['fonction'])
    //     {
    //         case 'redirectToRoute':
    //             return $this->redirectToRoute($jobController['affichage']['route'], $jobController['affichage']['params']);
    //         break;
    //         case 'render':
    //             return $this->render($jobController['affichage']['twig'], $jobController['affichage']['params']);
    //         break;
    //         default:
    //             //Affichage d'une page d'erreur ou d'une redirection !
    //         break;
    //     }
    // }