Skip to content

Rework twig extension to use twig.runtime #21

Description

@Sieg

The DI is used in the example currently, where the container is required to be injected for the Extension class. This can be improved to the version where the Twig will take care about it itself, by registering the Logic class as a runtime.

  OxidEsales\...LogicInterface:
    class: OxidEsales\...Logic
    tags: [ 'twig.runtime' ]

  OxidEsales\...Extension:
    tags: [ 'twig.extension' ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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