diff --git a/sources/lib/Resources/config/routing.yml b/sources/lib/Resources/config/routing.yml index 72ae859..1353d7b 100644 --- a/sources/lib/Resources/config/routing.yml +++ b/sources/lib/Resources/config/routing.yml @@ -2,3 +2,7 @@ _pomm_profiler_explain: path: '/explain/{token}/{index_query}' defaults: { _controller: 'pomm.controller.profiler:explainAction' } methods: [GET] +_pomm_profiler_graph: + path: '/graph/{token}/{index_query}' + defaults: { _controller: 'pomm.controller.profiler:graphAction' } + methods: [GET] diff --git a/sources/lib/Resources/config/services/profiler.yml b/sources/lib/Resources/config/services/profiler.yml index 5e68e74..bf253b6 100644 --- a/sources/lib/Resources/config/services/profiler.yml +++ b/sources/lib/Resources/config/services/profiler.yml @@ -15,3 +15,7 @@ services: class: 'PommProject\SymfonyBridge\Configurator\DatabaseCollectorConfigurator' arguments: ['@?pomm.data_collector'] public: true + pomm.twig.extension: + class: 'PommProject\SymfonyBridge\Twig\Extension' + tags: + - { name: 'twig.extension' }