Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joseki/errorpresenter-extension
https://github.com/joseki/errorpresenter-extension
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/joseki/errorpresenter-extension
- Owner: Joseki
- License: mit
- Created: 2014-09-11T16:55:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-13T06:44:29.000Z (over 10 years ago)
- Last Synced: 2024-11-11T15:47:10.681Z (2 months ago)
- Language: PHP
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Joseki/ErrorPresenter-extension
=======================This extension sets dynamically error presenters for Nette Framework applications.
If you have a presenter `Application:Admin:Products` (with an action e.g. `Application:Admin:Products:default`), and your default error presenter name is `DefaultErrorPresenter`, then `ErrorPresenterFactory` will set the closest existing error presenter for given action as follows:1. Application:Admin:Error
2. Application:Error
3. DefaultError (default)Installation
------------The best way to install is using [Composer](http://getcomposer.org/):
```sh
$ composer require joseki/error-presenter-extension:@stable
```Usage
-----```
# config.neonextensions:
ErrorPresenter: Joseki\Application\DI\ErrorPresenterExtensionnette:
application:
# you can use any nette-like presenter name e.g. Application:Error
errorPresenter: 'Error'
```