@@ -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,16 +4,16 @@ |
||
| 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; |
| 15 | -use SixtyEightPublishers\User\Common\PasswordHashStrategy\PasswordHashStrategyInterface; |
|
| 14 | +use SixtyEightPublishers\User\Authentication\Entity\UserInterface; |
|
| 16 | 15 | use SixtyEightPublishers\User\Authentication\Query\AuthenticatorQueryObjectFactoryInterface; |
| 16 | +use SixtyEightPublishers\User\Common\PasswordHashStrategy\PasswordHashStrategyInterface; |
|
| 17 | 17 | |
| 18 | 18 | final class Authenticator implements IAuthenticator |
| 19 | 19 | { |
@@ -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() |
@@ -5,18 +5,18 @@ |
||
| 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; |
|
| 16 | -use SixtyEightPublishers\DoctrineBridge\DI\TargetEntityProviderInterface; |
|
| 10 | +use Nette\Schema\Expect; |
|
| 11 | +use Nette\Schema\Schema; |
|
| 17 | 12 | use SixtyEightPublishers\DoctrineBridge\DI\EntityMappingProviderInterface; |
| 13 | +use SixtyEightPublishers\DoctrineBridge\DI\TargetEntityProviderInterface; |
|
| 18 | 14 | use SixtyEightPublishers\TranslationBridge\DI\TranslationProviderInterface; |
| 15 | +use SixtyEightPublishers\User\Authentication\DI\AuthenticationExtension; |
|
| 16 | +use SixtyEightPublishers\User\Common\DI\CommonExtension; |
|
| 17 | +use SixtyEightPublishers\User\Common\Exception\StopPropagationException; |
|
| 19 | 18 | use SixtyEightPublishers\User\DoctrineIdentity\DI\DoctrineIdentityExtension; |
| 19 | +use SixtyEightPublishers\User\ForgotPassword\DI\ForgotPasswordExtension; |
|
| 20 | 20 | |
| 21 | 21 | final class UserBundleExtension extends CompilerExtension implements EntityMappingProviderInterface, TargetEntityProviderInterface, TranslationProviderInterface |
| 22 | 22 | { |
@@ -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 | { |
@@ -5,22 +5,22 @@ |
||
| 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\TargetEntity; |
| 14 | -use SixtyEightPublishers\User\Common\Logger\TracyLogger; |
|
| 15 | -use SixtyEightPublishers\User\Common\Mail\NullMailSender; |
|
| 13 | +use SixtyEightPublishers\DoctrineBridge\DI\TargetEntityProviderInterface; |
|
| 16 | 14 | use SixtyEightPublishers\User\Common\Entity\UserInterface; |
| 15 | +use SixtyEightPublishers\User\Common\Exception\ConfigurationException; |
|
| 17 | 16 | use SixtyEightPublishers\User\Common\Logger\LoggerInterface; |
| 17 | +use SixtyEightPublishers\User\Common\Logger\TracyLogger; |
|
| 18 | 18 | use SixtyEightPublishers\User\Common\Mail\MailSenderInterface; |
| 19 | -use SixtyEightPublishers\User\DI\AbstractCompilerExtensionPass; |
|
| 20 | -use SixtyEightPublishers\User\Common\Exception\ConfigurationException; |
|
| 21 | -use SixtyEightPublishers\DoctrineBridge\DI\TargetEntityProviderInterface; |
|
| 19 | +use SixtyEightPublishers\User\Common\Mail\NullMailSender; |
|
| 22 | 20 | use SixtyEightPublishers\User\Common\PasswordHashStrategy\DefaultPasswordHashStrategy; |
| 23 | 21 | use SixtyEightPublishers\User\Common\PasswordHashStrategy\PasswordHashStrategyInterface; |
| 22 | +use SixtyEightPublishers\User\Common\UserMapping; |
|
| 23 | +use SixtyEightPublishers\User\DI\AbstractCompilerExtensionPass; |
|
| 24 | 24 | |
| 25 | 25 | final class CommonExtension extends AbstractCompilerExtensionPass implements TargetEntityProviderInterface |
| 26 | 26 | { |