mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
Replace FileHandler calls and other paths in Rhymix Framework
This commit is contained in:
parent
89bd526a13
commit
740de5caf3
9 changed files with 39 additions and 37 deletions
|
|
@ -199,7 +199,7 @@ class Formatter
|
|||
}
|
||||
|
||||
// Save the result to the target file.
|
||||
\FileHandler::writeFile($target_filename, $content);
|
||||
Storage::write($target_filename, $content);
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
@ -238,7 +238,7 @@ class Formatter
|
|||
}
|
||||
|
||||
// Save the result to the target file.
|
||||
\FileHandler::writeFile($target_filename, $content);
|
||||
Storage::write($target_filename, $content);
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
@ -253,7 +253,7 @@ class Formatter
|
|||
{
|
||||
$minifier = new \MatthiasMullie\Minify\CSS($source_filename);
|
||||
$content = $minifier->execute($target_filename);
|
||||
\FileHandler::writeFile($target_filename, $content);
|
||||
Storage::write($target_filename, $content);
|
||||
return strlen($content) ? true : false;
|
||||
}
|
||||
|
||||
|
|
@ -268,7 +268,7 @@ class Formatter
|
|||
{
|
||||
$minifier = new \MatthiasMullie\Minify\JS($source_filename);
|
||||
$content = $minifier->execute($target_filename);
|
||||
\FileHandler::writeFile($target_filename, $content);
|
||||
Storage::write($target_filename, $content);
|
||||
return strlen($content) ? true : false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue