This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(service): use direct injection into constructor
- Loading branch information
Showing
4 changed files
with
130 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
|
||
<services> | ||
<service id="AutoMapper\Bundle\AutoMapper"> | ||
<argument type="service" id="AutoMapper\Loader\ClassLoaderInterface" /> | ||
<argument type="service" id="AutoMapper\Transformer\ChainTransformerFactory" /> | ||
<argument type="service" id="AutoMapper\MapperGeneratorMetadataFactoryInterface" /> | ||
|
||
</service> | ||
<service id="AutoMapper\AutoMapperInterface" alias="AutoMapper\Bundle\AutoMapper" public="true" /> | ||
<service id="AutoMapper\AutoMapperRegistryInterface" alias="AutoMapper\Bundle\AutoMapper" public="true" /> | ||
|
||
<service id="AutoMapper\Extractor\SourceTargetMappingExtractor"> | ||
<argument type="service" id="automapper.property_info" /> | ||
<argument type="service" id="automapper.property_info.reflection_extractor" /> | ||
<argument type="service" id="automapper.property_info.reflection_extractor" /> | ||
<argument type="service" id="AutoMapper\Transformer\TransformerFactoryInterface" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Extractor\FromTargetMappingExtractor"> | ||
<argument type="service" id="automapper.property_info" /> | ||
<argument type="service" id="automapper.property_info.reflection_extractor" /> | ||
<argument type="service" id="automapper.property_info.reflection_extractor" /> | ||
<argument type="service" id="AutoMapper\Transformer\TransformerFactoryInterface" /> | ||
<argument type="service" id="serializer.mapping.class_metadata_factory" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Extractor\FromSourceMappingExtractor"> | ||
<argument type="service" id="automapper.property_info" /> | ||
<argument type="service" id="automapper.property_info.reflection_extractor" /> | ||
<argument type="service" id="automapper.property_info.reflection_extractor" /> | ||
<argument type="service" id="AutoMapper\Transformer\TransformerFactoryInterface" /> | ||
<argument type="service" id="serializer.mapping.class_metadata_factory" /> | ||
</service> | ||
|
||
<service id="AutoMapper\MapperGeneratorMetadataFactory"> | ||
<argument type="service" id="AutoMapper\Extractor\SourceTargetMappingExtractor" /> | ||
<argument type="service" id="AutoMapper\Extractor\FromSourceMappingExtractor" /> | ||
<argument type="service" id="AutoMapper\Extractor\FromTargetMappingExtractor" /> | ||
<argument>Symfony_Mapper_</argument> | ||
<argument>true</argument> | ||
<argument></argument> <!-- Date time format --> | ||
<argument></argument> <!-- map_private_properties --> | ||
</service> | ||
<service id="AutoMapper\MapperGeneratorMetadataFactoryInterface" alias="AutoMapper\MapperGeneratorMetadataFactory" /> | ||
|
||
<service id="AutoMapper\Loader\ClassLoaderInterface" alias="AutoMapper\Loader\FileLoader" /> | ||
|
||
<service id="automapper.mapping.class_discriminator_from_class_metadata" class="Symfony\Component\Serializer\Mapping\ClassDiscriminatorFromClassMetadata"> | ||
<argument type="service" id="serializer.mapping.class_metadata_factory" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Transformer\ChainTransformerFactory"> | ||
<argument type="collection" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Transformer\TransformerFactoryInterface" alias="AutoMapper\Transformer\ChainTransformerFactory" /> | ||
|
||
<service id="AutoMapper\Normalizer\AutoMapperNormalizer"> | ||
<argument type="service" id="AutoMapper\AutoMapperInterface" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Transformer\MultipleTransformerFactory"> | ||
<tag name="automapper.transformer_factory" priority="1002" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Transformer\NullableTransformerFactory"> | ||
<tag name="automapper.transformer_factory" priority="1001" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Transformer\UniqueTypeTransformerFactory"> | ||
<tag name="automapper.transformer_factory" priority="1000" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Transformer\EnumTransformerFactory"> | ||
<tag name="automapper.transformer_factory" priority="-999" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Transformer\DateTimeTransformerFactory"> | ||
<tag name="automapper.transformer_factory" priority="-1000" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Transformer\BuiltinTransformerFactory"> | ||
<tag name="automapper.transformer_factory" priority="-1001" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Transformer\ArrayTransformerFactory"> | ||
<tag name="automapper.transformer_factory" priority="-1002" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Transformer\ObjectTransformerFactory"> | ||
<tag name="automapper.transformer_factory" priority="-1003" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Transformer\SymfonyUidTransformerFactory" /> | ||
|
||
<service id="AutoMapper\Bundle\CacheWarmup\CacheWarmer"> | ||
<argument type="service" id="AutoMapper\AutoMapperRegistryInterface" /> | ||
<argument type="tagged_iterator" tag="automapper.cache_warmer_loader" /> | ||
<argument type="string">%automapper.cache_dir%</argument> | ||
<tag name="kernel.cache_warmer" /> | ||
</service> | ||
|
||
<service id="AutoMapper\Bundle\CacheWarmup\ConfigurationCacheWarmerLoader"> | ||
<argument/> <!-- mappers list from config --> | ||
<tag name="automapper.cache_warmer_loader" /> | ||
</service> | ||
</services> | ||
</container> |