DS
Size: a a a
DS
СП
СП
'viewRenderer' => [
'viewBasePath' => '@views',
'layout' => '@views/layout/main',
'injections' => [
// Use for add Csrf parameter to all views
// Reference::to(CsrfViewInjection::class),
// or
// DynamicReference::to(function (ContainerInterface $container) {
// return $container->get(CsrfViewInjection::class)->withParameter('mycsrf');
// }),
Reference::to(ApplicationViewInjection::class),
],
],
DS
Reference::to()
. Я об этом. Но не факт что надо, просто нужно придти к соглашению, можем ли мы использовать зависимости в параметрахСП
Reference::to()
. Я об этом. Но не факт что надо, просто нужно придти к соглашению, можем ли мы использовать зависимости в параметрахDS
СП
DS
'viewRenderer' => [
'viewBasePath' => '@views',
'layout' => '@views/layout/main',
'injections' => [
// Use for add Csrf parameter to all views
// Reference::to(CsrfViewInjection::class),
// or
// DynamicReference::to(function (ContainerInterface $container) {
// return $container->get(CsrfViewInjection::class)->withParameter('mycsrf');
// }),
Reference::to(ApplicationViewInjection::class),
],
],
СП
СП
RM
DS
Reference::to
СП
Reference::to
DS
DS
СП
СП
RM
DS
DS