2017 © Pedro Peláez
 

symfony-bundle api-problem-bundle

Integration between crell/api-problem and the Symfony framework

image

uma/api-problem-bundle

Integration between crell/api-problem and the Symfony framework

  • Sunday, May 13, 2018
  • by 1ma
  • Repository
  • 1 Watchers
  • 2 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 11 % Grown

The README.md

UMAApiProblemBundle

Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight, (*1)

Clean integration between the crell/api-problem library and the Symfony framework, (*2)

What it does

This bundle just hooks a simple VIEW event listener into the request lifecycle. This allows you to return ApiProblem objects from your controllers without needing to concern yourself about how to transform them into Symfony responses., (*3)

Installation & Configuration

Add uma/api-problem-bundle to your composer.json file:, (*4)

php composer.phar require "uma/api-problem-bundle"

And register the bundle in app/AppKernel.php:, (*5)

php public function registerBundles() { return [ // ... new UMA\ApiProblemBundle\UMAApiProblemBundle(), ]; }, (*6)

Usage

Take a look at the TestController class for a hands-on example., (*7)

TODO

  • XML support

The Versions