{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% macro operationLine(key, operation, actualOperationName) %} {{ key }} {{- profiler_dump(operation, 1) -}} {% endmacro %} {% macro operationTable(object, name, actualOperationName) %} {% import _self as apiPlatform %} {% for key, itemOperation in object %} {{ apiPlatform.operationLine(key, itemOperation, actualOperationName) }} {% else %} {% endfor %}
{% if name is defined %}{{ name|capitalize }}{% endif %}Operations Attributes
No available {{ name|lower }} operation for this resource.
{% endmacro %} {% macro providerTable(object, name) %} {% if object.responses is empty %}

No calls to {{ name }} have been recorded.

{% else %} {% for class, used in object.responses %} {% endfor %} {% if object.context is defined %} {% endif %}
# Used {{ name|capitalize }}
{{ loop.index }} {% if used is same as(true) %} TRUE {% elseif used is same as(false) %} FALSE {% else %} NOT USED {% endif %} {{ class }}
Context{{ profiler_dump(object.context, 2) }}
{% endif %} {% endmacro %} {% import _self as apiPlatform %} {% block toolbar %} {% set icon %} {% set status_color = collector.counters.ignored_filters|default(false) ? 'yellow' : 'default' %} {{ include('@ApiPlatform/DataCollector/api-platform-icon.svg') }} {% endset %} {% set text %} {% if collector.version %}
Version {{ collector.version }}
{% endif %} {% if collector.resources|length == 0 %}
Resource Class Not an API Platform resource
{% endif %} {% for resource in collector.resources %}
Resource Class {{ resource.resourceClass }}
{% if resource.counters.ignored_filters|default(false) %}
Ignored Filters {{ collector.counters.ignored_filters }}
{% endif %} {% endfor %} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': true, status: status_color }) }} {% endblock %} {% block menu %} {# This left-hand menu appears when using the full-screen profiler. #} {{ include('@ApiPlatform/DataCollector/api-platform.svg') }} API Platform {% endblock %} {% block panel %} {% if collector.resources|length == 0 %}
Not an API Platform resource Resource Class
{% endif %} {% for dataCollected in collector.resources %}
{{ dataCollected.resourceClass|default('Not an API Platform resource') }} Resource Class
{% if dataCollected.resourceMetadataCollection is not empty %}

Resources

{% for resourceMetadata in dataCollected.resourceMetadataCollection %}

{{ resourceMetadata.resource.uriTemplate ?: resourceMetadata.resource.shortName }}

Resource
{{- profiler_dump(resourceMetadata.resource, 1) -}}
{{ apiPlatform.operationTable(resourceMetadata.operations, '', dataCollected.requestAttributes.operation_name|default('')) }} {% if dataCollected.filters and loop.index0 in dataCollected.filters|keys %} {% for id, filter in dataCollected.filters[loop.index0] %} {% set ignored_filter = filter is same as(null) %} {% endfor %} {% else %} {% endif %}
Filters
{{ id }} {% if ignored_filter %} ignored filter {% else %} {{ dump(filter) }} {% endif %}
No available filter declared for this resource.
{% endfor %}
{% endif %} {% endfor %} {% endblock %}