mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
replace tokenStorage injection by tokenStorageInterface
This commit is contained in:
parent
95682734dd
commit
e3b5b46bd1
@ -26,7 +26,7 @@ use Chill\MainBundle\Search\SearchInterface;
|
|||||||
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
|
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
|
||||||
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
|
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
|
||||||
use Chill\MainBundle\Search\ParsingException;
|
use Chill\MainBundle\Search\ParsingException;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||||
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
|
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
|
||||||
use Symfony\Component\Security\Core\Role\Role;
|
use Symfony\Component\Security\Core\Role\Role;
|
||||||
use Chill\MainBundle\Pagination\PaginatorFactory;
|
use Chill\MainBundle\Pagination\PaginatorFactory;
|
||||||
@ -71,7 +71,7 @@ class PersonSearch extends AbstractSearch implements ContainerAwareInterface,
|
|||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
TokenStorage $tokenStorage,
|
TokenStorageInterface $tokenStorage,
|
||||||
AuthorizationHelper $helper,
|
AuthorizationHelper $helper,
|
||||||
PaginatorFactory $paginatorFactory)
|
PaginatorFactory $paginatorFactory)
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ use Doctrine\ORM\EntityManagerInterface;
|
|||||||
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
|
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
|
||||||
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
|
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||||
use Symfony\Component\Security\Core\Role\Role;
|
use Symfony\Component\Security\Core\Role\Role;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -61,14 +61,14 @@ class SimilarityPersonSearch extends AbstractSearch
|
|||||||
* SimilarityPersonSearch constructor.
|
* SimilarityPersonSearch constructor.
|
||||||
*
|
*
|
||||||
* @param EntityManagerInterface $em
|
* @param EntityManagerInterface $em
|
||||||
* @param TokenStorage $tokenStorage
|
* @param TokenStorageInterface $tokenStorage
|
||||||
* @param AuthorizationHelper $helper
|
* @param AuthorizationHelper $helper
|
||||||
* @param PaginatorFactory $paginatorFactory
|
* @param PaginatorFactory $paginatorFactory
|
||||||
* @param PersonSearch $personSearch
|
* @param PersonSearch $personSearch
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
TokenStorage $tokenStorage,
|
TokenStorageInterface $tokenStorage,
|
||||||
AuthorizationHelper $helper,
|
AuthorizationHelper $helper,
|
||||||
PaginatorFactory $paginatorFactory,
|
PaginatorFactory $paginatorFactory,
|
||||||
PersonSearch $personSearch)
|
PersonSearch $personSearch)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user