bug #22611 [FrameworkBundle] Fix "Locale class not found" in AboutCommand (rubenrua)
This PR was merged into the 3.3-dev branch.
Discussion
----------
[FrameworkBundle] Fix "Locale class not found" in AboutCommand
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
Found testing http://fabien.potencier.org/symfony4-demo.html with docker `php:7.1`
Commits
-------
0269f9d422
[FrameworkBundle] Fix "Locale class not found" in AboutCommand
This commit is contained in:
commit
ae9bda1ffc
@ -70,7 +70,7 @@ class AboutCommand extends ContainerAwareCommand
|
||||
new TableSeparator(),
|
||||
array('Version', PHP_VERSION),
|
||||
array('Architecture', (PHP_INT_SIZE * 8).' bits'),
|
||||
array('Intl locale', \Locale::getDefault() ?: 'n/a'),
|
||||
array('Intl locale', class_exists('Locale', false) && \Locale::getDefault() ? \Locale::getDefault() : 'n/a'),
|
||||
array('Timezone', date_default_timezone_get().' (<comment>'.(new \DateTime())->format(\DateTime::W3C).'</>)'),
|
||||
array('OPcache', extension_loaded('Zend OPcache') && ini_get('opcache.enable') ? 'true' : 'false'),
|
||||
array('APCu', extension_loaded('apcu') && ini_get('apc.enabled') ? 'true' : 'false'),
|
||||
|
Reference in New Issue
Block a user