Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Bundles Symfony 2
ng-model-generator-bundle
Commits
159f46f2
Commit
159f46f2
authored
Sep 08, 2020
by
Guillaume Perréal
Browse files
Désactive l'attribut "lazy" de certains services.
Ce n'est nécessaire que pour les commandes.
parent
80b7aedf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/php/Resources/config/config.xml
View file @
159f46f2
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment