2017 © Pedro Peláez
 

symfony-bundle api-service-bundle

image

druidvav/api-service-bundle

  • Monday, July 23, 2018
  • by druidvav
  • Repository
  • 1 Watchers
  • 0 Stars
  • 46 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 171 % Grown

The README.md

Api Service Symfony Bundle

Installation

Step 1: Download DvApiServiceBundle using composer

Require the druidvav/api-service-bundle with composer Composer., (*1)

$ composer require druidvav/api-service-bundle

Step 2: Enable the bundle

Enable the bundle in the kernel:, (*2)

<?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" ]

The Versions