Releases: Troopers/AlertifyBundle
Releases · Troopers/AlertifyBundle
Symfony 5 compat
3.1.0 allow autowiring for alertify helper service
Avoid session generation on anonymous users
Merge pull request #81 from Troopers/paulandrieux-patch-1 Inject alert only on requests that has a session
Use logical path to be ready to Symfony4 directory structure
Merge pull request #74 from llaville/feature/overriding-templates Fix issue 73 - overriding templates
Support X-Alertify-Trigger custom header to force the alert trigger on kernel.response
Custom header
If you want to force the trigger of an alert, after an ajax call for example, you need to send through the response a custom header : X-Inject-Alertify
. When its value is set to true
, then the alert append at the end of the response content, even if it is empty. Note that the 204
status code (No content) is incompatible with this header, as the 204 response MUST NOT include a message-body.
Example :
return new Response(null, 200, [
'X-Inject-Alertify' => true
]);
Circular reference fix
Merge pull request #71 from Troopers/bugfix/circular-reference make the handler agnostic of twig to avoid circular reference
fix toastr translation
fix typo shame on me...
3.0.2
Inject Alertify only if Response has a body, don't have a meta refre…
Fix helper typo
3.0.1 fix new alert call
alertify helper service rename
Please note that the troopers_alertifybundle.helper.alertifyhelper
has been renamed into alertify
Add Kernel Response Event Listener to ease use
2.0.3 get back twig extension to continue to render alerts with {{ app.sess…