src/Authentication/AuthenticationController.php 1 location
|
@@ 19-26 (lines=8) @@
|
16 |
|
{ |
17 |
|
private $container; |
18 |
|
|
19 |
|
public function __construct(ContainerInterface $container) |
20 |
|
{ |
21 |
|
if ($container instanceof Container) { |
22 |
|
$this->container = $container; |
23 |
|
} else { |
24 |
|
$this->container = new Container($container); |
25 |
|
} |
26 |
|
} |
27 |
|
|
28 |
|
public function login(string $email, string $password, bool $isLongSession = false) |
29 |
|
{ |
src/Session/SessionController.php 1 location
|
@@ 18-25 (lines=8) @@
|
15 |
|
private $container; |
16 |
|
private $session; |
17 |
|
|
18 |
|
public function __construct(ContainerInterface $container) |
19 |
|
{ |
20 |
|
if ($container instanceof Container) { |
21 |
|
$this->container = $container; |
22 |
|
} else { |
23 |
|
$this->container = new Container($container); |
24 |
|
} |
25 |
|
} |
26 |
|
|
27 |
|
public function getSession(string $id): SessionEntityInterface |
28 |
|
{ |