mirror of
https://github.com/eznix86/how-to-add-dependency-injection-in-old-php-code.git
synced 2026-07-25 20:59:01 +00:00
Demo of dependency injection into old code having bad practices.
- PHP 100%
|
|
||
|---|---|---|
| config | ||
| src | ||
| .gitignore | ||
| composer.json | ||
| composer.lock | ||
| index.php | ||
| README.md | ||
how-to-add-dependency-injection-in-old-php-code
How to run
composer installcomposer dump-autoloadphp index.php
This project is a demo of how to add dependency injection into old code having bad practices.
The index.php can be executed via requests for example.