public function createChild($name = null)
    {
        $name = $name ?: md5(uniqid('windwalker-di', true));

        $this->children[$name] = new static($this);

        return $this->children[$name];
    }
public function createChild($name = null)
    {
        $name = $name ?: md5(uniqid('windwalker-di', true));

        $this->children[$name] = new static($this);

        return $this->children[$name];
    }
public function createChild ( $ name = null ) { $ name = $ name ? : md5 ( uniqid ( 'windwalker-di' , true ) ) ; $ this -> children [ $ name ] = new static ( $ this ) ; return $ this -> children [ $ name ] ; }
Create a child Container with a new property scope that
that has the ability to access the parent scope when resolving.

@param   string $name The child name.

@return  static  The new container object.

@since   2.0
Create a child Container with a new property scope that that has the ability to access the parent scope when resolving .