每天laravel-20160814| Container -17
来源:互联网 发布:软件项目案例 编辑:程序博客网 时间:2024/06/05 14:41
/** * Resolve all of the dependencies from the ReflectionParameters. * * @param array $parameters * @param array $primitives * @return array */ // Resolve all of the dependencies from the ReflectionParameters. protected function getDependencies(array $parameters, array $primitives = []) {// if you want resolve the Dependencies ,first you need get it $dependencies = [];// set a array dependencies foreach ($parameters as $parameter) {// loop the parameters as parameter $dependency = $parameter->getClass();// what ever get the Class name // may set the name about the parameter // If the class is null, it means the dependency is a string or some other // primitive type which we can not resolve since it is not a class and // we will just bomb out with an error since we have no-where to go. if (array_key_exists($parameter->name, $primitives)) {// if the name in the primitives $dependencies[] = $primitives[$parameter->name];// has the dependencies array } elseif (is_null($dependency)) {// if is null $dependencies[] = $this->resolveNonClass($parameter);// change the Non Class } else { $dependencies[] = $this->resolveClass($parameter);// resolveClass } } return $dependencies;// ever thing done ,return the result }
0 0
- 每天laravel-20160814| Container -17
- 每天laravel-20160730| Container -2
- 每天laravel-20160731| Container -3
- 每天laravel-20160801| Container -4
- 每天laravel-20160802| Container -5
- 每天laravel-20160803| Container -6
- 每天laravel-20160804| Container -7
- 每天laravel-20160805| Container -8
- 每天laravel-20160805| Container -8
- 每天laravel-20160807| Container -10
- 每天laravel-20160808| Container -11
- 每天laravel-20160809| Container -12
- 每天laravel-20160810| Container -13
- 每天laravel-20160811| Container -14
- 每天laravel-20160812| Container -15
- 每天laravel-20160813| Container -16
- 每天laravel-20160815| Container -18
- 每天laravel-20160816| Container -19
- ubuntu下安装AndroidStudio
- iOS钥匙串KeyChain相关参数的说明
- 释放Xcode占用磁盘空间
- LeetCode 210. Course Schedule II
- 一个简单的servlet程序
- 每天laravel-20160814| Container -17
- storm实时计算
- node.js——http源码解读
- System.arraycopy的一些使用。数组的拼接。
- ANR基础
- ROC曲线的绘制
- Dubbo入门
- oracle查看当前用户权限
- Firebug学习笔记