File: store/config/packages/api_platform.yaml

Recommend this page to a friend!
  Classes of Omar Shaban  >  Clean Architecture in PHP Symfony  >  store/config/packages/api_platform.yaml  >  Download  
File: store/config/packages/api_platform.yaml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Clean Architecture in PHP Symfony
Symfony based application in a Docker container
Author: By
Last change:
Date: 3 months ago
Size: 534 bytes
 

Contents

Class file image Download
api_platform:
    doctrine:
        # To enable or disable Doctrine ORM support.
        enabled: false
    formats:
        json:     ['application/json']
    mapping:
        paths:
            - '%kernel.project_dir%/src/EntryPoints/Rest/Resources'
    exception_to_status:
        # With a status code.
        Example\Store\Domain\UseCases\Exception\ValueNotFoundException: 404

    collection:
        pagination:
            # To enable or disable pagination for all resource collections by default.
            enabled: false
For more information send a message to info at phpclasses dot org.