monii/container-interop-laravel

此包已被弃用且不再维护。未建议替代包。

Laravel 容器互操作适配器

v1.0.1 2015-09-22 13:07 UTC

This package is not auto-updated.

Last update: 2016-12-03 15:05:25 UTC


README

一个为 Laravel 的 容器 提供适配的 容器互操作

Latest Stable Version Total Downloads Latest Unstable Version License
Build Status

要求

  • PHP 5.5+
  • illuminate/contracts ^5.0

安装

$> composer require monii/container-interop-laravel

使用

use Illuminate\Container\Container;
use Monii\Interop\Container\Laravel\LaravelContainer;

$actualLaravelContainer = new Container();
$container = new LaravelContainer($actualLaravelContainer);

// $container implements Interop\Container\ContainerInterface

服务提供者

在你的应用程序配置中,将 Monii\Interop\Container\Laravel\ServiceProvider 添加到 providers 数组。

$container = App::make('Interop\Container\ContainerInterface');

许可

MIT,见 LICENSE。

社区

想要参与进来?这里有几种方式

  • 在 irc.freenode.org 的 #monii IRC 频道中找到我们。
  • 在 Twitter 上提及 @moniidev