Skip to content

Instantly share code, notes, and snippets.

View amenophis's full-sized avatar

Jérémy Leherpeur amenophis

View GitHub Profile
@amenophis
amenophis / ControllerAnnotationListener.php
Last active December 31, 2015 01:39
Créer ses annotations
<?php
namespace TataJerem\Bundle\DemoBundle\EventListener;
use Doctrine\Common\Annotations\Reader;
use Doctrine\Common\Util\ClassUtils;
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use Symfony\Component\Security\Core\SecurityContext;
use TataJerem\Bundle\DemoBundle\Annotation\Permissions;