As the plugin allows to define custom checks in the config.php file, it would be a great addition to give plugins access to that functionality as well. A thumbnail generator could check is the driver works or necessary CLI tools are available, plugins accessing third-party APIs could check whether the API keys are valid etc.
Kirby’s plugin method can hold custom parameters, the implementation could be done as simple as follows:
As the plugin allows to define custom checks in the
config.php
file, it would be a great addition to give plugins access to that functionality as well. A thumbnail generator could check is the driver works or necessary CLI tools are available, plugins accessing third-party APIs could check whether the API keys are valid etc.Kirby’s plugin method can hold custom parameters, the implementation could be done as simple as follows:
The
Doctor
class could load the checks defined by plugins pretty easily: