Skip to content

Commit 42151b9

Browse files
authored
Merge pull request #30 from factorio-item-browser/feature/new-export-data
feature/new-export-data
2 parents 3b20f63 + 08c96d4 commit 42151b9

Some content is hidden

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

43 files changed

+1713
-1092
lines changed

bin/cli.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
chdir(dirname(__DIR__));
1818
require(__DIR__ . '/../vendor/autoload.php');
1919

20-
(function () {
20+
(function (): void {
2121
/* @var ContainerInterface $container */
2222
$container = require(__DIR__ . '/../config/container.php');
2323
$config = $container->get('config');
@@ -26,5 +26,5 @@
2626
$application->setCommandLoader(new ContainerCommandLoader($container, $config['commands']));
2727

2828
$exit = $application->run();
29-
exit ($exit);
29+
exit($exit);
3030
})();

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
"ext-zip": "*",
2121
"bluepsyduck/factorio-mod-portal-client": "^1.2",
2222
"bluepsyduck/factorio-translator": "^1.0",
23+
"bluepsyduck/mapper-manager": "dev-feature/generics",
2324
"bluepsyduck/symfony-process-manager": "^1.0",
2425
"bluepsyduck/laminas-autowire-factory": "^1.0",
2526
"doctrine/cache": "^1.8",
2627
"factorio-item-browser/common": "^1.2",
27-
"factorio-item-browser/export-data": "^3.0",
28+
"factorio-item-browser/export-data": "dev-feature/chunked-data",
2829
"factorio-item-browser/export-queue-client": "^1.2.0",
2930
"laminas/laminas-config-aggregator": "^1.0",
3031
"laminas/laminas-servicemanager": "^3.3",

composer.lock

Lines changed: 94 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/autoload/dependencies.global.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@
4040

4141
Helper\HashCalculator::class => AutoWireFactory::class,
4242

43+
Mapper\FluidMapper::class => AutoWireFactory::class,
44+
Mapper\IconLayerMapper::class => AutoWireFactory::class,
45+
Mapper\IconMapper::class => AutoWireFactory::class,
46+
Mapper\ItemMapper::class => AutoWireFactory::class,
47+
Mapper\MachineMapper::class => AutoWireFactory::class,
48+
Mapper\RecipeIngredientMapper::class => AutoWireFactory::class,
49+
Mapper\RecipeMapper::class => AutoWireFactory::class,
50+
Mapper\RecipeProductMapper::class => AutoWireFactory::class,
51+
4352
Mod\ModDownloader::class => AutoWireFactory::class,
4453
Mod\ModFileManager::class => AutoWireFactory::class,
4554

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace FactorioItemBrowser\Export;
6+
7+
use BluePsyduck\MapperManager\Constant\ConfigKey;
8+
9+
/**
10+
* The configuration of the mapper manager.
11+
*
12+
* @author BluePsyduck <[email protected]>
13+
* @license http://opensource.org/licenses/GPL-3.0 GPL v3
14+
*/
15+
16+
return [
17+
ConfigKey::MAIN => [
18+
ConfigKey::MAPPERS => [
19+
Mapper\FluidMapper::class,
20+
Mapper\IconLayerMapper::class,
21+
Mapper\IconMapper::class,
22+
Mapper\ItemMapper::class,
23+
Mapper\MachineMapper::class,
24+
Mapper\RecipeIngredientMapper::class,
25+
Mapper\RecipeMapper::class,
26+
Mapper\RecipeProductMapper::class,
27+
],
28+
],
29+
];

0 commit comments

Comments
 (0)