vendor/symfony/twig-bundle/Resources/views/Exception/traces.html.twig line 1

Open in your IDE?
  1. <div class="trace trace-as-html" id="trace-box-{{ index }}">
  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="icon icon-close">{{ include('@Twig/images/icon-minus-square-o.svg') }}</span>
  7.                     <span class="icon icon-open">{{ include('@Twig/images/icon-plus-square-o.svg') }}</span>
  8.                     <span class="trace-namespace">
  9.                         {{ exception.class|split('\\')|slice(0, -1)|join('\\') }}
  10.                         {{- exception.class|split('\\')|length > 1 ? '\\' }}
  11.                     </span>
  12.                     {{ exception.class|split('\\')|last }}
  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 _is_vendor_trace = trace.file is not empty and ('/vendor/' in trace.file or '/var/cache/' in trace.file) %}
  23.             {% set _display_code_snippet = _is_first_user_code and not _is_vendor_trace %}
  24.             {% if _display_code_snippet %}{% set _is_first_user_code = false %}{% endif %}
  25.             <div class="trace-line {{ _is_vendor_trace ? 'trace-from-vendor' }}">
  26.                 {{ include('@Twig/Exception/trace.html.twig', { prefix: index, i: i, trace: trace, style: _is_vendor_trace ? 'compact' : _display_code_snippet ? 'expanded' }, with_context = false) }}
  27.             </div>
  28.         {% endfor %}
  29.         </div>
  30.     </div>
  31. </div>