CodeExplorer buildExitPath example
private FirewallMap
$firewallMap;
public function __construct(RequestStack
$requestStack, FirewallMap
$firewallMap, TokenStorageInterface
$tokenStorage) { $this->requestStack =
$requestStack;
$this->tokenStorage =
$tokenStorage;
$this->firewallMap =
$firewallMap;
} public function generateExitPath(string
$targetUri = null
): string
{ return $this->
buildExitPath($targetUri);
} public function generateExitUrl(string
$targetUri = null
): string
{ if (null ===
$request =
$this->requestStack->
getCurrentRequest()) { return '';
} return $request->
getUriForPath($this->
buildExitPath($targetUri));
}