Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40c2ce4

Browse filesBrowse files
minor #34768 [FrameworkBundle] Remove env var table from AboutCommand (tuqqu)
This PR was squashed before being merged into the 5.1-dev branch. Discussion ---------- [FrameworkBundle] Remove env var table from AboutCommand | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | - | Deprecations? | - | Tickets | - | License | MIT | Doc PR | - Fixed AboutCommand output by shortening environment variable value (replacing with `...`) to fit the screen width if the value is too long. Right now all output is a mess if it does not fit in the terminal window. Commits ------- 6962da9 [FrameworkBundle] Remove env var table from AboutCommand
2 parents d021ff1 + 6962da9 commit 40c2ce4
Copy full SHA for 40c2ce4

File tree

1 file changed

+0
-22
lines changed
Filter options

1 file changed

+0
-22
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Command/AboutCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/AboutCommand.php
-22Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8989
['Xdebug', \extension_loaded('xdebug') ? 'true' : 'false'],
9090
];
9191

92-
if ($dotenv = self::getDotenvVars()) {
93-
$rows = array_merge($rows, [
94-
new TableSeparator(),
95-
['<info>Environment (.env)</>'],
96-
new TableSeparator(),
97-
], array_map(function ($value, $name) {
98-
return [$name, $value];
99-
}, $dotenv, array_keys($dotenv)));
100-
}
101-
10292
$io->table([], $rows);
10393

10494
return 0;
@@ -129,16 +119,4 @@ private static function isExpired(string $date): bool
129119

130120
return false !== $date && new \DateTime() > $date->modify('last day of this month 23:59:59');
131121
}
132-
133-
private static function getDotenvVars(): array
134-
{
135-
$vars = [];
136-
foreach (explode(',', $_SERVER['SYMFONY_DOTENV_VARS'] ?? $_ENV['SYMFONY_DOTENV_VARS'] ?? '') as $name) {
137-
if ('' !== $name && isset($_ENV[$name])) {
138-
$vars[$name] = $_ENV[$name];
139-
}
140-
}
141-
142-
return $vars;
143-
}
144122
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.