Commit ee18d1dd authored by Tobias Munk's avatar Tobias Munk

Merge branch 'feature/php-8.1'

parents 910faec1 e5654c63
FROM yiisoftware/yii2-php:8.0-fpm-nginx FROM yiisoftware/yii2-php:8.1-fpm-nginx
ARG BUILD_NO_INSTALL ARG BUILD_NO_INSTALL
RUN apt-get update \ RUN apt-get update \
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* file that was distributed with this source code * file that was distributed with this source code
*/ */
use Dotenv\Dotenv;
use yii\helpers\FileHelper; use yii\helpers\FileHelper;
$configPath = __DIR__; $configPath = __DIR__;
...@@ -17,7 +18,7 @@ $configPath = __DIR__; ...@@ -17,7 +18,7 @@ $configPath = __DIR__;
if (getenv('ENV_LOCAL_FILE')) { if (getenv('ENV_LOCAL_FILE')) {
$localEnv = FileHelper::normalizePath($configPath . '/' . getenv('ENV_LOCAL_FILE')); $localEnv = FileHelper::normalizePath($configPath . '/' . getenv('ENV_LOCAL_FILE'));
if (is_file($localEnv)) { if (is_file($localEnv)) {
$dotenvLocal = new Dotenv\Dotenv($configPath, getenv('ENV_LOCAL_FILE')); $dotenvLocal = Dotenv::createUnsafeImmutable($configPath, getenv('ENV_LOCAL_FILE'));
$dotenvLocal->load(); $dotenvLocal->load();
} else { } else {
exit("Error: ENV_LOCAL_FILE '{$localEnv}' not found" . PHP_EOL); exit("Error: ENV_LOCAL_FILE '{$localEnv}' not found" . PHP_EOL);
...@@ -25,7 +26,7 @@ if (getenv('ENV_LOCAL_FILE')) { ...@@ -25,7 +26,7 @@ if (getenv('ENV_LOCAL_FILE')) {
} }
// Load application environment configuration // Load application environment configuration
$dotenv = new Dotenv\Dotenv($configPath, '/env-defaults'); $dotenv = Dotenv::createUnsafeImmutable($configPath, '/env-defaults');
$dotenv->load(); $dotenv->load();
// Basic checks & validation // Basic checks & validation
......
This diff is collapsed.
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
"dmstr/yii2-redirect-module": "^0.3.1", "dmstr/yii2-redirect-module": "^0.3.1",
"dmstr/yii2-filefly-module": "^1.6.0", "dmstr/yii2-filefly-module": "^1.6.0",
"dmstr/yii2-filemanager-widgets": "^1.2.0", "dmstr/yii2-filemanager-widgets": "^1.2.0",
"dmstr/yii2-pages-module": "^2.2.0", "dmstr/yii2-pages-module": "^2.5.5",
"dmstr/yii2-prototype-module": "^2.0.0", "dmstr/yii2-prototype-module": "^2.2.5",
"dmstr/yii2-publication-module": "^1.2.3", "dmstr/yii2-publication-module": "^1.2.3",
"dmstr/yii2-resque-module": "^2.0.0-alpha2", "dmstr/yii2-resque-module": "^2.0.0-alpha2",
"dmstr/yii2-widgets2-module": "^2.7.0-beta1", "dmstr/yii2-widgets2-module": "^2.7.0-beta1",
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
"pheme/yii2-settings": "^0.7.0", "pheme/yii2-settings": "^0.7.0",
"roave/security-advisories": "dev-master", "roave/security-advisories": "dev-master",
"schmunk42/yii2-markdocs-module": "^1.0.0", "schmunk42/yii2-markdocs-module": "^1.0.0",
"vlucas/phpdotenv": "2.*", "vlucas/phpdotenv": "^5.5",
"yiisoft/yii2-dev": "~2.0.11", "yiisoft/yii2-dev": "~2.0.11",
"yiisoft/yii2-bootstrap": "2.*", "yiisoft/yii2-bootstrap": "2.*",
"yiisoft/yii2-redis": "^2.0.5", "yiisoft/yii2-redis": "^2.0.5",
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
"yiisoft/yii2-symfonymailer": "^3.0" "yiisoft/yii2-symfonymailer": "^3.0"
}, },
"require-dev": { "require-dev": {
"friendsofphp/php-cs-fixer": "2.*", "friendsofphp/php-cs-fixer": "3.*",
"schmunk42/yii2-giiant": "^0.13.0", "schmunk42/yii2-giiant": "^0.14.0-beta1",
"yiisoft/yii2-coding-standards": "2.*", "yiisoft/yii2-coding-standards": "2.*",
"yiisoft/yii2-debug": "2.*", "yiisoft/yii2-debug": "2.*",
"yiisoft/yii2-faker": "2.*", "yiisoft/yii2-faker": "2.*",
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
"bower-asset/jquery-growl": ">=1.3.3,<=1.3.4", "bower-asset/jquery-growl": ">=1.3.3,<=1.3.4",
"bower-asset/json-editor": "*", "bower-asset/json-editor": "*",
"bedezign/yii2-audit": "~1.0.12 || >=1.1.2", "bedezign/yii2-audit": "~1.0.12 || >=1.1.2",
"dmstr/yii2-active-record-permissions": "<1.2.2",
"fxp/composer-asset-plugin": "*", "fxp/composer-asset-plugin": "*",
"dmstr/yii2-web": "<1.1.1" "dmstr/yii2-web": "<1.1.1"
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment