I would like for the console to be easily extensible by the end user. How would we go about this?
I was thinking that we could establish a project base level directory that would give a plugin interface to the user to add commands to the existing console.
Should we make a folder where we loop through files and add the commands in those files? Or could we have the CLI look for ../../commands/external.php which would return an array of user defined commands so we can then call $this->addCommands($external) within the Application class
I would like for the console to be easily extensible by the end user. How would we go about this?
I was thinking that we could establish a project base level directory that would give a plugin interface to the user to add commands to the existing console.
Should we make a folder where we loop through files and add the commands in those files? Or could we have the CLI look for
../../commands/external.phpwhich would return an array of user defined commands so we can then call$this->addCommands($external)within theApplicationclass