2017 © Pedro Peláez
 

symfony-bundle subrequestextra-bundle

A Symfony2 bundle to visually debug subrequests

image

amp/subrequestextra-bundle

A Symfony2 bundle to visually debug subrequests

  • Tuesday, March 19, 2013
  • by hubertperron
  • Repository
  • 2 Watchers
  • 6 Stars
  • 1,478 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

AmpSubrequestExtraBundle

This bundle add a way to graphically view each subrequests used on a single page. Subrequests are wrapped in a template container displaying additional information about the request., (*1)

Installation

Using the deps file

[AmpSubrequestExtraBundle]
    git=http://github.com/hubertperron/AmpSubrequestExtraBundle.git
    target=/bundles/Amp/SubrequestExtraBundle

Using composer

{
    "require": {
        "amp/subrequestextra-bundle": "dev-master"
    }
}

Add the bundle to your application kernel

``` php // File: app/AppKernel.php public function registerBundles() { if (in_array($this->getEnvironment(), array('dev', 'test'))) { // ... new Amp\SubrequestExtraBundle\AmpSubrequestExtraBundle(); ); }, (*2)


### Register namespace (Symfony 2.0.x) ``` php // File: app/autoload.php $loader->registerNamespaces(array( // ... 'Amp' => __DIR__.'/../vendor/bundles', ));

Configuration

``` yaml amp_subrequest_extra: ignore_controllers: - AcmeDemoBundle:Welcome:index - AcmeDemoBundle:Example:list, (*3)


## Usage Use the web debug toolbar icon to toggle the subrequests wrapper. ## Example Without using parameters. ``` twig {% render 'LoremBundle:Generate:ExampleWithoutParameters' %}

without parameters, (*4)

Using parameters., (*5)

``` twig {% render 'LoremBundle:Generate:ExampleWithParameters' with { id: 1, hash: '0a7254fc5', displayActive: true } %}, (*6)


![with parameters](https://raw.github.com/hubertperron/AmpSubrequestExtraBundle/master/Resources/doc/with_parameters.png) Returning an empty response. ``` twig {% render 'LoremBundle:Generate:ExampleReturningEmptyResponse' %}

empty response, (*7)

The Versions

19/03 2013

dev-master

9999999-dev https://github.com/hubertperron/AmpSubrequestExtraBundle

A Symfony2 bundle to visually debug subrequests

  Sources   Download

MIT

The Requires

 

by Hubert Perron

debug toolbar subrequest