Skip to content

jeremyworboys/containeraware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages