Skip to content

[2.7][Asset] BC break due to change of AssetHelper #14898

@peterrehm

Description

@peterrehm

The following service fails after the 2.7 upgrade

    my_service:
        class:     AppBundle\Service\MyService
        scope:     prototype
        arguments:
            - @templating.helper.assets

wit the following error message:

Catchable Fatal Error: Argument 1 passed to AppBundle\Service\MyService::__construct() must be an instance of Symfony\Component\Templating\Helper\CoreAssetsHelper, instance of Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper given

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions