Dancer2 icon indicating copy to clipboard operation
Dancer2 copied to clipboard

Deprecated keyword in plugins: plugin_setting

Open xsawyerx opened this issue 2 years ago • 0 comments

Why?

plugin_setting is a keyword from the older implementation of plugins. Making it works required jumping through hoops we still cannot decipher even though we wrote them. There is no added value to having this keyword still supported.

Benefits to Dancer2 codebase

Cleaning up massive chunks of code that exist only to support this keyword.

Benefit to Dancer2 Community

A consistent way to retrieve the plugin settings without using both the old and new interface.

Alternatives

When writing a plugin, use the $self->config() method instead.

xsawyerx avatar Mar 12 '22 10:03 xsawyerx