@@ -9,7 +9,6 @@  | 
                                                    ||
| 9 | 9 | namespace Webcook\Cms\SecurityBundle\Common;  | 
                                                        
| 10 | 10 | |
| 11 | 11 | use Symfony\Component\Finder\Finder;  | 
                                                        
| 12 | -use Doctrine\Common\Annotations\AnnotationReader;  | 
                                                        |
| 13 | 12 | |
| 14 | 13 | /**  | 
                                                        
| 15 | 14 | * Basic helper class.  | 
                                                        
@@ -9,19 +9,11 @@  | 
                                                    ||
| 9 | 9 | namespace Webcook\Cms\SecurityBundle\Controller;  | 
                                                        
| 10 | 10 | |
| 11 | 11 | use Webcook\Cms\CoreBundle\Base\BaseRestController;  | 
                                                        
| 12 | -use Webcook\Cms\SecurityBundle\Entity\Role;  | 
                                                        |
| 13 | -use Webcook\Cms\SecurityBundle\Entity\Resource;  | 
                                                        |
| 14 | 12 | use Webcook\Cms\SecurityBundle\Entity\RoleResource;  | 
                                                        
| 15 | -use Webcook\Cms\SecurityBundle\Form\Type\RoleType;  | 
                                                        |
| 16 | 13 | use Webcook\Cms\SecurityBundle\Form\Type\ResourcesType;  | 
                                                        
| 17 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;  | 
                                                        |
| 18 | 14 | use Nelmio\ApiDocBundle\Annotation\ApiDoc;  | 
                                                        
| 19 | -use Webcook\Cms\SecurityBundle\Authorization\Voter\WebcookCmsVoter;  | 
                                                        |
| 20 | 15 | use FOS\RestBundle\Controller\Annotations\Get;  | 
                                                        
| 21 | -use FOS\RestBundle\Controller\Annotations\Post;  | 
                                                        |
| 22 | 16 | use FOS\RestBundle\Controller\Annotations\Put;  | 
                                                        
| 23 | -use FOS\RestBundle\Controller\Annotations\Delete;  | 
                                                        |
| 24 | -use Doctrine\DBAL\LockMode;  | 
                                                        |
| 25 | 17 | |
| 26 | 18 | /**  | 
                                                        
| 27 | 19 | * REST api controller - role management.  | 
                                                        
@@ -207,7 +207,7 @@  | 
                                                    ||
| 207 | 207 | /**  | 
                                                        
| 208 | 208 | * Sets the value of role.  | 
                                                        
| 209 | 209 | *  | 
                                                        
| 210 | - * @param mixed $role the role  | 
                                                        |
| 210 | + * @param Role $role the role  | 
                                                        |
| 211 | 211 | *  | 
                                                        
| 212 | 212 | * @return self  | 
                                                        
| 213 | 213 | */  | 
                                                        
@@ -11,9 +11,6 @@  | 
                                                    ||
| 11 | 11 | use Webcook\Cms\CoreBundle\Base\BasicEntity;  | 
                                                        
| 12 | 12 | use Doctrine\ORM\Mapping as ORM;  | 
                                                        
| 13 | 13 | use Webcook\Cms\SecurityBundle\Authorization\Voter\WebcookCmsVoter;  | 
                                                        
| 14 | -use ApiPlatform\Core\Annotation\ApiProperty;  | 
                                                        |
| 15 | -use ApiPlatform\Core\Annotation\ApiResource;  | 
                                                        |
| 16 | -use Symfony\Component\Validator\Constraints as Assert;  | 
                                                        |
| 17 | 14 | |
| 18 | 15 | /**  | 
                                                        
| 19 | 16 | * Role resource entity.  | 
                                                        
@@ -4,7 +4,6 @@  | 
                                                    ||
| 4 | 4 | |
| 5 | 5 | use ApiPlatform\Core\EventListener\EventPriorities;  | 
                                                        
| 6 | 6 | use Webcook\Cms\SecurityBundle\Entity\User;  | 
                                                        
| 7 | -use Symfony\Component\HttpFoundation\Request;  | 
                                                        |
| 8 | 7 | use Symfony\Component\EventDispatcher\EventSubscriberInterface;  | 
                                                        
| 9 | 8 | use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent;  | 
                                                        
| 10 | 9 | use Symfony\Component\HttpKernel\KernelEvents;  |