indigophp/fuel-dependency

This package is abandoned and no longer maintained. No replacement package was suggested.

Provides a backport of v2 dependency library

dev-develop 2014-10-09 10:39 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:39:41 UTC


README

Packagist Version Total Downloads Software License

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.