Skip to content

Releases: Troopers/AlertifyBundle

Symfony 5 compat

15 Jul 10:54

Choose a tag to compare

3.1.0

allow autowiring for alertify helper service

Avoid session generation on anonymous users

18 Feb 11:13
78ce548

Choose a tag to compare

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

27 Mar 21:58
5aaf2d7

Choose a tag to compare

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

30 Nov 14:58
24fe2ff

Choose a tag to compare

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

23 Jun 09:03

Choose a tag to compare

Merge pull request #71 from Troopers/bugfix/circular-reference

make the handler agnostic of twig to avoid circular reference

fix toastr translation

03 Nov 21:04

Choose a tag to compare

fix typo

shame on me...

3.0.2

28 Oct 09:55

Choose a tag to compare

	Inject Alertify only if Response has a body, don't have a meta refre…

Fix helper typo

24 Oct 16:35

Choose a tag to compare

3.0.1

fix new alert call

alertify helper service rename

19 Oct 22:58

Choose a tag to compare

Please note that the troopers_alertifybundle.helper.alertifyhelper has been renamed into alertify

Add Kernel Response Event Listener to ease use

19 Oct 22:59

Choose a tag to compare

2.0.3

get back twig extension to continue to render alerts with {{ app.sess…