mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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\Security\Core\Security;
|
||||||
use Symfony\Component\Serializer\SerializerInterface;
|
use Symfony\Component\Serializer\SerializerInterface;
|
||||||
use Symfony\Component\Templating\EngineInterface;
|
use Symfony\Component\Templating\EngineInterface;
|
||||||
|
use UnexpectedValueException;
|
||||||
|
|
||||||
class CalendarDocController
|
class CalendarDocController
|
||||||
{
|
{
|
||||||
@ -87,14 +88,16 @@ class CalendarDocController
|
|||||||
'calendar' => $calendar,
|
'calendar' => $calendar,
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
|
|
||||||
case 'accompanying_period':
|
case 'accompanying_period':
|
||||||
return new Response(
|
return new Response(
|
||||||
$this->engine->render('@ChillCalendar/CalendarDoc/pick_template_accompanying_period.html.twig', [
|
$this->engine->render('@ChillCalendar/CalendarDoc/pick_template_accompanying_period.html.twig', [
|
||||||
'calendar' => $calendar,
|
'calendar' => $calendar,
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
|
|
||||||
default:
|
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