vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Resources/views/Exception/traces.html.twig line 1

Open in your IDE?
  1. <div class="trace trace-as-html">
  2.     <div class="trace-details">
  3.         <div class="trace-head">
  4.             <span class="sf-toggle" data-toggle-selector="#trace-html-{{ index }}" data-toggle-initial="{{ expand ? 'display' }}">
  5.                 <h3 class="trace-class">
  6.                     <span class="trace-namespace">
  7.                         {{ exception.class|split('\\')|slice(0, -1)|join('\\') }}
  8.                         {{- exception.class|split('\\')|length > 1 ? '\\' }}
  9.                     </span>
  10.                     {{ exception.class|split('\\')|last }}
  11.                     <span class="icon icon-close">{{ include('@Twig/images/icon-minus-square-o.svg') }}</span>
  12.                     <span class="icon icon-open">{{ include('@Twig/images/icon-plus-square-o.svg') }}</span>
  13.                 </h3>
  14.                 {% if exception.message is not empty and index > 1 %}
  15.                     <p class="break-long-words trace-message">{{ exception.message }}</p>
  16.                 {% endif %}
  17.             </span>
  18.         </div>
  19.         <div id="trace-html-{{ index }}" class="sf-toggle-content">
  20.         {% set _is_first_user_code = true %}
  21.         {% for i, trace in exception.trace %}
  22.             {% set _display_code_snippet = _is_first_user_code and ('/vendor/' not in trace.file) and ('/var/cache/' not in trace.file) and (trace.file is not empty) %}
  23.             {% if _display_code_snippet %}{% set _is_first_user_code = false %}{% endif %}
  24.             <div class="trace-line">
  25.                 {{ include('@Twig/Exception/trace.html.twig', { prefix: index, i: i, trace: trace, _display_code_snippet: _display_code_snippet }, with_context = false) }}
  26.             </div>
  27.         {% endfor %}
  28.         </div>
  29.     </div>
  30. </div>