|
@@ -3,9 +3,7 @@
|
|
|
namespace AppBundle\Controller;
|
|
|
|
|
|
use AppBundle\Entity\Commentaire;
|
|
|
-use AppBundle\Entity\Genre;
|
|
|
use AppBundle\Entity\Realisateur;
|
|
|
-use AppBundle\Service\Mattermost;
|
|
|
use AppBundle\Service\UniciteCollections;
|
|
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
|
@@ -70,7 +68,7 @@ class VideothequeController extends Controller
|
|
|
/**
|
|
|
* @Route("/ajouter", name="videotheque_ajouter")
|
|
|
*/
|
|
|
- public function ajouterAction(Request $request, Mattermost $mattermost, UniciteCollections $uniciteCollections)
|
|
|
+ public function ajouterAction(Request $request, UniciteCollections $uniciteCollections)
|
|
|
{
|
|
|
$film = new Film;
|
|
|
$film->setAuthered($this->getUser());
|
|
@@ -84,7 +82,6 @@ class VideothequeController extends Controller
|
|
|
$em->persist($film);
|
|
|
$em->flush();
|
|
|
$this->addFlash('success', 'Le film a été ajouté');
|
|
|
- $mattermost->sendNouveauFilm($film);
|
|
|
return $this->redirectToRoute('videotheque_voirfilm', array('id'=>$film->getId()));
|
|
|
}
|
|
|
|