Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MalteWunsch opened this issue Jul 24, 2024 · 0 comments
Open

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

MalteWunsch opened this issue Jul 24, 2024 · 0 comments

Comments

@MalteWunsch
Copy link
Member

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
@MalteWunsch MalteWunsch changed the title #[AsShortcode] arttibute? #[AsShortcode] attribute? Jul 24, 2024
@MalteWunsch MalteWunsch changed the title #[AsShortcode] attribute? #[AsShortcode] attribute? (Case 173659) Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant