src/Container.php
protected function build(string $classname, string $entry) : Closure
    {
        if (isset($this->dependencies[$entry])) {
            return $this->dependencies[$entry];
        }

        return function () use ($classname) {
            return $this->make($classname);
        };
    }
protected function build(string $classname, string $entry) : Closure
    {
        if (isset($this->dependencies[$entry])) {
            return $this->dependencies[$entry];
        }

        return function () use ($classname) {
            return $this->make($classname);
        };
    }
protected function build ( string $ classname , string $ entry ) : Closure { if ( isset ( $ this -> dependencies [ $ entry ] ) ) { return $ this -> dependencies [ $ entry ] ; } return function ( ) use ( $ classname ) { return $ this -> make ( $ classname ) ; } ; }
Create a build closure for a given class

@param string $classname The class that need to be build
@param string $entry     Cache entry to search

@return Closure
Create a build closure for a given class