weew / commander-container-aware
Container integration for the weew/commander package.
Installs: 340
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/weew/commander-container-aware
Requires
- weew/commander: ^2.1
- weew/container: ^1.1
Requires (Dev)
- phpunit/phpunit: ^4.7
- satooshi/php-coveralls: ^0.6.1
This package is not auto-updated.
Last update: 2025-10-08 02:18:15 UTC
README
Table of contents
Installation
composer require weew/commander-container-aware
Introduction
This package integrates weew/commander with weew/container and allows command handlers to rely on dependency injection and sharing of data trough the container.
Usage
Simply create a container aware instance of ICommander
and pass in an instance of IContainer
.
$commander = new Weew\Commander\ContainerAware\Commander(new Container());