mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
DX: Fix cs
This commit is contained in:
parent
9b32ce53c8
commit
8cbfe16c24
@ -24,6 +24,7 @@ use Symfony\Component\Security\Core\Exception\AccessDeniedException;
|
||||
use Symfony\Component\Security\Core\Security;
|
||||
use Symfony\Component\Serializer\SerializerInterface;
|
||||
use Symfony\Component\Templating\EngineInterface;
|
||||
use UnexpectedValueException;
|
||||
|
||||
class CalendarDocController
|
||||
{
|
||||
@ -87,14 +88,16 @@ class CalendarDocController
|
||||
'calendar' => $calendar,
|
||||
])
|
||||
);
|
||||
|
||||
case 'accompanying_period':
|
||||
return new Response(
|
||||
$this->engine->render('@ChillCalendar/CalendarDoc/pick_template_accompanying_period.html.twig', [
|
||||
'calendar' => $calendar,
|
||||
])
|
||||
);
|
||||
|
||||
default:
|
||||
throw new \UnexpectedValueException("calendar context not expected : " . $calendar->getContext());
|
||||
throw new UnexpectedValueException('calendar context not expected : ' . $calendar->getContext());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user