Chapter 11

バックエンド - その他

ta.toshio
ta.toshio
2021.06.05に更新

エンドユーザー側テンプレートに共通でセットされている情報の処理場所

src/Eccube/EventListener/TwigInitializeListener.php

スタックトレース

2ケースあった。

1つめ

TwigInitializeListener.php:151, Eccube\EventListener\TwigInitializeListener->onKernelRequest()
WrappedListener.php:126, Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
EventDispatcher.php:264, Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
EventDispatcher.php:239, Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
EventDispatcher.php:73, Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
TraceableEventDispatcher.php:168, Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher->dispatch()
HttpKernel.php:134, Symfony\Component\HttpKernel\HttpKernel->handleRaw()
HttpKernel.php:80, Symfony\Component\HttpKernel\HttpKernel->handle()
Kernel.php:201, Eccube\Kernel->handle()
index.php:82, {main}()

2つめ

TwigInitializeListener.php:151, Eccube\EventListener\TwigInitializeListener->onKernelRequest()
WrappedListener.php:126, Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
EventDispatcher.php:264, Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
EventDispatcher.php:239, Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
EventDispatcher.php:73, Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
TraceableEventDispatcher.php:168, Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher->dispatch()
HttpKernel.php:134, Symfony\Component\HttpKernel\HttpKernel->handleRaw()
HttpKernel.php:80, Symfony\Component\HttpKernel\HttpKernel->handle()
SubRequestHandler.php:85, Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
InlineFragmentRenderer.php:81, Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer->render()
FragmentHandler.php:85, Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler->render()
LazyLoadingFragmentHandler.php:45, Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler->render()
HttpKernelRuntime.php:48, Symfony\Bridge\Twig\Extension\HttpKernelRuntime->renderFragment()
04e757119e543bbbc0aa16dac1f493e4914a3b16a93c2811199005b5d75489ed.php:48, __TwigTemplate_6a71e1badb8303a23e468e227dd064b8972b525928a60c602cb46b12bd229481->doDisplay()
Template.php:405, __TwigTemplate_6a71e1badb8303a23e468e227dd064b8972b525928a60c602cb46b12bd229481->displayWithErrorHandling()
Template.php:378, __TwigTemplate_6a71e1badb8303a23e468e227dd064b8972b525928a60c602cb46b12bd229481->display()
Template.php:40, __TwigTemplate_6a71e1badb8303a23e468e227dd064b8972b525928a60c602cb46b12bd229481->display()
Template.php:390, __TwigTemplate_6a71e1badb8303a23e468e227dd064b8972b525928a60c602cb46b12bd229481->render()
TemplateWrapper.php:45, Twig\TemplateWrapper->render()
Environment.php:318, Twig\Environment->render()
TwigIncludeExtension.php:41, Eccube\Twig\Extension\TwigIncludeExtension->include_dispatch()
d95167aab361ee2c70d3439ee9a48ff44d3571cc1ee1dd439f0beaa3df8055ad.php:61, __TwigTemplate_d6ae2446b8ba07dad223361d378e198f9e2c1fadfb919bd6df64925e3b400868->doDisplay()
Template.php:405, __TwigTemplate_d6ae2446b8ba07dad223361d378e198f9e2c1fadfb919bd6df64925e3b400868->displayWithErrorHandling()
Template.php:378, __TwigTemplate_d6ae2446b8ba07dad223361d378e198f9e2c1fadfb919bd6df64925e3b400868->display()
Template.php:40, __TwigTemplate_d6ae2446b8ba07dad223361d378e198f9e2c1fadfb919bd6df64925e3b400868->display()
Template.php:390, __TwigTemplate_d6ae2446b8ba07dad223361d378e198f9e2c1fadfb919bd6df64925e3b400868->render()
CoreExtension.php:1223, twig_include()
b00fabf1a5db7dd837dfe4a790eb12ceb34e7bf205cd645cc68f3e40e07d69df.php:214, __TwigTemplate_e3f19f979e4c4605b01a212a417de02c170e255659353993b9f06bf8b7919478->doDisplay()
Template.php:405, __TwigTemplate_e3f19f979e4c4605b01a212a417de02c170e255659353993b9f06bf8b7919478->displayWithErrorHandling()
Template.php:378, __TwigTemplate_e3f19f979e4c4605b01a212a417de02c170e255659353993b9f06bf8b7919478->display()
Template.php:40, __TwigTemplate_e3f19f979e4c4605b01a212a417de02c170e255659353993b9f06bf8b7919478->display()
04f071fd2a36e85a00028ae05abcb70941dae03b6469034a661b0be928060a2a.php:52, __TwigTemplate_c587342b2b95565380b02fe2dac318aec49357a3a012a44b7c047d41c8eb7494->doDisplay()
Template.php:405, __TwigTemplate_c587342b2b95565380b02fe2dac318aec49357a3a012a44b7c047d41c8eb7494->displayWithErrorHandling()
Template.php:378, __TwigTemplate_c587342b2b95565380b02fe2dac318aec49357a3a012a44b7c047d41c8eb7494->display()
Template.php:40, __TwigTemplate_c587342b2b95565380b02fe2dac318aec49357a3a012a44b7c047d41c8eb7494->display()
Template.php:390, __TwigTemplate_c587342b2b95565380b02fe2dac318aec49357a3a012a44b7c047d41c8eb7494->render()
TemplateWrapper.php:45, Twig\TemplateWrapper->render()
Environment.php:318, Twig\Environment->render()
TemplateListener.php:115, Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener->onKernelView()
WrappedListener.php:126, Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
EventDispatcher.php:264, Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
EventDispatcher.php:239, Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
EventDispatcher.php:73, Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
TraceableEventDispatcher.php:168, Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher->dispatch()
HttpKernel.php:163, Symfony\Component\HttpKernel\HttpKernel->handleRaw()
HttpKernel.php:80, Symfony\Component\HttpKernel\HttpKernel->handle()
Kernel.php:201, Eccube\Kernel->handle()
index.php:82, {main}()

任意のアクションが実行されるまでのスタックトレース

ここではエンドユーザー側のに商品一覧画面

ProductController.php:119, Eccube\Controller\ProductController->index()
HttpKernel.php:158, Symfony\Component\HttpKernel\HttpKernel->handleRaw()
HttpKernel.php:80, Symfony\Component\HttpKernel\HttpKernel->handle()
Kernel.php:201, Eccube\Kernel->handle()
index.php:82, {main}()