每天laravel-20160731| Container -3

    /** * 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

你可能感兴趣的:(每天laravel-20160731| Container -3)