1000 search results

// ... 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
<?php
// ... line 2
namespace AppBundle\Security;
// ... lines 4 - 19
class LoginFormAuthenticator extends AbstractFormLoginAuthenticator
{
// ... lines 22 - 101
}
See Code Block in Script
// ... lines 1 - 10
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
// ... lines 12 - 15
class LoginFormAuthenticator extends AbstractFormLoginAuthenticator
{
// ... lines 18 - 22
public function __construct(FormFactoryInterface $formFactory, EntityManager $em, RouterInterface $router, UserPasswordEncoderInterface $passwordEncoder)
{
// ... lines 25 - 28
}
// ... lines 30 - 78
}
See Code Block in Script
// ... lines 1 - 10
{% block javascripts %}
// ... lines 12 - 13
<script src="{{ asset('assets/js/login.js') }}"></script>
{% endblock %}
// ... lines 16 - 72
See Code Block in Script
// ... lines 1 - 10
{% block javascripts %}
// ... lines 12 - 13
<script src="{{ asset('build/login.js') }}"></script>
{% endblock %}
// ... lines 16 - 72
See Code Block in Script
// ... lines 1 - 4
{% block stylesheets %}
// ... lines 6 - 7
<link rel="stylesheet" href="{{ asset('assets/css/login.css') }}" />
{% endblock %}
{% block javascripts %}
// ... lines 12 - 13
<script src="{{ asset('build/login.js') }}"></script>
{% endblock %}
// ... lines 16 - 72
See Code Block in Script
// ... lines 1 - 10
{% block fos_user_content %}
<div class="container">
<div class="wrapper">
<form action="{{ path("fos_user_security_check") }}" method="post" class="form-signin">
<h3><img class="dumbbell" src="{{ asset('build/static/dumbbell.png') }}">Login! Start Lifting!</h3>
// ... lines 16 - 61
</form>
</div>
</div>
{% endblock fos_user_content %}
See Code Block in Script
// ... lines 1 - 10
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('build/login.css') }}">
{% endblock %}
// ... lines 16 - 72
See Code Block in Script
47 lines | src/AppBundle/Entity/Security.php
// ... lines 1 - 2
namespace AppBundle\Entity;
// ... line 4
use Doctrine\ORM\Mapping as ORM;
// ... line 6
/**
* @ORM\Entity
* @ORM\Table(name="securities")
*/
class Security
{
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string")
*/
private $name;
/**
* @ORM\Column(type="boolean")
*/
private $isActive;
/**
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\Enclosure", inversedBy="securities")
*/
private $enclosure;
public function __construct(string $name, bool $isActive, Enclosure $enclosure)
{
$this->name = $name;
$this->isActive = $isActive;
$this->enclosure = $enclosure;
}
public function getIsActive(): bool
{
return $this->isActive;
}
}
See Code Block in Script
// ... lines 1 - 15
class LoginFormAuthenticator extends AbstractFormLoginAuthenticator
{
// ... lines 18 - 30
public function supports(Request $request)
{
return $request->getPathInfo() == '/login' && $request->isMethod('POST');
}
// ... line 35
public function getCredentials(Request $request)
{
// ... lines 38 - 47
}
// ... lines 49 - 77
}
See Code Block in Script