<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: The fastest way to EventListener in Symfony2</title>
	<atom:link href="http://piotrpasich.com/the-fastest-way-to-eventlistener-in-symfony2-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://piotrpasich.com/the-fastest-way-to-eventlistener-in-symfony2-2/</link>
	<description>PHP, Symfony, Design Patterns</description>
	<lastBuildDate>Fri, 08 Sep 2023 13:45:00 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>By: MortisDux</title>
		<link>http://piotrpasich.com/the-fastest-way-to-eventlistener-in-symfony2-2/#comment-83</link>
		<dc:creator><![CDATA[MortisDux]]></dc:creator>
		<pubDate>Thu, 22 Jan 2015 13:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2510#comment-83</guid>
		<description><![CDATA[hello, thanks for the answer, actually I found it yesterday: you can listen to 2 event with your listener, in the first event that you dispatch, you set up your data, then on kernel.terminate event you check if the data is up and you process it then.
I need that to log stat every time someone access a url.]]></description>
		<content:encoded><![CDATA[<p>hello, thanks for the answer, actually I found it yesterday: you can listen to 2 event with your listener, in the first event that you dispatch, you set up your data, then on kernel.terminate event you check if the data is up and you process it then.<br />
I need that to log stat every time someone access a url.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piotr Pasich</title>
		<link>http://piotrpasich.com/the-fastest-way-to-eventlistener-in-symfony2-2/#comment-82</link>
		<dc:creator><![CDATA[Piotr Pasich]]></dc:creator>
		<pubDate>Thu, 22 Jan 2015 13:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2510#comment-82</guid>
		<description><![CDATA[Hi, 

maybe you can call the listener just a little bit earlier, when the kernel.response event is sent. This makes you able to catch some errors which can occur during saving data for logs. 



Sending emails shouldn&#039;t be a part of the kernel.* stuff I think. Unless you want to receive an email every time when somebody refreshes your site.]]></description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>maybe you can call the listener just a little bit earlier, when the kernel.response event is sent. This makes you able to catch some errors which can occur during saving data for logs. </p>
<p>Sending emails shouldn&#8217;t be a part of the kernel.* stuff I think. Unless you want to receive an email every time when somebody refreshes your site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MortisDux</title>
		<link>http://piotrpasich.com/the-fastest-way-to-eventlistener-in-symfony2-2/#comment-80</link>
		<dc:creator><![CDATA[MortisDux]]></dc:creator>
		<pubDate>Wed, 21 Jan 2015 16:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2510#comment-80</guid>
		<description><![CDATA[Hello, 
Really nice explained! 
What if you want your event to be dispatched after your response has been sent, like kernel.terminate event, to send emails, log stats or whatever you want to do?
Is there a way to do that? Or to use the kernel.terminate event and pass to it some data from your controller? 

Thanks in advance for your help.]]></description>
		<content:encoded><![CDATA[<p>Hello,<br />
Really nice explained!<br />
What if you want your event to be dispatched after your response has been sent, like kernel.terminate event, to send emails, log stats or whatever you want to do?<br />
Is there a way to do that? Or to use the kernel.terminate event and pass to it some data from your controller? </p>
<p>Thanks in advance for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Euzebiusz Hosse</title>
		<link>http://piotrpasich.com/the-fastest-way-to-eventlistener-in-symfony2-2/#comment-74</link>
		<dc:creator><![CDATA[Euzebiusz Hosse]]></dc:creator>
		<pubDate>Fri, 14 Nov 2014 10:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2510#comment-74</guid>
		<description><![CDATA[Hi,

The article is very good. You could improve it by changing diagram, because is a little bit confusing. At first glance I thought that ConcreteClassFoo extends Dispatcher. Maybe sequence diagram will be more readable.

thx,
Rafal]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The article is very good. You could improve it by changing diagram, because is a little bit confusing. At first glance I thought that ConcreteClassFoo extends Dispatcher. Maybe sequence diagram will be more readable.</p>
<p>thx,<br />
Rafal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piotr Pasich</title>
		<link>http://piotrpasich.com/the-fastest-way-to-eventlistener-in-symfony2-2/#comment-37</link>
		<dc:creator><![CDATA[Piotr Pasich]]></dc:creator>
		<pubDate>Fri, 08 Aug 2014 05:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2510#comment-37</guid>
		<description><![CDATA[Piotr, 

this exactly why I made this article. I&#039;ll try to write something similar and push to Symfony&#039;s documentation. I must admit this part i docs can be really confusing for beginners.]]></description>
		<content:encoded><![CDATA[<p>Piotr, </p>
<p>this exactly why I made this article. I&#8217;ll try to write something similar and push to Symfony&#8217;s documentation. I must admit this part i docs can be really confusing for beginners.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piotr Pasich</title>
		<link>http://piotrpasich.com/the-fastest-way-to-eventlistener-in-symfony2-2/#comment-36</link>
		<dc:creator><![CDATA[Piotr Pasich]]></dc:creator>
		<pubDate>Fri, 08 Aug 2014 05:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2510#comment-36</guid>
		<description><![CDATA[Christophe, 

for some reason I totally forgot about this issue. Thanks for the advice.]]></description>
		<content:encoded><![CDATA[<p>Christophe, </p>
<p>for some reason I totally forgot about this issue. Thanks for the advice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piotr Karszny</title>
		<link>http://piotrpasich.com/the-fastest-way-to-eventlistener-in-symfony2-2/#comment-35</link>
		<dc:creator><![CDATA[Piotr Karszny]]></dc:creator>
		<pubDate>Thu, 07 Aug 2014 18:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2510#comment-35</guid>
		<description><![CDATA[This is really good example Peter, that kind of examples should reside in Symfony&#039;s documentation.
BR.]]></description>
		<content:encoded><![CDATA[<p>This is really good example Peter, that kind of examples should reside in Symfony&#8217;s documentation.<br />
BR.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Today on the PHP Community &#8230; August 7, 2014 &#124; PHP Community Magazine</title>
		<link>http://piotrpasich.com/the-fastest-way-to-eventlistener-in-symfony2-2/#comment-34</link>
		<dc:creator><![CDATA[Today on the PHP Community &#8230; August 7, 2014 &#124; PHP Community Magazine]]></dc:creator>
		<pubDate>Thu, 07 Aug 2014 17:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2510#comment-34</guid>
		<description><![CDATA[[&#8230;] The fastest way to EventListener in Symfony2 [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] The fastest way to EventListener in Symfony2 [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe Coevoet</title>
		<link>http://piotrpasich.com/the-fastest-way-to-eventlistener-in-symfony2-2/#comment-33</link>
		<dc:creator><![CDATA[Christophe Coevoet]]></dc:creator>
		<pubDate>Thu, 07 Aug 2014 10:23:10 +0000</pubDate>
		<guid isPermaLink="false">http://piotrpasich.com/?p=2510#comment-33</guid>
		<description><![CDATA[Hi,

There is a small issue in your example, which could create unwanted bugs in your code when you start using advanced features of the EventDispatcher component: the dispatcher allows to stop the propagation to next listeners by calling ``$event-&gt;stopPropagation()``. As you reuse the same event instance for each dispatching, stopping the propagation of the first event will also stop the propagation of the second one (meaning it will never be dispatched to listeners).
To avoid such issue, you should create a new event instance for each dispatching.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>There is a small issue in your example, which could create unwanted bugs in your code when you start using advanced features of the EventDispatcher component: the dispatcher allows to stop the propagation to next listeners by calling &#8220;$event-&gt;stopPropagation()&#8220;. As you reuse the same event instance for each dispatching, stopping the propagation of the first event will also stop the propagation of the second one (meaning it will never be dispatched to listeners).<br />
To avoid such issue, you should create a new event instance for each dispatching.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
