ee / exceptionjs-bundle
Easy to use javascript errors catcher for Symfony 2.x
dev-master
2013-09-02 15:24 UTC
Requires
- php: >=5.3.2
- symfony/framework-bundle: >=2.0
Requires (Dev)
- symfony/monolog-bundle: >=2.1
- symfony/yaml: >=2.1
- twig/twig: *
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' %}