@@ -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 | { |
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | use Nette\Schema\Expect; |
| 8 | 8 | use Nette\Schema\Schema; |
| 9 | 9 | use Nette\Security\IUserStorage; |
| 10 | -use SixtyEightPublishers\User\DI\AbstractCompilerExtensionPass; |
|
| 11 | 10 | use SixtyEightPublishers\User\Common\Exception\RuntimeException; |
| 11 | +use SixtyEightPublishers\User\DI\AbstractCompilerExtensionPass; |
|
| 12 | 12 | use SixtyEightPublishers\User\DoctrineIdentity\UserStorageProxy; |
| 13 | 13 | |
| 14 | 14 | final class DoctrineIdentityExtension extends AbstractCompilerExtensionPass |
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | use Nette\Application\UI\Form; |
| 8 | 8 | use SixtyEightPublishers\SmartNetteComponent\UI\Control; |
| 9 | -use SixtyEightPublishers\TranslationBridge\TranslatorAwareTrait; |
|
| 10 | 9 | use SixtyEightPublishers\TranslationBridge\TranslatorAwareInterface; |
| 10 | +use SixtyEightPublishers\TranslationBridge\TranslatorAwareTrait; |
|
| 11 | 11 | use SixtyEightPublishers\User\ForgotPassword\Entity\PasswordRequestInterface; |
| 12 | 12 | use SixtyEightPublishers\User\ForgotPassword\Exception\PasswordRequestCreationException; |
| 13 | 13 | use SixtyEightPublishers\User\ForgotPassword\PasswordRequest\PasswordRequestSenderInterface; |
@@ -4,16 +4,16 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace SixtyEightPublishers\User\ForgotPassword\Control\ResetPassword; |
| 6 | 6 | |
| 7 | -use Throwable; |
|
| 8 | 7 | use Nette\Application\UI\Form; |
| 9 | 8 | use SixtyEightPublishers\SmartNetteComponent\UI\Control; |
| 10 | -use SixtyEightPublishers\User\Common\Logger\LoggerInterface; |
|
| 11 | -use SixtyEightPublishers\TranslationBridge\TranslatorAwareTrait; |
|
| 12 | 9 | use SixtyEightPublishers\TranslationBridge\TranslatorAwareInterface; |
| 10 | +use SixtyEightPublishers\TranslationBridge\TranslatorAwareTrait; |
|
| 11 | +use SixtyEightPublishers\User\Common\Logger\LoggerInterface; |
|
| 13 | 12 | use SixtyEightPublishers\User\ForgotPassword\Entity\PasswordRequestInterface; |
| 14 | -use SixtyEightPublishers\User\ForgotPassword\Mail\PasswordHasBeenResetEmailInterface; |
|
| 15 | 13 | use SixtyEightPublishers\User\ForgotPassword\Exception\PasswordRequestProcessException; |
| 14 | +use SixtyEightPublishers\User\ForgotPassword\Mail\PasswordHasBeenResetEmailInterface; |
|
| 16 | 15 | use SixtyEightPublishers\User\ForgotPassword\PasswordRequest\PasswordRequestManagerInterface; |
| 16 | +use Throwable; |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * @method void onSuccess(PasswordRequestInterface $request, string $rawPassword) |
@@ -4,19 +4,19 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace SixtyEightPublishers\User\ForgotPassword\PasswordRequest; |
| 6 | 6 | |
| 7 | -use Nette\SmartObject; |
|
| 8 | 7 | use Doctrine\ORM\AbstractQuery; |
| 9 | 8 | use Doctrine\ORM\EntityManagerInterface; |
| 10 | -use SixtyEightPublishers\User\ForgotPassword\Entity\UserInterface; |
|
| 11 | -use SixtyEightPublishers\User\ForgotPassword\Entity\PasswordRequest; |
|
| 9 | +use Nette\SmartObject; |
|
| 10 | +use SixtyEightPublishers\DoctrinePersistence\Context\ErrorContextInterface; |
|
| 12 | 11 | use SixtyEightPublishers\DoctrinePersistence\TransactionFactoryInterface; |
| 12 | +use SixtyEightPublishers\DoctrineQueryObjects\ExecutableQueryObjectFactoryInterface; |
|
| 13 | 13 | use SixtyEightPublishers\DoctrineQueryObjects\ResultSet\ResultSetOptions; |
| 14 | -use SixtyEightPublishers\DoctrinePersistence\Context\ErrorContextInterface; |
|
| 14 | +use SixtyEightPublishers\User\ForgotPassword\Entity\PasswordRequest; |
|
| 15 | 15 | use SixtyEightPublishers\User\ForgotPassword\Entity\PasswordRequestInterface; |
| 16 | -use SixtyEightPublishers\DoctrineQueryObjects\ExecutableQueryObjectFactoryInterface; |
|
| 16 | +use SixtyEightPublishers\User\ForgotPassword\Entity\UserInterface; |
|
| 17 | 17 | use SixtyEightPublishers\User\ForgotPassword\Exception\PasswordRequestCreationException; |
| 18 | -use SixtyEightPublishers\User\ForgotPassword\Query\GetUserByEmailQueryObjectFactoryInterface; |
|
| 19 | 18 | use SixtyEightPublishers\User\ForgotPassword\Query\CancelPasswordRequestsByUserQueryObjectFactoryInterface; |
| 19 | +use SixtyEightPublishers\User\ForgotPassword\Query\GetUserByEmailQueryObjectFactoryInterface; |
|
| 20 | 20 | |
| 21 | 21 | class PasswordRequestFactory implements PasswordRequestFactoryInterface |
| 22 | 22 | { |