[Locale] import FullTransformer via usee statement

This commit is contained in:
Igor Wiedler 2011-02-28 14:29:44 +01:00
parent a5f8411eff
commit ac8b9be130

View File

@ -12,6 +12,7 @@
namespace Symfony\Component\Locale\Stub;
use Symfony\Component\Locale\Stub\StubLocale;
use Symfony\Component\Locale\Stub\DateFormat\FullTransformer;
use Symfony\Component\Locale\Exception\NotImplementedException;
use Symfony\Component\Locale\Exception\MethodNotImplementedException;
use Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException;
@ -124,7 +125,7 @@ class StubIntlDateFormatter
$dateTime->setTimestamp($timestamp);
$dateTime->setTimezone($this->dateTimeZone);
$transformer = new DateFormat\FullTransformer($this->getPattern(), $this->getTimeZoneId());
$transformer = new FullTransformer($this->getPattern(), $this->getTimeZoneId());
$formatted = $transformer->format($dateTime);
return $formatted;
@ -251,7 +252,7 @@ class StubIntlDateFormatter
public function parse($value, &$position = 0)
{
$dateTime = $this->createDateTime(0);
$transformer = new DateFormat\FullTransformer($this->getPattern(), $this->getTimeZoneId());
$transformer = new FullTransformer($this->getPattern(), $this->getTimeZoneId());
return $transformer->parse($dateTime, $value);
}