|
@@ -5,7 +5,6 @@ namespace AppBundle\Service;
|
|
|
use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
|
|
|
use AppBundle\Entity\Film;
|
|
|
use Symfony\Component\Config\Definition\Exception\Exception;
|
|
|
-use Symfony\Component\HttpFoundation\Session\Session;
|
|
|
|
|
|
class FilmCreationListener
|
|
|
{
|
|
@@ -13,7 +12,6 @@ class FilmCreationListener
|
|
|
* var mattermostSender
|
|
|
*/
|
|
|
private $mattermostSender;
|
|
|
- private $session;
|
|
|
|
|
|
public function __construct(Mattermost $mattermostSender)
|
|
|
{
|
|
@@ -31,7 +29,7 @@ class FilmCreationListener
|
|
|
try {
|
|
|
$this->mattermostSender->sendNouveauFilm($entity);
|
|
|
} catch (Exception $exception) {
|
|
|
- // Ajouter flashbag
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|