1 | <?php |
||
25 | class EnableUserHandler |
||
26 | { |
||
27 | /** |
||
28 | * The user repository. |
||
29 | * |
||
30 | * @var UserRepository |
||
31 | */ |
||
32 | private $repository; |
||
33 | |||
34 | /** |
||
35 | * Constructor. |
||
36 | * |
||
37 | * @param UserRepository $aRepository The user repository |
||
38 | */ |
||
39 | public function __construct(UserRepository $aRepository) |
||
43 | |||
44 | /** |
||
45 | * Handles the given command. |
||
46 | * |
||
47 | * @param EnableUserCommand $aCommand The command |
||
48 | * |
||
49 | * @throws UserTokenNotFoundException when the user token does not exist |
||
50 | */ |
||
51 | public function __invoke(EnableUserCommand $aCommand) |
||
63 | } |
||
64 |