zenstruck/controller-util-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony2 Bundle for zenstruck/controller-util

Fund package maintenance!
kbond

Installs: 223

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.4.0 2015-07-07 14:56 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:33:08 UTC


README

Build Status Scrutinizer Code Quality Code Coverage SensioLabs Insight StyleCI Latest Stable Version License

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

Installation

Require this bundle with composer:

composer require zenstruck/controller-util-bundle

Then enable it in your kernel:

// 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:      ~