Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
CurrencyDataGenerator example
$generator
=
new
ScriptDataGenerator
(
$compiler
, Intl::SCRIPT_DIR
)
;
$generator
->
generateData
(
$config
)
;
echo
"Generating region data...\n";
$generator
=
new
RegionDataGenerator
(
$compiler
, Intl::REGION_DIR
)
;
$generator
->
generateData
(
$config
)
;
echo
"Generating currency data...\n";
$generator
=
new
CurrencyDataGenerator
(
$compiler
, Intl::CURRENCY_DIR
)
;
$generator
->
generateData
(
$config
)
;
echo
"Generating locale data...\n";
$generator
=
new
LocaleDataGenerator
(
$compiler
, Intl::LOCALE_DIR
)
;
$generator
->
generateData
(
$config
)
;
echo
"Generating timezone data...\n";
$generator
=
new
TimezoneDataGenerator
(
$compiler
, Intl::TIMEZONE_DIR
)
;
$generator
->
generateData
(
$config
)
;