Skip to content

Commit f75d003

Browse files
committed
re-apply api changes for TimezoneDataGenerator
1 parent 49aa404 commit f75d003

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Data/Generator/TimezoneDataGenerator.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\Intl\Data\Generator;
1313

14-
use Symfony\Component\Intl\Data\Bundle\Compiler\GenrbCompiler;
15-
use Symfony\Component\Intl\Data\Bundle\Reader\BundleReaderInterface;
14+
use Symfony\Component\Intl\Data\Bundle\Compiler\BundleCompilerInterface;
15+
use Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReaderInterface;
1616
use Symfony\Component\Intl\Data\Provider\RegionDataProvider;
1717
use Symfony\Component\Intl\Data\Util\ArrayAccessibleResourceBundle;
1818
use Symfony\Component\Intl\Data\Util\LocaleScanner;
@@ -36,7 +36,7 @@ class TimezoneDataGenerator extends AbstractDataGenerator
3636
private $zoneIds = [];
3737
private $regionDataProvider;
3838

39-
public function __construct(GenrbCompiler $compiler, string $dirName, RegionDataProvider $regionDataProvider)
39+
public function __construct(BundleCompilerInterface $compiler, string $dirName, RegionDataProvider $regionDataProvider)
4040
{
4141
parent::__construct($compiler, $dirName);
4242

@@ -54,7 +54,7 @@ protected function scanLocales(LocaleScanner $scanner, $sourceDir)
5454
/**
5555
* {@inheritdoc}
5656
*/
57-
protected function compileTemporaryBundles(GenrbCompiler $compiler, $sourceDir, $tempDir)
57+
protected function compileTemporaryBundles(BundleCompilerInterface $compiler, $sourceDir, $tempDir)
5858
{
5959
$compiler->compile($sourceDir.'/zone', $tempDir);
6060
$compiler->compile($sourceDir.'/misc/timezoneTypes.txt', $tempDir);
@@ -73,7 +73,7 @@ protected function preGenerate()
7373
/**
7474
* {@inheritdoc}
7575
*/
76-
protected function generateDataForLocale(BundleReaderInterface $reader, $tempDir, $displayLocale)
76+
protected function generateDataForLocale(BundleEntryReaderInterface $reader, $tempDir, $displayLocale)
7777
{
7878
$localeBundle = $reader->read($tempDir, $displayLocale);
7979

@@ -114,14 +114,14 @@ protected function generateDataForLocale(BundleReaderInterface $reader, $tempDir
114114
/**
115115
* {@inheritdoc}
116116
*/
117-
protected function generateDataForRoot(BundleReaderInterface $reader, $tempDir)
117+
protected function generateDataForRoot(BundleEntryReaderInterface $reader, $tempDir)
118118
{
119119
}
120120

121121
/**
122122
* {@inheritdoc}
123123
*/
124-
protected function generateDataForMeta(BundleReaderInterface $reader, $tempDir)
124+
protected function generateDataForMeta(BundleEntryReaderInterface $reader, $tempDir)
125125
{
126126
$rootBundle = $reader->read($tempDir, 'root');
127127

0 commit comments

Comments
 (0)