File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5+ require_once 'vendor/autoload.php ' ;
6+
57const ENVIRONMENT_DEVELOPMENT = 'development ' ;
68const ENVIRONMENT_PRODUCTION = 'production ' ;
79
@@ -26,7 +28,7 @@ function copyFile(array $file): void
2628
2729function getEnvironment (): string
2830{
29- return file_exists (realpath ( __DIR__ . ' /../config/development.config.php ' ) ) ? ENVIRONMENT_DEVELOPMENT : ENVIRONMENT_PRODUCTION ;
31+ return file_exists (\ Laminas \ DevelopmentMode \Status:: DEVEL_CONFIG ) ? ENVIRONMENT_DEVELOPMENT : ENVIRONMENT_PRODUCTION ;
3032}
3133
3234// when adding files to the below array the `source` and `destination` paths must be relative to the project root folder
@@ -51,6 +53,6 @@ function getEnvironment(): string
5153
5254echo "Using environment setting: " . getEnvironment () . PHP_EOL ;
5355
54- var_dump (" File exists " , file_exists (realpath ( __DIR__ . ' /../config/development.config.php ' ) ));
56+ var_dump (file_exists (\ Laminas \ DevelopmentMode \Status:: DEVEL_CONFIG ));
5557
5658array_walk ($ files , 'copyFile ' );
You can’t perform that action at this time.
0 commit comments