minor #21875 Rename TimeZoneTransformer into TimezoneTransformer (lepiaf)

This PR was submitted for the 3.2 branch but it was merged into the 3.3-dev branch instead (closes #21875).

Discussion
----------

Rename TimeZoneTransformer into TimezoneTransformer

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #11028
| License       | MIT
| Doc PR        | no
#

Commits
-------

dba163950b Rename TimeZoneTransformer into TimezoneTransformer
This commit is contained in:
Fabien Potencier 2017-03-14 11:55:51 -07:00
commit dc0eba77f6
3 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ class FullTransformer
'k' => new Hour2401Transformer(),
'm' => new MinuteTransformer(),
's' => new SecondTransformer(),
'z' => new TimeZoneTransformer(),
'z' => new TimezoneTransformer(),
);
}

View File

@ -20,7 +20,7 @@ use Symfony\Component\Intl\Exception\NotImplementedException;
*
* @internal
*/
class TimeZoneTransformer extends Transformer
class TimezoneTransformer extends Transformer
{
/**
* {@inheritdoc}

View File

@ -541,7 +541,7 @@ class IntlDateFormatter
// Get an Etc/GMT time zone that is accepted for \DateTimeZone
if ('GMT' !== $timeZoneId && 0 === strpos($timeZoneId, 'GMT')) {
try {
$timeZoneId = DateFormat\TimeZoneTransformer::getEtcTimeZoneId($timeZoneId);
$timeZoneId = DateFormat\TimezoneTransformer::getEtcTimeZoneId($timeZoneId);
} catch (\InvalidArgumentException $e) {
// Does nothing, will fallback to UTC
}