Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Subrequestextra Bundle Laravel Package

amp/subrequestextra-bundle

View on GitHub
Deep Wiki
Context7

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.

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

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

Register namespace (Symfony 2.0.x)

// File: app/autoload.php
$loader->registerNamespaces(array(
        // ...
        'Amp' => __DIR__.'/../vendor/bundles',
));

Configuration

amp_subrequest_extra:
    ignore_controllers:
        - AcmeDemoBundle:Welcome:index
        - AcmeDemoBundle:Example:list

Usage

Use the web debug toolbar icon to toggle the subrequests wrapper.

Example

Without using parameters.

{% render 'LoremBundle:Generate:ExampleWithoutParameters' %}

without parameters

Using parameters.

{% render 'LoremBundle:Generate:ExampleWithParameters' with { id: 1, hash: '0a7254fc5', displayActive: true } %}

with parameters

Returning an empty response.

{% render 'LoremBundle:Generate:ExampleReturningEmptyResponse' %}

empty response

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky