11
11
12
12
namespace Symfony \Component \Intl \Data \Generator ;
13
13
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 ;
16
16
use Symfony \Component \Intl \Data \Provider \RegionDataProvider ;
17
17
use Symfony \Component \Intl \Data \Util \ArrayAccessibleResourceBundle ;
18
18
use Symfony \Component \Intl \Data \Util \LocaleScanner ;
@@ -36,7 +36,7 @@ class TimezoneDataGenerator extends AbstractDataGenerator
36
36
private $ zoneIds = [];
37
37
private $ regionDataProvider ;
38
38
39
- public function __construct (GenrbCompiler $ compiler , string $ dirName , RegionDataProvider $ regionDataProvider )
39
+ public function __construct (BundleCompilerInterface $ compiler , string $ dirName , RegionDataProvider $ regionDataProvider )
40
40
{
41
41
parent ::__construct ($ compiler , $ dirName );
42
42
@@ -54,7 +54,7 @@ protected function scanLocales(LocaleScanner $scanner, $sourceDir)
54
54
/**
55
55
* {@inheritdoc}
56
56
*/
57
- protected function compileTemporaryBundles (GenrbCompiler $ compiler , $ sourceDir , $ tempDir )
57
+ protected function compileTemporaryBundles (BundleCompilerInterface $ compiler , $ sourceDir , $ tempDir )
58
58
{
59
59
$ compiler ->compile ($ sourceDir .'/zone ' , $ tempDir );
60
60
$ compiler ->compile ($ sourceDir .'/misc/timezoneTypes.txt ' , $ tempDir );
@@ -73,7 +73,7 @@ protected function preGenerate()
73
73
/**
74
74
* {@inheritdoc}
75
75
*/
76
- protected function generateDataForLocale (BundleReaderInterface $ reader , $ tempDir , $ displayLocale )
76
+ protected function generateDataForLocale (BundleEntryReaderInterface $ reader , $ tempDir , $ displayLocale )
77
77
{
78
78
$ localeBundle = $ reader ->read ($ tempDir , $ displayLocale );
79
79
@@ -114,14 +114,14 @@ protected function generateDataForLocale(BundleReaderInterface $reader, $tempDir
114
114
/**
115
115
* {@inheritdoc}
116
116
*/
117
- protected function generateDataForRoot (BundleReaderInterface $ reader , $ tempDir )
117
+ protected function generateDataForRoot (BundleEntryReaderInterface $ reader , $ tempDir )
118
118
{
119
119
}
120
120
121
121
/**
122
122
* {@inheritdoc}
123
123
*/
124
- protected function generateDataForMeta (BundleReaderInterface $ reader , $ tempDir )
124
+ protected function generateDataForMeta (BundleEntryReaderInterface $ reader , $ tempDir )
125
125
{
126
126
$ rootBundle = $ reader ->read ($ tempDir , 'root ' );
127
127
0 commit comments