This commit is contained in:
Adrian Hopek
2022-01-26 10:56:25 +01:00
parent 026bfe485f
commit 01de63e9f4
71 changed files with 5631 additions and 3587 deletions

View File

@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace Toby\Listeners;
use Toby\Events\VacationRequestAcceptedByAdministrative;
use Toby\Helpers\VacationRequestStateManager;
class HandleAcceptedByAdministrativeVacationRequest
{
public function __construct(
protected VacationRequestStateManager $stateManager,
) {
}
public function handle(VacationRequestAcceptedByAdministrative $event): void
{
$this->stateManager->approve($event->vacationRequest);
}
}