<?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: Run Symfony Tasks from Controller	</title>
	<atom:link href="https://nerdpress.org/2010/01/29/running-symfony-tasks-from-controller/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdpress.org/2010/01/29/running-symfony-tasks-from-controller/</link>
	<description>...dev, tech problems and solutions.</description>
	<lastBuildDate>Sat, 06 Feb 2010 09:58:31 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: denderello		</title>
		<link>https://nerdpress.org/2010/01/29/running-symfony-tasks-from-controller/#comment-104</link>

		<dc:creator><![CDATA[denderello]]></dc:creator>
		<pubDate>Sat, 06 Feb 2010 09:58:31 +0000</pubDate>
		<guid isPermaLink="false">https://nerdpress.org/?p=780#comment-104</guid>

					<description><![CDATA[Ich finde problematisch, dass man sfContext::getInstance() aufruft (Gründe dafür gibt es hier: http://webmozarts.com/2009/07/01/why-sfcontextgetinstance-is-bad/).

Außerdem würde ich solche Aufrufe niemals direkt über den Controller oder das Model machen, sondern das ganze über Events lösen. Dann bekommst du den EventDispatcher auch noch kostenlos mit dazu und musst das dir die Instanz nicht mehr selbst holen. :)
Und der Aufruf des Task ist dann total entkoppelt und der Controller oder das Model kümmern sich um Ihre Aufgaben und rufen nicht Code auf, mit dem sie gar nichts zu tun hat.]]></description>
			<content:encoded><![CDATA[<p>Ich finde problematisch, dass man sfContext::getInstance() aufruft (Gründe dafür gibt es hier: <a href="http://webmozarts.com/2009/07/01/why-sfcontextgetinstance-is-bad/" rel="nofollow ugc">http://webmozarts.com/2009/07/01/why-sfcontextgetinstance-is-bad/</a>).</p>
<p>Außerdem würde ich solche Aufrufe niemals direkt über den Controller oder das Model machen, sondern das ganze über Events lösen. Dann bekommst du den EventDispatcher auch noch kostenlos mit dazu und musst das dir die Instanz nicht mehr selbst holen. :)<br />
Und der Aufruf des Task ist dann total entkoppelt und der Controller oder das Model kümmern sich um Ihre Aufgaben und rufen nicht Code auf, mit dem sie gar nichts zu tun hat.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
