diff --git a/src/ncc/Classes/NccExtension/ConstantCompiler.php b/src/ncc/Classes/NccExtension/ConstantCompiler.php index 14cfdcd..62594b8 100644 --- a/src/ncc/Classes/NccExtension/ConstantCompiler.php +++ b/src/ncc/Classes/NccExtension/ConstantCompiler.php @@ -150,10 +150,10 @@ return str_replace( [ - InstallConstants::INSTALL_PATH, - InstallConstants::INSTALL_PATH_BIN, - InstallConstants::INSTALL_PATH_SRC, - InstallConstants::INSTALL_PATH_DATA + InstallConstants::INSTALL_PATH->value, + InstallConstants::INSTALL_PATH_BIN->value, + InstallConstants::INSTALL_PATH_SRC->value, + InstallConstants::INSTALL_PATH_DATA->value ], [ $installation_paths->getInstallationpath(), diff --git a/src/ncc/Enums/SpecialConstants/InstallConstants.php b/src/ncc/Enums/SpecialConstants/InstallConstants.php index 34c587e..5e160b5 100644 --- a/src/ncc/Enums/SpecialConstants/InstallConstants.php +++ b/src/ncc/Enums/SpecialConstants/InstallConstants.php @@ -22,13 +22,13 @@ 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%'; } \ No newline at end of file