Skip to content

Drop twig requirement #9

@tinpansoul

Description

@tinpansoul

Hi!

I'm using Symfony 3.x as json-api without need for twig at all.

After installing this bundle i see error Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "fos_rest.exception.twig_controller" has a dependency on a non-existent service "twig".

So, why? And how to disable this requirement? I don't need any rendering stuff from Pinba – only send "smart timers" to see queries, correct routes etc.


After some digging into, i just drop these lines and everything works good.

./vendor/intaro/pinba-bundle/Intaro/PinbaBundle/Resources/config/services.yml:

services:
    templating.engine.twig:
        class: "%intaro_pinba.templating.engine.twig.class%"
        public: false
        arguments:
            - "@twig"
            - "@templating.name_parser"
            - "@templating.locator"
            - "@intaro_pinba.stopwatch"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions