Skip to content

Commit

Permalink
changes twig template addressing to make it work with Sf 4
Browse files Browse the repository at this point in the history
  • Loading branch information
nixilla committed Apr 3, 2019
1 parent a6889bf commit 5a0b41d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Resources/config/services.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
parameters:
nixilla.api.data_collector.class: Nixilla\Api\LoggerBundle\DataCollector\ApiDataCollector
nixilla.api.logger.class: Nixilla\Api\LoggerBundle\Logger\ApiLogger
nixilla.buzz.logger.class: Nixilla\Api\LoggerBundle\Logger\BuzzLogger


services:
Expand All @@ -10,7 +9,7 @@ services:
class: "%nixilla.api.data_collector.class%"
arguments: [ "@nixilla.api.logger" ]
tags:
- { name: "data_collector", template: "NixillaApiLoggerBundle:DataCollector:api", id: "api" }
- { name: "data_collector", template: "@NixillaApiLogger/DataCollector/api", id: "api" }

nixilla.api.logger:
class: "%nixilla.api.logger.class%"
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/views/DataCollector/api.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 @@ -15,7 +15,7 @@
<span>{{ '%0.2f'|format(collector.time * 1000) }} ms</span>
</div>
{% endset %}
{% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %}
{% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url } %}
{% endblock %}

{% block menu %}
Expand Down

0 comments on commit 5a0b41d

Please sign in to comment.