jeremyworboys/containeraware

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

Adds ContainerAware and method injection functionality to Laravel 4

0.2.0 2015-01-28 23:59 UTC

This package is auto-updated.

Last update: 2022-02-01 12:43:48 UTC


README

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Introduction

ContainerAware adds a container aware interface, trait and base controller. The service provider will automatically inject an Illuminate\Container\Container instance to anything with JeremyWorboys\ContainerAware\ContainerAware interface.

The JeremyWorboys\ContainerAware\ContainerAwareController also comes with some helper methods for retrieving services from the container and adds method injection into your Laravel 4 controller actions (exactly the same as Laravel 5).

Installation

Require this package with composer using the following command:

composer require jeremyworboys/containeraware

After updating composer, add the ServiceProvider to the providers array in app/config/app.php

'JeremyWorboys\ContainerAware\ContainerAwareServiceProvider',

License

ContainerAware is open-sourced software licensed under the MIT license