标签:laravel
/** * Determine if the given abstract type has been resolved. * * @param string $abstract * @return bool */ public function resolved($abstract) {// a resolved person $abstract = $this->normalize($abstract);// get a normal namespace if ($this->isAlias($abstract)) {// check it is a alias $abstract = $this->getAlias($abstract);// get the alias function name } return isset($this->resolved[$abstract]) || isset($this->instances[$abstract]); }//Determine if the given abstract type has been resolved. /** * Determine if a given string is an alias. * * @param string $name * @return bool */ public function isAlias($name) { return isset($this->aliases[$this->normalize($name)]);// return true or false ,determine the aliases array for the }// check like determine , so wo need get a string that is function should be see as a alias
本文出自 “专注php” 博客,请务必保留此出处http://jingshanls.blog.51cto.com/3357095/1770258
每天laravel-20160731| Container -3
标签:laravel
原文地址:http://jingshanls.blog.51cto.com/3357095/1770258