public function put($file, $content, $flag = null, $recursive = false)
    {
        if ($recursive) {
            $this->createParentFolder($file);
        }
        return file_put_contents($this->getPath($file), $content, $flag);
    }
public function put($file, $content, $flag = null, $recursive = false)
    {
        if ($recursive) {
            $this->createParentFolder($file);
        }
        return file_put_contents($this->getPath($file), $content, $flag);
    }
public function put ( $ file , $ content , $ flag = null , $ recursive = false ) { if ( $ recursive ) { $ this -> createParentFolder ( $ file ) ; } return file_put_contents ( $ this -> getPath ( $ file ) , $ content , $ flag ) ; }
Put content in file.

@param $file
@param $content
@param $flag
@param bool $recursive
@return int
Put content in file .