public function getContext()
    {
        $directory = \sys_get_temp_dir().'/ctb-'.\microtime();
        $this->fs->mkdir($directory);
        $this->write($directory);

        $result = new Context($directory, $this->format, $this->fs);
        $result->setCleanup(true);

        return $result;
    }
public function getContext()
    {
        $directory = \sys_get_temp_dir().'/ctb-'.\microtime();
        $this->fs->mkdir($directory);
        $this->write($directory);

        $result = new Context($directory, $this->format, $this->fs);
        $result->setCleanup(true);

        return $result;
    }
public function getContext ( ) { $ directory = \ sys_get_temp_dir ( ) . '/ctb-' . \ microtime ( ) ; $ this -> fs -> mkdir ( $ directory ) ; $ this -> write ( $ directory ) ; $ result = new Context ( $ directory , $ this -> format , $ this -> fs ) ; $ result -> setCleanup ( true ) ; return $ result ; }
Create context given the state of builder.

@return \Docker\Context\Context
Create context given the state of builder .