Skip to content

Commit

Permalink
[TASK] Change required version of symfony components
Browse files Browse the repository at this point in the history
  • Loading branch information
o-ba committed Dec 10, 2020
1 parent b95e9c0 commit ba39f2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion bin/tailor
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

use Symfony\Component\Console\Application;
use Symfony\Component\Dotenv\Dotenv;
use TYPO3\Tailor\Command;

foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php'] as $file) {
Expand All @@ -22,7 +23,12 @@ foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php
\call_user_func(static function() {
foreach ([ __DIR__ . '/../.env', __DIR__ . '/../../../../.env', __DIR__ . '/../../../../../.env'] as $file) {
if (file_exists($file)) {
(new Symfony\Component\Dotenv\Dotenv())->usePutenv(true)->loadEnv($file);
if (method_exists(Dotenv::class, 'usePutenv')) {
$dotEnv = (new Dotenv())->usePutenv(true);
} else {
$dotEnv = new Dotenv(true);
}
$dotEnv->loadEnv($file);
break;
}
}
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"php": "^7.2",
"ext-json": "*",
"ext-zip": "*",
"symfony/console": "^5.1",
"symfony/dotenv": "^5.1",
"symfony/http-client": "^5.1",
"symfony/mime": "^5.1"
"symfony/console": "^4.4 || ^5.0",
"symfony/dotenv": "^4.4 || ^5.0",
"symfony/http-client": "^4.4 || ^5.0",
"symfony/mime": "^4.4 || ^5.0"
},
"require-dev": {
"phpunit/phpunit": "^8.5",
Expand Down

0 comments on commit ba39f2e

Please sign in to comment.