Skip to content

Validate shortcode service configurations (Case 173693) #35

@MalteWunsch

Description

@MalteWunsch

I've screwed up a shortcode configuration by passing a positional parameter to the EmbeddedShortcodeHandler like this:

    webfactory.shortcode.x:
        parent: 'webfactory.shortcode.embed_inline_for_shortcode_handler'
        class: 'Webfactory\ShortcodeBundle\Handler\EmbeddedShortcodeHandler'
        arguments:
            - 'My\ShortcodeController::myAction'
        tags: [...]

which should have been a named parameter:

        arguments:
            $controllerName: 'My\ShortcodeController::myAction'

I wish we would throw an exception in this case (and similar cases).

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