每天laravel-20160809| Container -12
2016-05-18 09:47
483 查看
/** * Get the rebound callbacks for a given type. * * @param string $abstract * @return array */ protected function getReboundCallbacks($abstract) { if (isset($this->reboundCallbacks[$abstract])) {// if has the value in the reboundcallbacks array return $this->reboundCallbacks[$abstract];// return it } return [];// return a null array }// Get the rebound callbacks for a given type. /** * Wrap the given closure such that its dependencies will be injected when executed. * * @param \Closure $callback * @param array $parameters * @return \Closure */ public function wrap(Closure $callback, array $parameters = []) { return function () use ($callback, $parameters) { return $this->call($callback, $parameters);// a waste }; }// Wrap the given closure such that its // set the given closure into the dependencies will be injected // when it is executed we will fire the given closure
本文出自 “专注php” 博客,请务必保留此出处http://jingshanls.blog.51cto.com/3357095/1774600
相关文章推荐
- 每天laravel-20160809| Container -12
- PHP正则表达式入门教程(推荐)
- laravel 学习笔记 —— 神奇的服务容器
- laravel 学习笔记——视图
- laravel 学习笔记——请求与响应
- laravel 学习笔记——路由(路由与控制器)
- laravel 学习笔记——路由(中间件与路由组)
- 系统吞吐量、TPS(QPS)、用户并发量、性能测试概念和公式
- laravel 学习笔记——路由(基础)
- [转]系统吞吐量(TPS)、用户并发量、性能测试概念和公式---学习
- php常用函数集
- PHP 单链表
- PHP 堆栈和队列
- laravel 学习笔记——起点
- mysql的常用语句,php使用
- ThinkPHP关联模型操作
- yii2批量添加的问题
- 实现FTP的文件上传与下载
- phpStorm中文编码及字体配置
- Laravel 5 性能优化技巧