jeremyworboys/containeraware
最新稳定版本:0.2.0
Composer 安装命令:
composer require jeremyworboys/containeraware
包简介
Adds ContainerAware and method injection functionality to Laravel 4
README 文档
README
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
统计信息
- 总下载量: 5.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-21