OSDN Git Service

Separate responsabilities of Classes
authorJefersson Nathan <admin@phpse.net>
Wed, 12 Feb 2014 18:11:19 +0000 (16:11 -0200)
committerJefersson Nathan <admin@phpse.net>
Wed, 12 Feb 2014 18:11:19 +0000 (16:11 -0200)
commitcdd47e478c287d338e3dafcbd4418addc09a0288
treedebd16cb5f2fd7f5acf2154fb77e4f5aa57fdcad
parentab305bbf8a72f673f0332714f56160c4ce718bcf
Separate responsabilities of Classes

- Refactor on PHPRouter\Route and PHPRouter\Router to accept a collection of routers. That is now more flexible and simple to manager yours routers.
- Update README.md with new form to create Routers
- Add "type" and PHPUnit like "require-dev" on composer.json file
- Update example.php file with new syntax
README.md
composer.json
example.php [changed mode: 0644->0755]
src/PHPRouter/Route.php
src/PHPRouter/RouteCollection.php [new file with mode: 0755]
src/PHPRouter/Router.php