|
1 | 1 | <?php
|
2 | 2 |
|
| 3 | +use a9f\Fractor\Configuration\AllowedFileExtensionsResolver; |
| 4 | +use a9f\Fractor\Configuration\ConfigurationFactory; |
3 | 5 | use a9f\Fractor\Configuration\Option;
|
| 6 | +use a9f\Fractor\Configuration\ValueObject\Configuration; |
4 | 7 | use a9f\Fractor\Contract\FileProcessor;
|
5 |
| -use a9f\Fractor\Factory\ConfigurationFactory; |
6 | 8 | use a9f\Fractor\Fractor\FractorRunner;
|
7 |
| -use a9f\Fractor\ValueObject\Configuration; |
8 | 9 | use Symfony\Component\DependencyInjection\ContainerBuilder;
|
9 | 10 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
10 | 11 | use Symfony\Component\DependencyInjection\ParameterBag\ContainerBag;
|
|
25 | 26 | $services->load('a9f\\Fractor\\', __DIR__ . '/../src/')
|
26 | 27 | ->exclude(
|
27 | 28 | [
|
28 |
| - __DIR__ . '/../src/Configuration', |
29 | 29 | __DIR__ . '/../src/Console',
|
30 |
| - __DIR__ . '/../src/ValueObject', |
31 | 30 | __DIR__ . '/../src/Testing',
|
| 31 | + __DIR__ . '/../src/ValueObject', |
| 32 | + __DIR__ . '/../src/**/ValueObject', |
32 | 33 | ]
|
33 | 34 | );
|
34 | 35 |
|
|
41 | 42 |
|
42 | 43 | $services->set(Configuration::class)->factory([service(ConfigurationFactory::class), 'create']);
|
43 | 44 | $services->set(FractorRunner::class)->arg('$processors', tagged_iterator('fractor.file_processor'));
|
44 |
| - $services->set(ConfigurationFactory::class)->arg('$processors', tagged_iterator('fractor.file_processor')); |
| 45 | + $services->set(AllowedFileExtensionsResolver::class)->arg('$processors', tagged_iterator('fractor.file_processor')); |
45 | 46 |
|
46 | 47 | $containerBuilder->registerForAutoconfiguration(FileProcessor::class)->addTag('fractor.file_processor');
|
47 | 48 | };
|
0 commit comments