Skip to content

Commit

Permalink
ext-intl usage is optional now
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayjest committed Apr 7, 2016
1 parent 8421cc9 commit 0f96d3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"nayjest/tree": "^3"
},
"require-dev": {
"view-components/testing-helpers": "^2.0.1",
"ext-intl": "*"
"view-components/testing-helpers": "^2.0.1"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 3 additions & 1 deletion tests/webapp/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ protected function prepareDemo11Grid()
})
,
(new Column('income'))->setValueFormatter(function ($value) {

if (!class_exists('\NumberFormatter')) {
return '$' . $value;
}
static $numberFormatter;
if ($numberFormatter === null) {
$numberFormatter = new \NumberFormatter('en_US', \NumberFormatter::CURRENCY);
Expand Down

0 comments on commit 0f96d3c

Please sign in to comment.