Easy to use javascript errors catcher for Symfony 2.x

dev-master 2013-09-02 15:24 UTC

This package is not auto-updated.

Last update: 2023-06-03 21:01:43 UTC


Bundle catches javascript errors and saves them in server logs

Work in progress, not ready for production usage


Download EEExceptionJSBundle using composer

Add EEExceptionJSBundle in your composer.json:

    "require": {
        "ee/exceptionjs-bundle": "dev-master"

Tell composer to download the bundle by running the command:

$ php composer.phar update ee/exceptionjs-bundle

Composer will install the bundle to your project's vendor/ee directory.

// app/AppKernel.php

public function registerBundles()
    $bundles = array(
        // ...
        new EE\ExceptionJSBundle\EEExceptionJSBundle(),

Add at the beginning of app/config/routing.yml

        resource: "@EEExceptionJSBundle/Resources/config/routing.yml"
        prefix:   /

In your base layout, as a first script on page, include once

    {% include 'EEExceptionJSBundle::catcher.html.twig' %}