weew / router-container-aware
Container integration for the weew/router package.
v1.3.2
2016-07-21 11:18 UTC
Requires
- weew/container: ^1.0
- weew/router: ^2.0
Requires (Dev)
- phpunit/phpunit: ^4.7
- satooshi/php-coveralls: ^0.6.1
This package is not auto-updated.
Last update: 2024-11-19 22:19:34 UTC
README
Table of contents
Installation
composer require weew/router-container-aware
Introduction
This package integrates weew/router with weew/container and allows filters, parameter resolvers, etc. to rely on dependency injection and sharing of data trough the container.
Usage
Simply create a container aware instance of Router
and pass in an instance of IContainer
.
$commander = new Weew\Router\ContainerAware\Router(new Container());