backend-module/micro_base_component

There is no license information available for the latest version (v0.5.0) of this package.

Symfony micro service base component

v0.5.0 2018-11-29 07:10 UTC

This package is auto-updated.

Last update: 2024-10-29 05:10:56 UTC


README

============================================================================

Setup

1. Install module using composer require
composer require backend-module/MicroBaseComponent
2. Or add new require package to composer config file manually
"backend-module/MicroBaseComponent": "^0.5"
3. Initialize event listeners in your service
  • setup ApiVersionListener listener
Micro\BaseComponent\EventListener\ApiVersionListener:
 tags:
     - { name: kernel.event_listener, event: kernel.request}
  • setup JsonListener listener
Micro\BaseComponent\EventListener\JsonListener:
    tags:
        - { name: kernel.event_listener, event: kernel.request}

  • setup ExceptionListener listener
Micro\BaseComponent\EventListener\ExceptionListener:
    arguments:
      - '@kernel'
      - '@logger'
    tags:
        - { name: kernel.event_listener, event: kernel.exception}
  • setup ApiResponseListener listener
Micro\BaseComponent\EventListener\ApiResponseListener:
    tags:
        - { name: kernel.event_listener, event: kernel.view}
  • setup ViewListener listener
Micro\BaseComponent\EventListener\ViewListener:
   tags:
       - { name: kernel.event_listener, event: kernel.view}