indigophp / fuel-dependency
Provides a backport of v2 dependency library
Installs: 82
Dependents: 6
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:fuel-package
Requires
- composer/installers: ~1.0
- fuelphp/dependency: dev-master
This package is not auto-updated.
Last update: 2022-02-01 12:39:41 UTC
README
This package is a wrapper around fuelphp/dependency package.
Install
Via Composer
{ "require": { "indigophp/fuel-dependency": "@stable" } }
Usage
Let's make this clear: this is pretty much an anti-pattern.
This package backports the v2 Dependency Container and makes it usable the old way. The main purpose of this project is to help developers moving their applications from v1 to v2 by preparing them with service providers, etc. However the static, but not fully stateless logic that is used in v1 (and used by this library) is not real Dependency Injection.
IMPORTANT: DC lives inside fuel scope. This means you should not mix it with PSR autoloading. Always use it inside fuel.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.