这个可以有
2016-05-03 10:31
281 查看
namespace Illuminate\Container; use Closure; use ArrayAccess; use ReflectionClass; use ReflectionMethod; use ReflectionFunction; use ReflectionParameter; use InvalidArgumentException; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Contracts\Container\Container as ContainerContract; // namespace class Container implements ArrayAccess, ContainerContract {// Container implements ArrayAccess, ContainerContract /** * The current globally available container (if any). * * @var static */ protected static $instance; // The current globally available container (if any); /** * An array of the types that have been resolved. * * @var array */ protected $resolved = [];// a resolved a array types // An array of the types that have been resolved. /** * The container's bindings. * * @var array */ protected $bindings = [];// The container's bindings. // a array use by bindings types /** * The container's shared instances. * * @var array */ protected $instances = []; // The container's shared instances. /** * The registered type aliases. * * @var array */ protected $aliases = [];// The registered type aliases. /** * The extension closures for services. * * @var array */ protected $extenders = [];// The extension closures for services. /** * All of the registered tags. * * @var array */ protected $tags = [];// All of the registered tags. /** * The stack of concretions currently being built. * * @var array */ protected $buildStack = [];// The stack of concretions currently being built. /** * The contextual binding map. * * @var array */ public $contextual = [];//The contextual binding map. /** * All of the registered rebound callbacks. * * @var array */ protected $reboundCallbacks = [];// All of the registered rebound callbacks. /** * All of the global resolving callbacks. * * @var array */ protected $globalResolvingCallbacks = [];// All of the global callbacks. /** * All of the global after resolving callbacks. * * @var array */ protected $globalAfterResolvingCallbacks = []; // All of the global after resolving callbacks. /** * All of the after resolving callbacks by class type. * * @var array */ protected $resolvingCallbacks = []; // All of the after resolving callbacks by class type. /** * All of the after resolving callbacks by class type. * * @var array */ protected $afterResolvingCallbacks = []; //All of the after resolving callbacks by class type. /** * Define a contextual binding. * * @param string $concrete * @return \Illuminate\Contracts\Container\ContextualBindingBuilder */ public function when($concrete) { $concrete = $this->normalize($concrete);// get a normal ize() return new ContextualBindingBuilder($this, $concrete);// return a function }// Define a contextual binding
相关文章推荐
- NET在SQL Server中的图片存取技术
- 【Linux笔记】Linux目录结构
- Exchange(2007/2010/2013)共存环境中IMAP和POP的工作方式
- Android WebView顶部进度条
- PAT1009 说反话 (20)
- Android webView 支持缩放及自适应屏幕
- HDU 5667 Sequence【矩阵快速幂+费马小定理】
- App Xutil框架
- Activity的几种状态
- HDU 5667 Sequence【矩阵快速幂+费马小定理】
- HDU 5667 Sequence【矩阵快速幂+费马小定理】
- JavaScript 开发进阶:理解 JavaScript 作用域和作用域链
- Android HashMap增强版SoftMap,使用软引用
- HDU 5667 Sequence(数论+矩阵快速幂)
- synthesize
- Ctrl-A全选
- linux查看常用操作
- 定位
- 深入理解Class对象和new关键字
- 关于cmake