Skip to content

Commit

Permalink
Merge pull request #51 from macintoshplus/sf4
Browse files Browse the repository at this point in the history
Fix Twig template location for Symfony 4
  • Loading branch information
gbouyge authored May 31, 2018
2 parents 4aef8c2 + 48290e1 commit 4d3f54e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AmqpBundle/Resources/config/data_collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
class: M6Web\Bundle\AmqpBundle\Amqp\DataCollector
arguments: ['amqp']
tags:
- { name: data_collector, template: 'M6WebAmqpBundle:Collector:amqp', id: 'amqp' }
- { name: data_collector, template: '@M6WebAmqp/Collector/amqp.html.twig', id: 'amqp' }
- { name: kernel.event_listener, event: amqp.command, method: onCommand }


4 changes: 2 additions & 2 deletions src/AmqpBundle/Resources/views/Collector/amqp.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'WebProfilerBundle:Profiler:layout.html.twig' %}
{% extends '@WebProfiler/Profiler/layout.html.twig' %}

{% block toolbar %}
{% set icon %}
Expand All @@ -7,7 +7,7 @@
{% set text %}
{{ collector.commands | length }} commands (avg : {{ collector.avgexecutiontime|number_format(4) }} - total : {{ collector.totalexecutiontime|number_format(4) }})
{% endset %}
{% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': true } %}
{% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': true } %}
{% endblock %}

{% block head %}
Expand Down

0 comments on commit 4d3f54e

Please sign in to comment.