@@ -78,6 +78,7 @@ |
||
78 | 78 | |
79 | 79 | /** |
80 | 80 | * {@inheritdoc} |
81 | + * @param boolean $state |
|
81 | 82 | */ |
82 | 83 | public function setAuthenticated($state): self |
83 | 84 | { |
@@ -4,14 +4,14 @@ |
||
4 | 4 | |
5 | 5 | namespace SixtyEightPublishers\User\DoctrineIdentity; |
6 | 6 | |
7 | -use Nette\SmartObject; |
|
8 | -use Nette\Security\IIdentity; |
|
9 | -use Nette\Security\IUserStorage; |
|
10 | 7 | use Doctrine\ORM\EntityManagerInterface; |
11 | 8 | use Doctrine\Persistence\Mapping\MappingException; |
12 | -use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; |
|
9 | +use Nette\Security\IIdentity; |
|
10 | +use Nette\Security\IUserStorage; |
|
11 | +use Nette\SmartObject; |
|
13 | 12 | use SixtyEightPublishers\User\DoctrineIdentity\Event\IdentityNotFoundEvent; |
14 | 13 | use SixtyEightPublishers\User\DoctrineIdentity\Exception\UnimplementedMethodException; |
14 | +use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * @method void onIdentityNotFound(IdentityReference $identityReference) |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | namespace SixtyEightPublishers\User\Authentication\Authenticator; |
6 | 6 | |
7 | +use Nette\Security\AuthenticationException; |
|
8 | +use Nette\Security\IAuthenticator; |
|
9 | +use Nette\Security\IIdentity; |
|
7 | 10 | use Nette\SmartObject; |
8 | 11 | use Nette\Utils\Strings; |
9 | -use Nette\Security\IIdentity; |
|
10 | -use Nette\Security\IAuthenticator; |
|
11 | -use Nette\Security\AuthenticationException; |
|
12 | 12 | use SixtyEightPublishers\User\Common\Exception\InvalidArgumentException; |
13 | 13 | |
14 | 14 | final class AuthenticatorMount implements IAuthenticator |
@@ -4,15 +4,15 @@ |
||
4 | 4 | |
5 | 5 | namespace SixtyEightPublishers\User\Authentication\Control\SignIn; |
6 | 6 | |
7 | -use Nette\Security\User; |
|
8 | 7 | use Nette\Application\UI\Form; |
9 | -use Nette\Security\IAuthenticator; |
|
10 | 8 | use Nette\Security\AuthenticationException; |
9 | +use Nette\Security\IAuthenticator; |
|
10 | +use Nette\Security\User; |
|
11 | 11 | use SixtyEightPublishers\SmartNetteComponent\UI\Control; |
12 | -use SixtyEightPublishers\User\Common\Logger\LoggerInterface; |
|
13 | -use SixtyEightPublishers\TranslationBridge\TranslatorAwareTrait; |
|
14 | 12 | use SixtyEightPublishers\TranslationBridge\TranslatorAwareInterface; |
13 | +use SixtyEightPublishers\TranslationBridge\TranslatorAwareTrait; |
|
15 | 14 | use SixtyEightPublishers\User\Authentication\Authenticator\AuthenticatorMount; |
15 | +use SixtyEightPublishers\User\Common\Logger\LoggerInterface; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @method void onLoggedIn() |
@@ -4,24 +4,24 @@ |
||
4 | 4 | |
5 | 5 | namespace SixtyEightPublishers\User\Authentication\DI; |
6 | 6 | |
7 | +use Nette\DI\Definitions\Statement; |
|
7 | 8 | use Nette\Schema\Expect; |
8 | 9 | use Nette\Schema\Schema; |
9 | 10 | use Nette\Security\IAuthenticator; |
10 | -use Nette\DI\Definitions\Statement; |
|
11 | 11 | use SixtyEightPublishers\DoctrineBridge\DI\TargetEntity; |
12 | -use SixtyEightPublishers\User\Common\DI\CommonExtension; |
|
13 | -use SixtyEightPublishers\User\DI\AbstractCompilerExtensionPass; |
|
14 | -use SixtyEightPublishers\User\Authentication\Entity\UserInterface; |
|
15 | -use SixtyEightPublishers\User\Authentication\Csrf\CsrfTokenFactory; |
|
16 | -use SixtyEightPublishers\User\Common\Exception\ConfigurationException; |
|
17 | 12 | use SixtyEightPublishers\DoctrineBridge\DI\TargetEntityProviderInterface; |
13 | +use SixtyEightPublishers\TranslationBridge\DI\TranslationProviderInterface; |
|
18 | 14 | use SixtyEightPublishers\User\Authentication\Authenticator\Authenticator; |
19 | 15 | use SixtyEightPublishers\User\Authentication\Control\SignIn\SignInControl; |
20 | -use SixtyEightPublishers\TranslationBridge\DI\TranslationProviderInterface; |
|
16 | +use SixtyEightPublishers\User\Authentication\Control\SignIn\SignInControlFactoryInterface; |
|
17 | +use SixtyEightPublishers\User\Authentication\Csrf\CsrfTokenFactory; |
|
21 | 18 | use SixtyEightPublishers\User\Authentication\Csrf\CsrfTokenFactoryInterface; |
19 | +use SixtyEightPublishers\User\Authentication\Entity\UserInterface; |
|
22 | 20 | use SixtyEightPublishers\User\Authentication\Query\AuthenticatorQueryObject; |
23 | -use SixtyEightPublishers\User\Authentication\Control\SignIn\SignInControlFactoryInterface; |
|
24 | 21 | use SixtyEightPublishers\User\Authentication\Query\AuthenticatorQueryObjectFactoryInterface; |
22 | +use SixtyEightPublishers\User\Common\DI\CommonExtension; |
|
23 | +use SixtyEightPublishers\User\Common\Exception\ConfigurationException; |
|
24 | +use SixtyEightPublishers\User\DI\AbstractCompilerExtensionPass; |
|
25 | 25 | |
26 | 26 | final class AuthenticationExtension extends AbstractCompilerExtensionPass implements TargetEntityProviderInterface, TranslationProviderInterface |
27 | 27 | { |
@@ -4,14 +4,14 @@ |
||
4 | 4 | |
5 | 5 | namespace SixtyEightPublishers\User\Authentication\Authenticator; |
6 | 6 | |
7 | -use Nette\SmartObject; |
|
8 | -use Nette\Security\IIdentity; |
|
9 | -use Nette\Security\IAuthenticator; |
|
7 | +use Doctrine\DBAL\Exception as DBALException; |
|
10 | 8 | use Doctrine\ORM\NonUniqueResultException; |
11 | 9 | use Nette\Security\AuthenticationException; |
12 | -use Doctrine\DBAL\Exception as DBALException; |
|
13 | -use SixtyEightPublishers\User\Authentication\Entity\UserInterface; |
|
10 | +use Nette\Security\IAuthenticator; |
|
11 | +use Nette\Security\IIdentity; |
|
12 | +use Nette\SmartObject; |
|
14 | 13 | use SixtyEightPublishers\DoctrineQueryObjects\ExecutableQueryObjectFactoryInterface; |
14 | +use SixtyEightPublishers\User\Authentication\Entity\UserInterface; |
|
15 | 15 | use SixtyEightPublishers\User\Authentication\Query\AuthenticatorQueryObjectFactoryInterface; |
16 | 16 | |
17 | 17 | final class Authenticator implements IAuthenticator |
@@ -5,26 +5,26 @@ |
||
5 | 5 | namespace SixtyEightPublishers\User\Common\DI; |
6 | 6 | |
7 | 7 | use ArrayObject; |
8 | -use Nette\Schema\Expect; |
|
9 | -use Nette\Schema\Schema; |
|
10 | 8 | use Nette\DI\CompilerExtension; |
11 | 9 | use Nette\DI\Definitions\Statement; |
12 | -use SixtyEightPublishers\User\Common\UserMapping; |
|
10 | +use Nette\Schema\Expect; |
|
11 | +use Nette\Schema\Schema; |
|
13 | 12 | use SixtyEightPublishers\DoctrineBridge\DI\DatabaseType; |
13 | +use SixtyEightPublishers\DoctrineBridge\DI\DatabaseTypeProviderInterface; |
|
14 | 14 | use SixtyEightPublishers\DoctrineBridge\DI\TargetEntity; |
15 | -use SixtyEightPublishers\User\Common\Logger\TracyLogger; |
|
16 | -use SixtyEightPublishers\User\Common\Mail\NullMailSender; |
|
15 | +use SixtyEightPublishers\DoctrineBridge\DI\TargetEntityProviderInterface; |
|
16 | +use SixtyEightPublishers\User\Common\DbalType\Password\PasswordInterface; |
|
17 | +use SixtyEightPublishers\User\Common\DbalType\Password\PasswordType; |
|
17 | 18 | use SixtyEightPublishers\User\Common\Entity\UserInterface; |
19 | +use SixtyEightPublishers\User\Common\Exception\ConfigurationException; |
|
18 | 20 | use SixtyEightPublishers\User\Common\Logger\LoggerInterface; |
21 | +use SixtyEightPublishers\User\Common\Logger\TracyLogger; |
|
19 | 22 | use SixtyEightPublishers\User\Common\Mail\MailSenderInterface; |
20 | -use SixtyEightPublishers\User\DI\AbstractCompilerExtensionPass; |
|
21 | -use SixtyEightPublishers\User\Common\DbalType\Password\PasswordType; |
|
22 | -use SixtyEightPublishers\User\Common\Exception\ConfigurationException; |
|
23 | -use SixtyEightPublishers\DoctrineBridge\DI\DatabaseTypeProviderInterface; |
|
24 | -use SixtyEightPublishers\DoctrineBridge\DI\TargetEntityProviderInterface; |
|
25 | -use SixtyEightPublishers\User\Common\DbalType\Password\PasswordInterface; |
|
23 | +use SixtyEightPublishers\User\Common\Mail\NullMailSender; |
|
26 | 24 | use SixtyEightPublishers\User\Common\PasswordHashStrategy\DefaultPasswordHashStrategy; |
27 | 25 | use SixtyEightPublishers\User\Common\PasswordHashStrategy\PasswordHashStrategyInterface; |
26 | +use SixtyEightPublishers\User\Common\UserMapping; |
|
27 | +use SixtyEightPublishers\User\DI\AbstractCompilerExtensionPass; |
|
28 | 28 | |
29 | 29 | final class CommonExtension extends AbstractCompilerExtensionPass implements TargetEntityProviderInterface, DatabaseTypeProviderInterface |
30 | 30 | { |
@@ -5,19 +5,19 @@ |
||
5 | 5 | namespace SixtyEightPublishers\User\DI; |
6 | 6 | |
7 | 7 | use ArrayObject; |
8 | -use Nette\Schema\Expect; |
|
9 | -use Nette\Schema\Schema; |
|
10 | 8 | use Nette\DI\CompilerExtension; |
11 | 9 | use Nette\PhpGenerator\ClassType; |
12 | -use SixtyEightPublishers\User\Common\DI\CommonExtension; |
|
13 | -use SixtyEightPublishers\User\Authentication\DI\AuthenticationExtension; |
|
14 | -use SixtyEightPublishers\User\Common\Exception\StopPropagationException; |
|
15 | -use SixtyEightPublishers\User\ForgotPassword\DI\ForgotPasswordExtension; |
|
10 | +use Nette\Schema\Expect; |
|
11 | +use Nette\Schema\Schema; |
|
16 | 12 | use SixtyEightPublishers\DoctrineBridge\DI\DatabaseTypeProviderInterface; |
17 | -use SixtyEightPublishers\DoctrineBridge\DI\TargetEntityProviderInterface; |
|
18 | 13 | use SixtyEightPublishers\DoctrineBridge\DI\EntityMappingProviderInterface; |
14 | +use SixtyEightPublishers\DoctrineBridge\DI\TargetEntityProviderInterface; |
|
19 | 15 | use SixtyEightPublishers\TranslationBridge\DI\TranslationProviderInterface; |
16 | +use SixtyEightPublishers\User\Authentication\DI\AuthenticationExtension; |
|
17 | +use SixtyEightPublishers\User\Common\DI\CommonExtension; |
|
18 | +use SixtyEightPublishers\User\Common\Exception\StopPropagationException; |
|
20 | 19 | use SixtyEightPublishers\User\DoctrineIdentity\DI\DoctrineIdentityExtension; |
20 | +use SixtyEightPublishers\User\ForgotPassword\DI\ForgotPasswordExtension; |
|
21 | 21 | |
22 | 22 | final class UserBundleExtension extends CompilerExtension implements DatabaseTypeProviderInterface, EntityMappingProviderInterface, TargetEntityProviderInterface, TranslationProviderInterface |
23 | 23 | { |