2017 © Pedro Peláez
 

symfony-bundle controller-util-bundle

Symfony2 Bundle for zenstruck/controller-util

image

zenstruck/controller-util-bundle

Symfony2 Bundle for zenstruck/controller-util

  • Monday, October 26, 2015
  • by kbond
  • Repository
  • 1 Watchers
  • 1 Stars
  • 201 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

ZenstruckControllerUtilBundle

Build Status Scrutinizer Code Quality Code Coverage SensioLabs Insight StyleCI Latest Stable Version License, (*1)

This bundle integrates the zenstruck/controller-util library into your Symfony2 project. For usage, see its documentation., (*2)

Installation

Require this bundle with composer:, (*3)

composer require zenstruck/controller-util-bundle

Then enable it in your kernel:, (*4)

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        //...
        new Zenstruck\ControllerUtilBundle\ZenstruckControllerUtilBundle(),
        //...
    );
}

Full Default Configuration

zenstruck_controller_util:

    # When true, only enabled if JMSSerializerBundle is registered.
    serializer_listener:  true
    forward_listener:     true
    redirect_listener:    true
    templating_view_listener:  true
    no_content_view_listener:
        enabled:              true

        # When true, controllers can return just null, otherwise an empty view is required.
        allow_null:           true
    has_flashes_listener:  true
    param_converter_listener:
        enabled:              true
        session:              true
        flash_bag:            true

        # When true, only enabled if security is enabled.
        security_context:     true

        # When true, only enabled if forms are enabled.
        form_factory:         true
    exception_map:

        # Prototype
        exception_class:      ~

The Versions