Deprecated: EasyCorp\Bundle\EasyAdminBundle\Factory\ActionFactory::processGlobalActions(): Implicitly marking parameter $actionsDto as nullable is deprecated, the explicit nullable type must be used instead in /home/u452929230/domains/sowcoder.com/public_html/oks-shop/vendor/easycorp/easyadmin-bundle/src/Factory/ActionFactory.php on line 73 Symfony Profiler
vendor/symfony/security-csrf/CsrfTokenManager.php line 27
throw new InvalidArgumentException(sprintf('$namespace must be a string, a callable returning a string, null or an instance of "RequestStack". "%s" given.', get_debug_type($namespace)));
}
}
/**
* {@inheritdoc}
*/
public function getToken(string $tokenId)
{
$namespacedId = $this->getNamespace().$tokenId;
if ($this->storage->hasToken($namespacedId)) {
$value = $this->storage->getToken($namespacedId);
} else {
$value = $this->generator->generateToken();
$this->storage->setToken($namespacedId, $value);
}
return new CsrfToken($tokenId, $this->randomize($value));
}
/**
* {@inheritdoc}
*/
public function refreshToken(string $tokenId)
{
$namespacedId = $this->getNamespace().$tokenId;
$value = $this->generator->generateToken();
$this->storage->setToken($namespacedId, $value);
return new CsrfToken($tokenId, $this->randomize($value));