druidvav/api-service-bundle

Installs: 2 526

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

v3.4.1 2021-12-29 11:16 UTC

This package is auto-updated.

Last update: 2024-04-29 03:15:54 UTC


README

Installation

Step 1: Download DvApiServiceBundle using composer

Require the druidvav/api-service-bundle with composer Composer.

$ composer require druidvav/api-service-bundle

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
            new Druidvav\ApiServiceBundle\DvApiServiceBundle(),
        // ...
    );
}

Step 3: Configure the DvApiServiceBundle

# app/config/config.yml

dv_api_service:
    logger: "@monolog.logger.api"

Step 4: Define your api service files

# src/AppBundle/Resources/config/services.yml

services:
    _defaults:
        autowire: true      # Automatically injects dependencies in your services.
        autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.

    AppBundle\ApiService\:
        resource: '../../ApiService/*'
        tags: [ "jsonrpc.api-service" ]