Convert InstallConstants constants to enum cases
This commit is contained in:
parent
0d9f3d37a3
commit
9c06378258
2 changed files with 9 additions and 9 deletions
|
@ -150,10 +150,10 @@
|
||||||
|
|
||||||
return str_replace(
|
return str_replace(
|
||||||
[
|
[
|
||||||
InstallConstants::INSTALL_PATH,
|
InstallConstants::INSTALL_PATH->value,
|
||||||
InstallConstants::INSTALL_PATH_BIN,
|
InstallConstants::INSTALL_PATH_BIN->value,
|
||||||
InstallConstants::INSTALL_PATH_SRC,
|
InstallConstants::INSTALL_PATH_SRC->value,
|
||||||
InstallConstants::INSTALL_PATH_DATA
|
InstallConstants::INSTALL_PATH_DATA->value
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
$installation_paths->getInstallationpath(),
|
$installation_paths->getInstallationpath(),
|
||||||
|
|
|
@ -22,13 +22,13 @@
|
||||||
|
|
||||||
namespace ncc\Enums\SpecialConstants;
|
namespace ncc\Enums\SpecialConstants;
|
||||||
|
|
||||||
final class InstallConstants
|
enum InstallConstants : string
|
||||||
{
|
{
|
||||||
public const INSTALL_PATH = '%INSTALL_PATH%';
|
case INSTALL_PATH = '%INSTALL_PATH%';
|
||||||
|
|
||||||
public const INSTALL_PATH_BIN = '%INSTALL_PATH.BIN%';
|
case INSTALL_PATH_BIN = '%INSTALL_PATH.BIN%';
|
||||||
|
|
||||||
public const INSTALL_PATH_SRC = '%INSTALL_PATH.SRC%';
|
case INSTALL_PATH_SRC = '%INSTALL_PATH.SRC%';
|
||||||
|
|
||||||
public const INSTALL_PATH_DATA = '%INSTALL_PATH.DATA%';
|
case INSTALL_PATH_DATA = '%INSTALL_PATH.DATA%';
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue