private function prepareBindingClosure($id, $blueprint, $dependencies = null): Closure
    {
        if ($this->bindings[$id]['singleton']) {
            return $this->prepareSingletonBindingClosure($id, $blueprint, $dependencies);
        }

        return $this->preparePrototypeBindingClosure($id, $blueprint, $dependencies);
    }
private function prepareBindingClosure($id, $blueprint, $dependencies = null): Closure
    {
        if ($this->bindings[$id]['singleton']) {
            return $this->prepareSingletonBindingClosure($id, $blueprint, $dependencies);
        }

        return $this->preparePrototypeBindingClosure($id, $blueprint, $dependencies);
    }
private function prepareBindingClosure ( $ id , $ blueprint , $ dependencies = null ) : Closure { if ( $ this -> bindings [ $ id ] [ 'singleton' ] ) { return $ this -> prepareSingletonBindingClosure ( $ id , $ blueprint , $ dependencies ) ; } return $ this -> preparePrototypeBindingClosure ( $ id , $ blueprint , $ dependencies ) ; }
Make a binding closure method to store in the cache.

@param  string $id
@param  mixed $blueprint
@param  array $dependencies
@return Closure
Make a binding closure method to store in the cache .