Skip to content

Commit 3b20f63

Browse files
authored
Merge pull request #29 from factorio-item-browser/feature/chunked-export
feature/chunked-export
2 parents 58c09e5 + 8ce2116 commit 3b20f63

File tree

95 files changed

+1898
-4278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+1898
-4278
lines changed

config/autoload/dependencies.global.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
Console\Console::class => AutoWireFactory::class,
3737

38-
Factorio\DumpExtractor::class => AutoWireFactory::class,
3938
Factorio\FactorioDownloader::class => AutoWireFactory::class,
4039
Factorio\Instance::class => AutoWireFactory::class,
4140

@@ -44,13 +43,24 @@
4443
Mod\ModDownloader::class => AutoWireFactory::class,
4544
Mod\ModFileManager::class => AutoWireFactory::class,
4645

46+
OutputProcessor\DumpOutputProcessor::class => AutoWireFactory::class,
47+
OutputProcessor\DumpProcessor\ExpensiveRecipeDumpProcessor::class => AutoWireFactory::class,
48+
OutputProcessor\DumpProcessor\FluidDumpProcessor::class => AutoWireFactory::class,
49+
OutputProcessor\DumpProcessor\IconDumpProcessor::class => AutoWireFactory::class,
50+
OutputProcessor\DumpProcessor\ItemDumpProcessor::class => AutoWireFactory::class,
51+
OutputProcessor\DumpProcessor\MachineDumpProcessor::class => AutoWireFactory::class,
52+
OutputProcessor\DumpProcessor\NormalRecipeDumpProcessor::class => AutoWireFactory::class,
53+
OutputProcessor\ErrorOutputProcessor::class => AutoWireFactory::class,
54+
OutputProcessor\ModNameOutputProcessor::class => AutoWireFactory::class,
55+
4756
Parser\IconParser::class => AutoWireFactory::class,
4857
Parser\ItemParser::class => AutoWireFactory::class,
4958
Parser\MachineParser::class => AutoWireFactory::class,
5059
Parser\ModParser::class => AutoWireFactory::class,
5160
Parser\RecipeParser::class => AutoWireFactory::class,
5261
Parser\TranslationParser::class => AutoWireFactory::class,
5362

63+
Process\FactorioProcessFactory::class => AutoWireFactory::class,
5464
Process\RenderIconProcessFactory::class => AutoWireFactory::class,
5565

5666
// 3rd-party services
@@ -59,6 +69,8 @@
5969
FactorioTranslator::class => Translator\TranslatorFactory::class,
6070

6171
// Auto-wire helpers
72+
'array $exportOutputProcessors' => injectAliasArray(ConfigKey::PROJECT, ConfigKey::EXPORT, ConfigKey::OUTPUT_PROCESSORS),
73+
'array $exportOutputDumpProcessors' => injectAliasArray(ConfigKey::PROJECT, ConfigKey::EXPORT, ConfigKey::OUTPUT_DUMP_PROCESSORS),
6274
'array $exportParsers' => injectAliasArray(ConfigKey::PROJECT, ConfigKey::EXPORT, ConfigKey::PARSERS),
6375
'array $exportProcessSteps' => injectAliasArray(ConfigKey::PROJECT, ConfigKey::EXPORT, ConfigKey::PROCESS_STEPS),
6476

config/autoload/development/export-queue-client.local.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ConfigKey::EXPORT_QUEUE_CLIENT => [
1818
// ConfigKey::CACHE_DIR => __DIR__ . '/../../data/cache/export-queue-client',
1919
ConfigKey::OPTIONS => [
20-
ConfigKey::OPTION_API_URL => 'http://fib-eq-php',
20+
ConfigKey::OPTION_API_URL => 'http://export-queue.fib.dev',
2121
ConfigKey::OPTION_API_KEY => 'factorio-item-browser',
2222
],
2323
],

config/autoload/development/export.local.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
ConfigKey::PROJECT => [
1717
ConfigKey::EXPORT => [
1818
ConfigKey::DIRECTORIES => [
19-
ConfigKey::DIRECTORY_CACHE => __DIR__ . '/../../../data/cache',
19+
// ConfigKey::DIRECTORY_CACHE => __DIR__ . '/../../../data/cache',
2020
ConfigKey::DIRECTORY_FACTORIO => __DIR__ . '/../../../data/factorio',
2121
ConfigKey::DIRECTORY_INSTANCES => __DIR__ . '/../../../data/instances',
2222
ConfigKey::DIRECTORY_MODS => __DIR__ . '/../../../data/mods',

config/autoload/export.global.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@
1515
return [
1616
ConfigKey::PROJECT => [
1717
ConfigKey::EXPORT => [
18+
ConfigKey::OUTPUT_PROCESSORS => [
19+
OutputProcessor\DumpOutputProcessor::class,
20+
OutputProcessor\ErrorOutputProcessor::class,
21+
OutputProcessor\ModNameOutputProcessor::class,
22+
],
23+
ConfigKey::OUTPUT_DUMP_PROCESSORS => [
24+
OutputProcessor\DumpProcessor\ExpensiveRecipeDumpProcessor::class,
25+
OutputProcessor\DumpProcessor\FluidDumpProcessor::class,
26+
OutputProcessor\DumpProcessor\IconDumpProcessor::class,
27+
OutputProcessor\DumpProcessor\ItemDumpProcessor::class,
28+
OutputProcessor\DumpProcessor\MachineDumpProcessor::class,
29+
OutputProcessor\DumpProcessor\NormalRecipeDumpProcessor::class,
30+
],
1831
ConfigKey::PARSERS => [
1932
Parser\IconParser::class,
2033
Parser\ItemParser::class,

config/autoload/translator.global.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

config/serializer/Entity.Dump.ControlStage.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

config/serializer/Entity.Dump.DataStage.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

config/serializer/Entity.Dump.Fluid.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FactorioItemBrowser\Export\Entity\Dump\Fluid:
2-
access_type: public_method
32
exclusion_policy: all
43
properties:
54
name:

config/serializer/Entity.Dump.Icon.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FactorioItemBrowser\Export\Entity\Dump\Icon:
2-
access_type: public_method
32
exclusion_policy: all
43
properties:
54
type:

config/serializer/Entity.Dump.Ingredient.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FactorioItemBrowser\Export\Entity\Dump\Ingredient:
2-
access_type: public_method
32
exclusion_policy: all
43
properties:
54
type:

0 commit comments

Comments
 (0)