Skip to content

#[AsShortcode] attribute? (Case 173659) #34

@MalteWunsch

Description

@MalteWunsch

Like with e.g. Symfony\Component\Console\Attribute\AsCommand for commands, I want to be able to use an attribute like AsShortcode for the service configuration of my shortcodes.

I haven't thought this through, yet, but I hope that this:

  • would allow us to having the complete configuration for a shortcode at the shortcode class/method
  • would remove boilerplate config
  • would be less error prone / allow us to provide better error messages if the configuration is wrong

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