Пример #1
0
 /**
  * @param     $file
  * @param     $content
  * @param int $options
  *
  * @return int
  * @throws \sJo\Exception\Exception
  */
 public static function write($file, $content, $options = LOCK_EX)
 {
     if (!is_writable(Path::parent($file))) {
         throw new Exception(I18n::__('Unable to write to file %s', $file));
     }
     return file_put_contents($file, $content, $options);
 }