jeremyworboys / containeraware

Adds ContainerAware functionality to Laravel 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Container Aware

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

About

Adds ContainerAware functionality to Laravel 4

License:MIT License


Languages

Language:PHP 100.0%