mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-11-04 03:08:25 +00:00 
			
		
		
		
	replace tokenStorage injection by tokenStorageInterface
This commit is contained in:
		@@ -22,7 +22,7 @@ namespace Chill\MainBundle\Form\Type;
 | 
			
		||||
use Symfony\Component\Form\AbstractType;
 | 
			
		||||
use Symfony\Component\OptionsResolver\OptionsResolver;
 | 
			
		||||
use Symfony\Component\Form\FormBuilderInterface;
 | 
			
		||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
 | 
			
		||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
 | 
			
		||||
use Chill\MainBundle\Entity\Center;
 | 
			
		||||
use Chill\MainBundle\Form\Type\DataTransformer\CenterTransformer;
 | 
			
		||||
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
 | 
			
		||||
@@ -56,7 +56,7 @@ class CenterType extends AbstractType
 | 
			
		||||
     */
 | 
			
		||||
    protected $transformer;
 | 
			
		||||
 | 
			
		||||
    public function __construct(TokenStorage $tokenStorage,
 | 
			
		||||
    public function __construct(TokenStorageInterface $tokenStorage,
 | 
			
		||||
            CenterTransformer $transformer)
 | 
			
		||||
    {
 | 
			
		||||
        $this->user = $tokenStorage->getToken()->getUser();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user