public static function write($filename, $buffer)
  {
    $fs = new Filesystem();
    
    try {
      $fs->dumpFile($filename, $buffer);
    }
    catch(IOExceptionInterface $e){
      throw new Exception($e->getMessage());
    }
    
    return true;
  }