Skip to content

Commit

Permalink
bug #22611 [FrameworkBundle] Fix "Locale class not found" in AboutCom…
Browse files Browse the repository at this point in the history
…mand (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
-------

0269f9d [FrameworkBundle] Fix "Locale class not found" in AboutCommand
  • Loading branch information
fabpot committed May 9, 2017
2 parents ca509ea + 0269f9d commit ae9bda1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -70,7 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
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'),
Expand Down

0 comments on commit ae9bda1

Please sign in to comment.