Commit 44560f22 authored by Jordan Breton's avatar Jordan Breton

Fixed : bad reference replacement + query result introduction

parent 6e6026d5
......@@ -12,7 +12,7 @@ use wfw\engine\core\app\factory\IGenericAppFactory;
use wfw\engine\core\cache\ICacheSystem;
use wfw\engine\core\cache\systems\APCUBasedCache;
use wfw\engine\core\command\CommandHandlerFactory;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\command\ICommandHandlerFactory;
use wfw\engine\core\command\ICommandInflector;
use wfw\engine\core\command\inflectors\NamespaceBasedInflector;
......@@ -173,7 +173,7 @@ class BaseAppContext implements IAppContext {
'instanceOf' => MailFactory::class,
'shared' => true
],
IQueryProcessor::class => [ 'instanceOf' => SynchroneCommandBus::class, 'shared' => true ],
ICommandBus::class => [ 'instanceOf' => SynchroneCommandBus::class, 'shared' => true ],
ICommandInflector::class => [
'instanceOf' => NamespaceBasedInflector::class, 'shared' => true,
'constructParams' => [ $this->getCommandHandlers() ]
......
......@@ -7,7 +7,7 @@ use wfw\engine\core\command\security\ICommandSecurityCenter;
/**
* Traite les commandes de manières synchrone
*/
final class SynchroneCommandBus implements IQueryProcessor {
final class SynchroneCommandBus implements ICommandBus {
/** @var ICommandInflector $_inflector */
private $_inflector;
/** @var ICommandSecurityCenter $_security */
......
......@@ -263,7 +263,6 @@ final class DBBasedEventStore implements IEventStore {
/**
* Enregistre les séquences d'événements de tous les AggregateRoot
* TODO : OPTIMISATION : une seule requete pour toutes les sauvegardes
* @param null|ICommand $command Commande à l'origine de la mise à jour des aggrégats
* @param IAggregateRoot ...$aggregates Liste des aggrégats
*/
......
<?php
namespace wfw\engine\core\query\result;
use wfw\engine\lib\PHP\types\UUID;
/**
* Result to a query, generated by a QueryHandler.
*/
interface IQueryResult {
/**
* QueryResult ID
* @return UUID
*/
public function getUUID():UUID;
/**
* Query id that ask for a result
* @return UUID
*/
public function getQueryId():UUID;
/**
* Result creation date
* @return float
*/
public function getGenerationDate():float;
}
\ No newline at end of file
<?php
namespace wfw\engine\core\query\result;
use wfw\engine\lib\PHP\types\UUID;
/**
* Base query result
*/
abstract class QueryResult implements IQueryResult {
/** @var UUID $_id */
private $_id;
/** @var UUID $_queryId */
private $_queryId;
/** @var float $_creationDate */
private $_creationDate;
/**
* QueryResult constructor.
*
* @param UUID $queryId Query that ask for the result.
*/
public function __construct(UUID $queryId) {
$this->_id = new UUID(UUID::V4);
$this->_creationDate = microtime(true);
$this->_queryId = $queryId;
}
/**
* QueryResult ID
*
* @return UUID
*/
public function getUUID(): UUID {
return $this->_id;
}
/**
* Query id that ask for a result
*
* @return UUID
*/
public function getQueryId(): UUID {
return $this->_queryId;
}
/**
* Result creation date
*
* @return float
*/
public function getGenerationDate(): float {
return $this->_creationDate;
}
}
\ No newline at end of file
......@@ -4,7 +4,7 @@ namespace wfw\engine\package\general\handlers\action;
use wfw\engine\core\action\IAction;
use wfw\engine\core\action\IActionHandler;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\lang\ITranslator;
use wfw\engine\core\request\IRequest;
use wfw\engine\core\request\IRequestData;
......@@ -23,7 +23,7 @@ use wfw\engine\package\general\handlers\action\errors\NotFound;
* POST. Execute la commande retournée par createCommand()
*/
abstract class PostDataDefaultActionHandler implements IActionHandler {
/** @var IQueryProcessor $_bus */
/** @var ICommandBus $_bus */
private $_bus;
/** @var IRule $_rule */
private $_rule;
......@@ -36,16 +36,16 @@ abstract class PostDataDefaultActionHandler implements IActionHandler {
/**
* PutArticleOnlineHandler constructor.
*
* @param IQueryProcessor $bus Bus de commande.
* @param ITranslator $translator
* @param IRule $rule Regle de valdiation
* @param bool $withFiles Si true, inclue le tableau _FILES dans la liste des résultats
* @param ICommandBus $bus Bus de commande.
* @param ITranslator $translator
* @param IRule $rule Regle de valdiation
* @param bool $withFiles Si true, inclue le tableau _FILES dans la liste des résultats
* passé à createCommand
* @param bool $requireAjax Rejette la requête si elle n'est pas ajax
* @param bool $withGet
* @param bool $requireAjax Rejette la requête si elle n'est pas ajax
* @param bool $withGet
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
ITranslator $translator,
IRule $rule,
bool $withFiles=false,
......
......@@ -3,7 +3,7 @@ namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\action\IAction;
use wfw\engine\core\action\IActionHandler;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -22,7 +22,7 @@ use wfw\engine\package\users\domain\events\CanceledUserMailChangeEvent;
* Requiert une authentification.
*/
final class CancelChangeMailHandler implements IActionHandler, IDomainEventListener{
/** @var IQueryProcessor $_bus */
/** @var ICommandBus $_bus */
private $_bus;
/** @var ISession $_session */
private $_session;
......@@ -34,13 +34,13 @@ final class CancelChangeMailHandler implements IActionHandler, IDomainEventListe
/**
* CancelChangeMailHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param ISession $session
* @param IDomainEventObserver $observer
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
ISession $session,
IDomainEventObserver $observer,
ITranslator $translator
......
......@@ -3,7 +3,7 @@ namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\action\IAction;
use wfw\engine\core\action\IActionHandler;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -30,7 +30,7 @@ use wfw\engine\package\users\security\data\ConfirmRule;
final class ChangeMailConfirmationHandler implements IActionHandler,IDomainEventListener{
/** @var null|UserMailConfirmedEvent $_event */
private $_event;
/** @var IQueryProcessor $_bus */
/** @var ICommandBus $_bus */
private $_bus;
/** @var ConfirmRule $_rule */
private $_rule;
......@@ -44,7 +44,7 @@ final class ChangeMailConfirmationHandler implements IActionHandler,IDomainEvent
/**
* ChangeMailConfirmationHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param IDomainEventObserver $observer
* @param INotifier $notifier
* @param IUserModelAccess $access
......@@ -52,7 +52,7 @@ final class ChangeMailConfirmationHandler implements IActionHandler,IDomainEvent
* @param ConfirmRule $rule
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
IDomainEventObserver $observer,
INotifier $notifier,
IUserModelAccess $access,
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -26,14 +26,14 @@ final class ChangeMailHandler extends DefaultUserActionHandler implements IDomai
/**
* ChangeMailHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param ChangeMailRule $rule
* @param ISession $session
* @param IDomainEventObserver $observer
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
ChangeMailRule $rule,
ISession $session,
IDomainEventObserver $observer,
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -24,14 +24,14 @@ final class ChangePasswordHandler extends DefaultUserActionHandler implements ID
/**
* ChangePasswordHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param ChangePasswordRule $rule
* @param ISession $session
* @param IDomainEventObserver $observer
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
ChangePasswordRule $rule,
ISession $session,
IDomainEventObserver $observer,
......
......@@ -3,7 +3,7 @@ namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\action\IAction;
use wfw\engine\core\action\IActionHandler;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -29,7 +29,7 @@ use wfw\engine\package\users\security\data\ConfirmRule;
final class ConfirmUserRegistrationHandler implements IActionHandler,IDomainEventListener{
/** @var null|UserConfirmedEvent $_event */
private $_event;
/** @var IQueryProcessor $_bus */
/** @var ICommandBus $_bus */
private $_bus;
/** @var INotifier $_notifier */
private $_notifier;
......@@ -45,7 +45,7 @@ final class ConfirmUserRegistrationHandler implements IActionHandler,IDomainEven
/**
* ConfirmUserRegistrationHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param INotifier $notifier
* @param IUserModelAccess $access
* @param IDomainEventObserver $observer
......@@ -54,7 +54,7 @@ final class ConfirmUserRegistrationHandler implements IActionHandler,IDomainEven
* @param ConfirmRule $rule
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
INotifier $notifier,
IUserModelAccess $access,
IDomainEventObserver $observer,
......
<?php
namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\lang\ITranslator;
use wfw\engine\core\security\data\IRule;
use wfw\engine\core\session\ISession;
......@@ -19,14 +19,14 @@ abstract class DefaultUserActionHandler extends PostDataDefaultActionHandler{
/**
* DefaultUserActionHandler constructor.
*
* @param IQueryProcessor $bus Bus de commande
* @param IRule $rule Régle de validation des données
* @param ISession $session Session
* @param ITranslator $translator
* @param bool $withGet
* @param ICommandBus $bus Bus de commande
* @param IRule $rule Régle de validation des données
* @param ISession $session Session
* @param ITranslator $translator
* @param bool $withGet
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
IRule $rule,
ISession $session,
ITranslator $translator,
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -27,7 +27,7 @@ final class ForgottenPasswordHandler extends DefaultUserActionHandler implements
/**
* ForgottenPasswordHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param RetrievePasswordRule $rule
* @param ISession $session
* @param IDomainEventObserver $observer
......@@ -35,7 +35,7 @@ final class ForgottenPasswordHandler extends DefaultUserActionHandler implements
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
RetrievePasswordRule $rule,
ISession $session,
IDomainEventObserver $observer,
......
......@@ -3,7 +3,7 @@ namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\action\IAction;
use wfw\engine\core\action\IActionHandler;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\lang\ITranslator;
use wfw\engine\core\notifier\INotifier;
use wfw\engine\core\notifier\Message;
......@@ -39,7 +39,7 @@ final class LoginHandler implements IActionHandler {
private $_session;
/** @var LoginForm $_form */
private $_form;
/** @var IQueryProcessor $_bus */
/** @var ICommandBus $_bus */
private $_bus;
/** @var ITranslator $_translator */
private $_translator;
......@@ -51,7 +51,7 @@ final class LoginHandler implements IActionHandler {
* @param ISession $session
* @param IRouter $router
* @param IUserModelAccess $userModel
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param ITranslator $translator
*/
public function __construct(
......@@ -59,7 +59,7 @@ final class LoginHandler implements IActionHandler {
ISession $session,
IRouter $router,
IUserModelAccess $userModel,
IQueryProcessor $bus,
ICommandBus $bus,
ITranslator $translator
){
$this->_translator = $translator;
......
......@@ -3,7 +3,7 @@ namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\action\IAction;
use wfw\engine\core\action\IActionHandler;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\conf\IConf;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
......@@ -36,7 +36,7 @@ use wfw\engine\package\users\security\data\SelfRegisterRule;
* Permet à un utilisateur de créer un compte
*/
final class RegisterHandler implements IActionHandler, IDomainEventListener{
/** @var IQueryProcessor $_bus */
/** @var ICommandBus $_bus */
private $_bus;
/** @var IConf $_conf */
private $_conf;
......@@ -61,7 +61,7 @@ final class RegisterHandler implements IActionHandler, IDomainEventListener{
* RegisterHandler constructor.
*
* @param IConf $conf
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param ISession $session
* @param IRouter $router
* @param INotifier $notifier
......@@ -72,7 +72,7 @@ final class RegisterHandler implements IActionHandler, IDomainEventListener{
*/
public function __construct(
IConf $conf,
IQueryProcessor $bus,
ICommandBus $bus,
ISession $session,
IRouter $router,
INotifier $notifier,
......
......@@ -3,7 +3,7 @@ namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -28,14 +28,14 @@ final class ResendChangeMailHandler extends DefaultUserActionHandler implements
/**
* ResendChangeMailMailHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param ChangeMailRule $rule
* @param ISession $session
* @param IDomainEventObserver $observer
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
ChangeMailRule $rule,
ISession $session,
IDomainEventObserver $observer,
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -29,7 +29,7 @@ final class ResendForgottenPasswordMailHandler extends DefaultUserActionHandler
/**
* ResendForgottenPasswordMailHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param RetrievePasswordRule $rule
* @param ISession $session
* @param IUserModelAccess $access
......@@ -37,7 +37,7 @@ final class ResendForgottenPasswordMailHandler extends DefaultUserActionHandler
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
RetrievePasswordRule $rule,
ISession $session,
IUserModelAccess $access,
......
......@@ -3,7 +3,7 @@ namespace wfw\engine\package\users\handlers\action;
use wfw\engine\core\action\IAction;
use wfw\engine\core\action\IActionHandler;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -47,7 +47,7 @@ final class ResetPasswordHandler implements IActionHandler,IDomainEventListener{
private $_resetPasswordRule;
/** @var IRouter $_router */
private $_router;
/** @var IQueryProcessor $_bus */
/** @var ICommandBus $_bus */
private $_bus;
/** @var ITranslator $_translator */
private $_translator;
......@@ -60,7 +60,7 @@ final class ResetPasswordHandler implements IActionHandler,IDomainEventListener{
* @param IDomainEventObserver $observer
* @param IUserModelAccess $access
* @param INotifier $notifier
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param ITranslator $translator
* @param ResetPasswordRule $rule
*/
......@@ -70,7 +70,7 @@ final class ResetPasswordHandler implements IActionHandler,IDomainEventListener{
IDomainEventObserver $observer,
IUserModelAccess $access,
INotifier $notifier,
IQueryProcessor $bus,
ICommandBus $bus,
ITranslator $translator,
ResetPasswordRule $rule
){
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action\admin;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -24,14 +24,14 @@ final class CancelChangeMailHandler extends DefaultUserActionHandler implements
/**
* CancelChangeMailHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param UserIdRule $rule
* @param ISession $session
* @param IDomainEventObserver $observer
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
UserIdRule $rule,
ISession $session,
IDomainEventObserver $observer,
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action\admin;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -24,14 +24,14 @@ final class CancelResetPasswordHandler extends DefaultUserActionHandler implemen
/**
* CancelResetPasswordHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param UserIdRule $rule
* @param ISession $session
* @param IDomainEventObserver $observer
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
UserIdRule $rule,
ISession $session,
IDomainEventObserver $observer,
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action\admin;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -24,14 +24,14 @@ final class CancelUserRegistrationHandler extends DefaultUserActionHandler imple
/**
* CancelUserRegistrationHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param UserIdRule $rule
* @param ISession $session
* @param ITranslator $translator
* @param IDomainEventObserver $observer
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
UserIdRule $rule,
ISession $session,
ITranslator $translator,
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action\admin;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -32,7 +32,7 @@ final class ChangeMailHandler extends DefaultUserActionHandler implements IDomai
/**
* ChangeMailHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param UserMailRule $rule
* @param ISession $session
* @param IDomainEventObserver $observer
......@@ -40,7 +40,7 @@ final class ChangeMailHandler extends DefaultUserActionHandler implements IDomai
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
UserMailRule $rule,
ISession $session,
IDomainEventObserver $observer,
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action\admin;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -27,14 +27,14 @@ final class ChangeTypeHandler extends DefaultUserActionHandler implements IDomai
/**
* ChangeTypeHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param ChangeUserTypeRule $rule
* @param ISession $session
* @param IDomainEventObserver $observer
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
ChangeUserTypeRule $rule,
ISession $session,
IDomainEventObserver $observer,
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action\admin;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -29,7 +29,7 @@ final class DisableHandler extends DefaultUserActionHandler implements IDomainEv
/**
* DisableUsers constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param UserIdList $rule
* @param ISession $session
* @param IJSONEncoder $encoder
......@@ -37,7 +37,7 @@ final class DisableHandler extends DefaultUserActionHandler implements IDomainEv
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
UserIdList $rule,
ISession $session,
IJSONEncoder $encoder,
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action\admin;
use wfw\engine\core\command\ICommand;
use wfw\engine\core\command\IQueryProcessor;
use wfw\engine\core\command\ICommandBus;
use wfw\engine\core\domain\events\IDomainEvent;
use wfw\engine\core\domain\events\IDomainEventListener;
use wfw\engine\core\domain\events\IDomainEventObserver;
......@@ -28,7 +28,7 @@ final class EnableHandler extends DefaultUserActionHandler implements IDomainEve
/**
* EnableHandler constructor.
*
* @param IQueryProcessor $bus
* @param ICommandBus $bus
* @param UserIdList $rule
* @param ISession $session
* @param IJSONEncoder $encoder
......@@ -36,7 +36,7 @@ final class EnableHandler extends DefaultUserActionHandler implements IDomainEve
* @param ITranslator $translator
*/
public function __construct(
IQueryProcessor $bus,
ICommandBus $bus,
UserIdList $rule,
ISession $session,
IJSONEncoder $encoder,
......
......@@ -2,7 +2,7 @@
namespace wfw\engine\package\users\handlers\action\admin;