/** * 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
每天laravel-20160809| Container -12
原创
©著作权归作者所有:来自51CTO博客作者lijingsan1的原创作品,请联系作者获取转载授权,否则将追究法律责任
![](https://ucenter.51cto.com/images/noavatar_middle.gif)
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
每天laravel-20160813| Container -16
/** * Get the contextual concrete binding for the given abstract. * &nb
abstract function concrete -
每天laravel-20160815| Container -18
/** *
sed scala -
每天laravel-20160819| Container -22
/** * Get the alias for an abstract if available. * * @param 
abstract function available