I'm trying to extend this class:
Symfony\Component\Security\Http\RememberMe\AbstractRememberMeServices
...and I need to also pass in some additional variables. This means I need to call the _construct of the above AbstractRememberMeServices class (parent:_construct from the new class), but I can't see where I can get all the variables from.
This is the __construct:
public function __construct(array $userProviders, $key, $providerKey, array $options = array(), LoggerInterface $logger = null)
{
if (empty($key)) {
throw new \InvalidArgumentException('$key must not be empty.');
}
if (empty($providerKey)) {
throw new \InvalidArgumentException('$providerKey must not be empty.');
}
if (0 === count($userProviders)) {
throw new \InvalidArgumentException('You must provide at least one user provider.');
}
$this->userProviders = $userProviders;
$this->key = $key;
$this->providerKey = $providerKey;
$this->options = $options;
$this->logger = $logger;
}
I can work out one of them, but where do I get the rest? As these are normally automatically set then surely I can just use those rather than set them again manually.
services.yml:
arguments:
-
-
-
-
- @logger