removed unused dependency

This commit is contained in:
Kevin Papst
2020-08-18 15:06:49 +02:00
parent 367a901207
commit 8d1e24ae90

View File

@@ -24,7 +24,6 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\MoneyType; use Symfony\Component\Form\Extension\Core\Type\MoneyType;
use Symfony\Component\Form\Extension\Core\Type\TimezoneType; use Symfony\Component\Form\Extension\Core\Type\TimezoneType;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use Symfony\Component\Validator\Constraints\Range; use Symfony\Component\Validator\Constraints\Range;
@@ -38,19 +37,14 @@ class UserPreferenceSubscriber implements EventSubscriberInterface
* @var AuthorizationCheckerInterface * @var AuthorizationCheckerInterface
*/ */
protected $voter; protected $voter;
/**
* @var TokenStorageInterface
*/
protected $storage;
/** /**
* @var FormConfiguration * @var FormConfiguration
*/ */
protected $formConfig; protected $formConfig;
public function __construct(EventDispatcherInterface $dispatcher, TokenStorageInterface $storage, AuthorizationCheckerInterface $voter, FormConfiguration $formConfig) public function __construct(EventDispatcherInterface $dispatcher, AuthorizationCheckerInterface $voter, FormConfiguration $formConfig)
{ {
$this->eventDispatcher = $dispatcher; $this->eventDispatcher = $dispatcher;
$this->storage = $storage;
$this->voter = $voter; $this->voter = $voter;
$this->formConfig = $formConfig; $this->formConfig = $formConfig;
} }