rename
laravel/octane
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Renames a file or directory
rename
(
string $from
,
string $to
, ?
resource $context
=
null
):
bool
function
move_uploaded_file
(
$from
,
$to
)
{
return
\is_file
(
$from
) &&
\rename
(
$from
,
$to
);
}
fixes/fix-symfony-file-moving.php
$this
->
warn
(
"Your RoadRunner binary version (<fg=red>
$version
</>) may be incompatible with Octane."
);
if (
$this
->
confirm
(
'Should Octane download the latest RoadRunner binary version for your operating system?'
,
true
)) {
rename
(
$roadRunnerBinary
,
"
$roadRunnerBinary
.backup"
);
try {
$this
->
downloadRoadRunnerBinary
();
src/Commands/Concerns/InstallsRoadRunnerDependencies.php
} catch (
Throwable $e
) {
report
(
$e
);
rename
(
"
$roadRunnerBinary
.backup"
,
$roadRunnerBinary
);
return
$this
->
warn
(
'Unable to download RoadRunner binary. The HTTP request exception has been logged.'
);
}
src/Commands/Concerns/InstallsRoadRunnerDependencies.php