Skip to content

Rework twig extension to use twig.runtime #21

@Sieg

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' ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions