Typo3JustMakeItWorkHandler.php 621 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Message\Handler\Typo3;
  4. use App\Message\Message\Typo3\Typo3Update;
  5. use App\Service\Typo3\Typo3Service;
  6. use Symfony\Component\Messenger\Attribute\AsMessageHandler;
  7. #[AsMessageHandler(priority: 1)]
  8. class Typo3JustMakeItWorkHandler
  9. {
  10. public function __construct(
  11. private Typo3Service $typo3Service,
  12. ) {
  13. }
  14. /**
  15. * @throws \Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface
  16. */
  17. public function __invoke(Typo3Update $command): void
  18. {
  19. $this->typo3Service->justMakeItWorkSite($command->getOrganizationId());
  20. }
  21. }