DX: Fix cs

This commit is contained in:
Julien Fastré 2022-11-25 17:02:57 +01:00
parent 9b32ce53c8
commit 8cbfe16c24
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -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());
}
}
}