composer require weew/console-container-aware
This package integrates weew/console with weew/container and allows invocation of commands trough the container.
Simply create a container aware instance of Console
and pass in an instance of IContainer
.
$console = new Weew\Console\ContainerAware\Console(new Container());