Skip to content

Commit 0781afe

Browse files
committed
MAGETWO-34390: Stabilization of replacing Zend_Locale with Native PHP Implementation
1 parent bbd0f0b commit 0781afe

File tree

15 files changed

+34
-18
lines changed

15 files changed

+34
-18
lines changed

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/Full.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,8 @@ protected function getStoreDate($storeId, $date = null)
774774
}
775775

776776
if (!$this->dateTime->isEmptyDate($date)) {
777-
list($dateObj, $format) = $this->dates[$storeId];
778777
/** @var \DateTime $dateObj */
778+
$dateObj = $this->dates[$storeId];
779779
return $this->localeDate->formatDateTime($dateObj, \IntlDateFormatter::MEDIUM, \IntlDateFormatter::NONE);
780780
}
781781

app/code/Magento/CurrencySymbol/Model/System/Currencysymbol.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Copyright © 2015 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
namespace Magento\CurrencySymbol\Model\System;
7+
88
use Magento\Framework\Locale\Bundle\CurrencyBundle;
99

1010
/**

app/code/Magento/Reports/Block/Adminhtml/Sales/Grid/Column/Renderer/Date.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Reports\Block\Adminhtml\Sales\Grid\Column\Renderer;
7+
78
use Magento\Framework\Locale\Bundle\DataBundle;
89

910
/**

app/code/Magento/Ui/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6-
"magento/module-store": "0.42.0-beta10",
76
"magento/module-backend": "0.42.0-beta10",
87
"magento/framework": "0.42.0-beta10",
98
"magento/module-eav": "0.42.0-beta10",

app/etc/di.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@
121121
<preference for="Magento\Framework\Locale\FormatInterface" type="Magento\Framework\Locale\Format" />
122122
<preference for="Magento\Framework\Locale\ResolverInterface" type="Magento\Framework\Locale\Resolver" />
123123
<preference for="Magento\Framework\Stdlib\DateTime\TimezoneInterface" type="Magento\Framework\Stdlib\DateTime\Timezone" />
124-
<preference for="Magento\Framework\Stdlib\DateTime\DateInterface" type="Magento\Framework\Stdlib\DateTime\Date" />
125124
<preference for="Magento\Framework\Less\PreProcessor\ErrorHandlerInterface" type="Magento\Framework\Less\PreProcessor\ErrorHandler" />
126125
<preference for="Magento\Framework\Module\ResourceInterface" type="Magento\Framework\Module\Resource" />
127126
<preference for="Magento\Framework\Pricing\Amount\AmountInterface" type="Magento\Framework\Pricing\Amount\Base" />

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"ext-hash": "*",
5050
"ext-curl": "*",
5151
"ext-iconv": "*",
52+
"ext-intl": "*",
5253
"sjparkinson/static-review": "~4.1",
5354
"fabpot/php-cs-fixer": "~1.2",
5455
"lusitanian/oauth": "~0.3"

composer.lock

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/internal/Magento/Framework/Locale/Bundle/CurrencyBundle.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77

88
class CurrencyBundle extends DataBundle
99
{
10+
/**
11+
* @var string
12+
*/
1013
protected $path = 'ICUDATA-curr';
1114
}

lib/internal/Magento/Framework/Locale/Bundle/LanguageBundle.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77

88
class LanguageBundle extends DataBundle
99
{
10+
/**
11+
* @var string
12+
*/
1013
protected $path = 'ICUDATA-lang';
1114
}

lib/internal/Magento/Framework/Locale/Bundle/RegionBundle.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77

88
class RegionBundle extends DataBundle
99
{
10+
/**
11+
* @var string
12+
*/
1013
protected $path = 'ICUDATA-region';
1114
}

0 commit comments

Comments
 (0)