All Downloads are FREE. Search and download functionalities are using the official Maven repository.

php-symfony.services.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
# NOTE: This file is auto generated by the openapi generator program.
# https://github.com/openapitools/openapi-generator
# Do not edit the class manually.

parameters:
    {{bundleAlias}}.serializer: '{{servicePackage}}\JmsSerializer'
    {{bundleAlias}}.validator:  '{{servicePackage}}\SymfonyValidator'

services:
    {{bundleAlias}}.api.api_server:
        class: {{apiPackage}}\ApiServer

    {{bundleAlias}}.model.model_serializer:
        class: {{modelPackage}}\ModelSerializer

    {{bundleAlias}}.service.serializer:
        class: '%{{bundleAlias}}.serializer%'

    {{bundleAlias}}.service.validator:
        class: '%{{bundleAlias}}.validator%'
        arguments:
            - '@validator'

{{#apiInfo}}
{{#apis}}
{{#operations}}
    {{bundleAlias}}.controller.{{pathPrefix}}:
        class: {{controllerPackage}}\{{baseName}}Controller
        calls:
         - [setSerializer, ['@{{bundleAlias}}.service.serializer']]
         - [setValidator,  ['@{{bundleAlias}}.service.validator']]
         - [setApiServer,  ['@{{bundleAlias}}.api.api_server']]
        tags: ['controller.service_arguments']
        autowire: true

{{/operations}}
{{/apis}}
{{/apiInfo}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy