OK … I made some progress.
As you can see in the current version of my skeleton-plugin, I instantiated a new (empty ?) pimple-container and passed that as an argument to the cli-add-method.
Although it (partly) works now, I am still unaware, whether this is the way it’s meant to be done.
The other problem is, that I cannot use Kanboard’s core classes and methods, in my new “CLI-classes” because they are apparently a pimple-container that doesn’t seem to “know” anything about Kanboard’s classes and related methods.
Cann anyone shed some light on how I need to setup that pimple-container (or whatever else I need to do) in order to have access to Kanboard’s classes inside my custom “CLI-classes”
Please forgive me, if my terminology is completely wrong, but the level of abstraction that seems to be involved here, is still way ahead of my current understandings in OOP-programming.
Any help is much appreciated … thank in advance,
Here’s the initialize-function of my Plugin.php:
public function initialize()
// create a new instance of pimple-container
$container = new Container();
// create new CLI-commands