Commit 159f46f2 authored by Guillaume Perréal's avatar Guillaume Perréal

Désactive l'attribut "lazy" de certains services.

Ce n'est nécessaire que pour les commandes.
parent 80b7aedf
......@@ -20,7 +20,7 @@
<argument type="service" id="irstea_ng_model_generator.metadata.resource_class_hierarchy"/>
</service>
<service id="ng_model_generator.metadata.caching_factory" lazy="true" public="false"
<service id="ng_model_generator.metadata.caching_factory" public="false"
decorates="ng_model_generator.metadata.factory"
class="Irstea\NgModelGeneratorBundle\Metadata\CachingMetadataFactory">
<argument type="service" id="ng_model_generator.metadata.caching_factory.inner"/>
......@@ -32,7 +32,7 @@
<argument id="irstea_ng_model_generator.resource_name_collection" type="service"/>
</service>
<service id="ng_model_generator.metadata.pagination" lazy="true"
<service id="ng_model_generator.metadata.pagination"
class="Irstea\NgModelGeneratorBundle\Metadata\PaginationMetadata">
<argument>%api_platform.collection.pagination.enabled%</argument>
<argument>%api_platform.collection.pagination.page_parameter_name%</argument>
......@@ -56,12 +56,12 @@
<tag name="console.command"/>
</service>
<service id="irstea_ng_model_generator.model_generator" lazy="true" class="Irstea\NgModelGeneratorBundle\ModelGenerator">
<service id="irstea_ng_model_generator.model_generator" class="Irstea\NgModelGeneratorBundle\ModelGenerator">
<argument id="ng_model_generator.metadata.factory" type="service"/>
<argument id="twig" type="service"/>
</service>
<service id="irstea_ng_model_generator.documentation" lazy="true" class="ApiPlatform\Core\Documentation\Documentation">
<service id="irstea_ng_model_generator.documentation" class="ApiPlatform\Core\Documentation\Documentation">
<argument type="service" id="irstea_ng_model_generator.resource_name_collection"/>
<argument>%api_platform.title%</argument>
<argument>%api_platform.description%</argument>
......@@ -69,7 +69,7 @@
<argument>%api_platform.formats%</argument>
</service>
<service id="irstea_ng_model_generator.resource_name_collection" lazy="true" public="false"
<service id="irstea_ng_model_generator.resource_name_collection" public="false"
class="ApiPlatform\Core\Metadata\Resource\ResourceNameCollection">
<factory service="api_platform.metadata.resource.name_collection_factory" method="create"/>
</service>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment