Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.54 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.54 KB

SNRequestParamBundle

RequestParamBundle is an easier way to validate request data and use auto-complete request data in your IDE.

Version Travis SensioLabs Insight Coveralls

Installation

Run composer require sonntagnacht/requestparam-bundle to use SNRequestParamBundle in your Symfony Project.

Configuration

AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            // ...
            new SN\RequestParamBundle\SNRequestParamBundle(),
            // ...
            
        return $bundles;
    }
    // ...
}

Examples