ghislainf / zf2-whoops Goto Github PK
View Code? Open in Web Editor NEWPHP whoops error on ZF2 framework
Home Page: https://github.com/filp/whoops
PHP whoops error on ZF2 framework
Home Page: https://github.com/filp/whoops
Hi, please start tagging this module.
Thanks to this using the composer is stressless.
This code hasn't changed in quite a while but a release hasn't been tagged since 2013; it would be nice if we had a released version we could pin in composer.json instead of relying on dev-master. Is there any reason we can't do this? If there are known issues holding up a release, I'd be willing to contribute some time to help resolve them.
After updating this module today, it refused to work - I'm getting following error:
Module (Zf2Whoops) could not be initialized.
Looks like it happens because autoloader information was removed from composer.json file. What was the reason behind it? And how to make it work again? :)
It would be really nice to have logger support.
In production errors are not shown to users, but they still should be logged. It would be really nice to log whoops output and of course exception data using Zend\Log\Logger
Logger could be passed in as a dependency (via setLogger method).
I don't want to load this module on production so...
https://github.com/ghislainf/zf2-whoops/blob/master/composer.json#L30
Dependencies will force a full framework download. It'd be necessary to limit it to those components you need.
Thanks!
Hi, how to handle checked exception, like BjyAuthorize\Exception\UnAuthorizedException?
Hi,
Using in composer.json requirement:
"zendframework/zendframework": "2.*"
Causes to install lot of unnecessary libs but only that your module need are defined in your Module.php
use Zend\EventManager\EventInterface;
use Zend\ModuleManager\Feature\BootstrapListenerInterface;
use Zend\Console\Request as ConsoleRequest;
use Zend\Stdlib\ResponseInterface as Response;
use Zend\Mvc\Application;
use Zend\Mvc\MvcEvent;
So I think, that this configuration will fit enough, and do not clutter someone else configuration.
"zendframework/zend-mvc": "2.*",
"zendframework/zend-modulemanager": "2.*",
"zendframework/zend-loader": "2.*",
"zendframework/zend-config": "2.*",
Is there a way to not display environment variables?
Hey there,
yesterday i tried to use this module with PHP7.
Unfortunately it doesn't work that well. The TypeHint for the expected \Exceptions don't work for the raised new \Error types.
Are you fixing this already? If not, maybe i can look into it.
Greets :)
As discussed on RWOverdijk/AssetManager#90, the current ZF2Whoops module implementation also catches 404 errors with no exception.
That makes the module unusable with AssetManager.
Possible fixes:
composer.json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.