mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 04:44:19 +01:00
22 lines
483 B
PHP
22 lines
483 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Controller;
|
|
|
|
use App\Enum\FlashType;
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController as AbstractBaseController;
|
|
|
|
abstract class AbstractController extends AbstractBaseController
|
|
{
|
|
#[\Override]
|
|
protected function addFlash(FlashType|string $type, mixed $message): void
|
|
{
|
|
if ($type instanceof FlashType) {
|
|
$type = $type->value;
|
|
}
|
|
|
|
parent::addFlash($type, $message);
|
|
}
|
|
}
|