ee/exceptionjs-bundle

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: 2024-11-17 03:39:03 UTC


README

Bundle catches javascript errors and saves them in server logs

Work in progress, not ready for production usage

Installation

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.

<?php
// app/AppKernel.php

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

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

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

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

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