ftrrtf / ftrrtfrollbarbundle Goto Github PK
View Code? Open in Web Editor NEW[Deprecated] Symfony2 Bundle for rollbar.com
License: MIT License
[Deprecated] Symfony2 Bundle for rollbar.com
License: MIT License
When trying to install rollbar-bundle tries to resolve its dependecy on rollbar-notifier using ^1.0
version.
This constraint makes composer try to resolve 1.01, 1.02, 1.03
and each one of them requires symfony/options-resolver >=2.1,<3.0
while on rollbar-notifier:dev-master the constraint is correct meaning symfony/options-resolver" : "~2.6|~3.0"
.
Could you release rollbar-notifier with updated constraint?
We found that bundle installation under Symfony3.x crashes the app.
Error message:
PHP Warning: Declaration of Ftrrtf\RollbarBundle\Rollbar\Environment::setDefaultOptions(Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver) should be compatible with Ftrrtf\Rollbar\Environment::setDefaultOptions(Symfony\Component\OptionsResolver\Options $resolver) in /ftrrtf/rollbar-bundle/Rollbar/Environment.php on line 13
We did not have time to investigate it any further so sorry, but this is all we got.
Attempted to load class "Twig_Function_Method" from the global namespace.
File "/vendor/ftrrtf/rollbar-bundle/Twig/RollbarExtension.php" line 47
becose: https://github.com/ftrrtf/FtrrtfRollbarBundle/blob/master/composer.json#L23
Is there a way to manually report an exception?
Like:
try {
// do something that may thrown an exception
} catch (Exception $e) {
$this->rollbar->reportException($e);
$this->session->getFlashBag()->add('error','Message to user');
}
Currently I can't use vendor/ftrrtf/rollbar-notifier/src/Ftrrtf/Rollbar/Notifier.php
because it's not registered as a valid Symfony service. Any workaround?
Are you planning to use semantic versioning and to release beta/stables soon?
Please, update Your code to avoid such notifications.
v0.15.2
Thank You
It's a rough plan of what to do for the v1.0.0 release.
If you have some suggestions or comments โ you are welcome!
It would be great to provide such functionality. I.e. in my case rollbar notifies about expired/broken api tokens (error 401 - \Component\Security\Core\Exception\InsufficientAuthenticationException).
I think this might be read from config, i.e. like this:
exclude:
'Symfony\Component\Security\Core\Exception\InsufficientAuthenticationException': true
'Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException': true
'AppBundle\Exception\MustChangePasswordException': true
Now RollbarListener catches all exceptions. I use the Monolog\Handler\GroupHandler for recording Rollbar and local files. Now will be recorded to a file only logs the error but did not get there because caught only RollbarListener.
What can be done?
RollbarListener::__construct (... Ftrrtf\Rollbar\ErrorHandler
...) https://github.com/ftrrtf/FtrrtfRollbarBundle/blob/master/EventListener/RollbarListener.php#L62
PR #12
Is there any reason why twig extension is commented out from services?
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.