1000 search results

<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
// ... lines 6 - 12
<services>
// ... lines 14 - 167
<service id="Symfony\Bundle\SecurityBundle\Security\TargetPathHelper" alias="security.target_path_helper" />
// ... lines 169 - 223
</services>
</container>
See Code Block in Script
// ... lines 1 - 2
namespace Symfony\Bundle\SecurityBundle\Security;
class TargetPathHelper
{
public function savePath(string $uri)
{
}
}
See Code Block in Script
// ... lines 1 - 13
class TargetPathHelper
{
/**
* Sets the target path the user should be redirected to after authentication.
*
* @param string $uri The URI to set as the target path
*/
public function savePath(string $uri)
{
}
}
See Code Block in Script
// ... lines 1 - 13
class TargetPathHelper
{
/**
// ... lines 17 - 18
* @param string $uri The URI to set as the target path
*/
public function savePath(string $uri)
{
}
}
See Code Block in Script
// ... lines 1 - 2
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\SecurityBundle\Security;
class TargetPathHelper
{
// ... lines 16 - 24
}
See Code Block in Script
// ... lines 1 - 13
use Symfony\Component\Security\Http\Util\TargetPathTrait;
class TargetPathHelper
{
use TargetPathTrait;
// ... lines 19 - 28
}
See Code Block in Script
// ... lines 1 - 15
class TargetPathHelper
{
use TargetPathTrait;
// ... lines 19 - 24
public function savePath(string $uri)
{
$this->saveTargetPath();
}
}
See Code Block in Script
// ... lines 1 - 13
use Symfony\Component\HttpFoundation\Session\SessionInterface;
// ... lines 15 - 16
class TargetPathHelper
{
// ... lines 19 - 24
public function __construct(SessionInterface $session, FirewallMap $firewallMap)
{
// ... lines 27 - 28
}
// ... lines 30 - 44
}
See Code Block in Script
// ... lines 1 - 16
class TargetPathHelper
{
// ... lines 19 - 20
private $session;
private $firewallMap;
public function __construct(SessionInterface $session, FirewallMap $firewallMap)
{
$this->session = $session;
$this->firewallMap = $firewallMap;
}
// ... lines 30 - 44
}
See Code Block in Script
// ... lines 1 - 16
class TargetPathHelper
{
// ... lines 19 - 40
private function getProviderKey(): string
{
// TODO
}
}
See Code Block in Script
// ... lines 1 - 16
class TargetPathHelper
{
// ... lines 19 - 35
public function savePath(string $uri)
{
$this->saveTargetPath($this->session, $this->getProviderKey(), $uri);
}
// ... lines 40 - 44
}
See Code Block in Script
// ... lines 1 - 16
class TargetPathHelper
{
// ... lines 19 - 40
private function getProviderKey(): string
{
// TODO
}
}
See Code Block in Script
// ... lines 1 - 13
use Symfony\Component\HttpFoundation\RequestStack;
// ... lines 15 - 17
class TargetPathHelper
{
// ... lines 20 - 25
private $requestStack;
public function __construct(SessionInterface $session, FirewallMap $firewallMap, RequestStack $requestStack)
{
// ... lines 30 - 31
$this->requestStack = $requestStack;
}
// ... lines 34 - 54
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 44
private function getProviderKey(): string
{
$firewallConfig = $this->firewallMap->getFirewallConfig($this->requestStack->getMasterRequest());
// ... lines 48 - 53
}
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 44
private function getProviderKey(): string
{
$firewallConfig = $this->firewallMap->getFirewallConfig($this->requestStack->getMasterRequest());
if (null === $firewallConfig) {
// ... line 50
}
// ... lines 52 - 53
}
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 44
private function getProviderKey(): string
{
$firewallConfig = $this->firewallMap->getFirewallConfig($this->requestStack->getMasterRequest());
if (null === $firewallConfig) {
throw new \LogicException('Could not find firewall config for the current request');
}
// ... lines 52 - 53
}
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 44
private function getProviderKey(): string
{
$firewallConfig = $this->firewallMap->getFirewallConfig($this->requestStack->getMasterRequest());
if (null === $firewallConfig) {
throw new \LogicException('Could not find firewall config for the current request');
}
return $firewallConfig->getName();
}
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 47
public function getPath(): string
{
return $this->getTargetPath($this->session, $this->getProviderKey());
}
// ... lines 52 - 62
}
See Code Block in Script
// ... lines 1 - 17
class TargetPathHelper
{
// ... lines 20 - 44
/**
* Returns the URL (if any) the user visited that forced them to login.
*/
public function getPath(): string
{
return $this->getTargetPath($this->session, $this->getProviderKey());
}
// ... lines 52 - 62
}
See Code Block in Script
// ... lines 1 - 17
final class TargetPathHelper
{
// ... lines 20 - 62
}
See Code Block in Script