<?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 for Richard Miller</title>
	<atom:link href="http://richardmiller.co.uk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://richardmiller.co.uk</link>
	<description>Its mainly all Symfony2 stuff and dependency injection related rants</description>
	<lastBuildDate>Wed, 22 May 2013 07:37:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Comment on Symfony2: Yet more on that Twig Extension by miller</title>
		<link>http://richardmiller.co.uk/2013/05/22/symfony2-yet-more-on-that-twig-extension/#comment-90061</link>
		<dc:creator>miller</dc:creator>
		<pubDate>Wed, 22 May 2013 07:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://richardmiller.co.uk/?p=1285#comment-90061</guid>
		<description><![CDATA[Thanks, I have changed the last ones. I&#039;m not using isRequired() and defaultValue() in combination anywhere though.]]></description>
		<content:encoded><![CDATA[<p>Thanks, I have changed the last ones. I&#8217;m not using isRequired() and defaultValue() in combination anywhere though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Symfony2: Yet more on that Twig Extension by Stof</title>
		<link>http://richardmiller.co.uk/2013/05/22/symfony2-yet-more-on-that-twig-extension/#comment-90058</link>
		<dc:creator>Stof</dc:creator>
		<pubDate>Wed, 22 May 2013 07:29:19 +0000</pubDate>
		<guid isPermaLink="false">http://richardmiller.co.uk/?p=1285#comment-90058</guid>
		<description><![CDATA[There is a few issues in your Configuration (I&#039;m referring to the final one):

- using [code]defaultValue()[/code] in combination with [code]isRequired()[/code] is useless: as you require the user to define the value, the default value can never be used
- you don&#039;t set [code]addDefaultsIfNotSet()[/code] on the templates node, so it will not be set if the user omits it in the config file (thus throwing a notice in the extension)
- you don&#039;t set [code]isRequired()[/code] on the templates node, so each template is required only when the user explicitly defined the templates node

And regarding your first configuration using a prototyped array node, it is not expecting an associative array but an indexed array (as [code]useAttributeAsKey()[/code] is not called) so you are loosing the key.

All this illustrate perfectly that DI extensions are also good candidates for unit tests. See https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Tests/DependencyInjection/FOSUserExtensionTest.php for instance.]]></description>
		<content:encoded><![CDATA[<p>There is a few issues in your Configuration (I&#8217;m referring to the final one):</p>
<p>- using
<pre class="brush: plain; title: ; notranslate">defaultValue()</pre>
<p> in combination with
<pre class="brush: plain; title: ; notranslate">isRequired()</pre>
<p> is useless: as you require the user to define the value, the default value can never be used<br />
- you don&#8217;t set
<pre class="brush: plain; title: ; notranslate">addDefaultsIfNotSet()</pre>
<p> on the templates node, so it will not be set if the user omits it in the config file (thus throwing a notice in the extension)<br />
- you don&#8217;t set
<pre class="brush: plain; title: ; notranslate">isRequired()</pre>
<p> on the templates node, so each template is required only when the user explicitly defined the templates node</p>
<p>And regarding your first configuration using a prototyped array node, it is not expecting an associative array but an indexed array (as
<pre class="brush: plain; title: ; notranslate">useAttributeAsKey()</pre>
<p> is not called) so you are loosing the key.</p>
<p>All this illustrate perfectly that DI extensions are also good candidates for unit tests. See <a href="https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Tests/DependencyInjection/FOSUserExtensionTest.php" rel="nofollow">https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Tests/DependencyInjection/FOSUserExtensionTest.php</a> for instance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Symfony2: More on Twig Ajax Templates by miller</title>
		<link>http://richardmiller.co.uk/2013/02/27/symfony2-more-twig-ajax-templates/#comment-90055</link>
		<dc:creator>miller</dc:creator>
		<pubDate>Wed, 22 May 2013 07:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://richardmiller.co.uk/?p=1252#comment-90055</guid>
		<description><![CDATA[Yep, I have expanded on it now here - /http://richardmiller.co.uk/2013/05/22/symfony2-yet-more-on-that-twig-extension/]]></description>
		<content:encoded><![CDATA[<p>Yep, I have expanded on it now here &#8211; /http://richardmiller.co.uk/2013/05/22/symfony2-yet-more-on-that-twig-extension/</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Symfony2: More on Twig Ajax Templates by Johnny</title>
		<link>http://richardmiller.co.uk/2013/02/27/symfony2-more-twig-ajax-templates/#comment-87211</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Thu, 09 May 2013 22:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://richardmiller.co.uk/?p=1252#comment-87211</guid>
		<description><![CDATA[Do you plan on expanding your twig extension example?]]></description>
		<content:encoded><![CDATA[<p>Do you plan on expanding your twig extension example?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Symfony2: Using Validation Groups by ghaliano</title>
		<link>http://richardmiller.co.uk/2012/06/15/symfony2-using-validation-groups/#comment-86373</link>
		<dc:creator>ghaliano</dc:creator>
		<pubDate>Sun, 05 May 2013 07:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://richardmiller.co.uk/?p=1006#comment-86373</guid>
		<description><![CDATA[@see https://github.com/symfony/symfony/issues/3622]]></description>
		<content:encoded><![CDATA[<p>@see <a href="https://github.com/symfony/symfony/issues/3622" rel="nofollow">https://github.com/symfony/symfony/issues/3622</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Symfony2: Using Validation Groups by ghaliano</title>
		<link>http://richardmiller.co.uk/2012/06/15/symfony2-using-validation-groups/#comment-86372</link>
		<dc:creator>ghaliano</dc:creator>
		<pubDate>Sun, 05 May 2013 07:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://richardmiller.co.uk/?p=1006#comment-86372</guid>
		<description><![CDATA[Validation group don&#039;t work with Valid constrains :(

this is my big actuel probleme]]></description>
		<content:encoded><![CDATA[<p>Validation group don&#8217;t work with Valid constrains <img src='http://richardmiller.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>this is my big actuel probleme</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IE Conditional Comments and XSL by sky</title>
		<link>http://richardmiller.co.uk/2011/02/09/ie-conditional-comments-and-xsl/#comment-85969</link>
		<dc:creator>sky</dc:creator>
		<pubDate>Fri, 03 May 2013 03:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://miller.limethinking.co.uk/?p=39#comment-85969</guid>
		<description><![CDATA[It is truly a nice and helpful piece of info. I am glad that you just 
shared this helpful information with us. Please stay us informed like this.
Thanks for sharing.]]></description>
		<content:encoded><![CDATA[<p>It is truly a nice and helpful piece of info. I am glad that you just<br />
shared this helpful information with us. Please stay us informed like this.<br />
Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Symfony2: Writing a Dependency Injection Extension Configuration by narowerach.webnode.com</title>
		<link>http://richardmiller.co.uk/2011/06/01/symfony2-writing-a-dependency-injection-extension-configuration/#comment-85862</link>
		<dc:creator>narowerach.webnode.com</dc:creator>
		<pubDate>Thu, 02 May 2013 21:16:37 +0000</pubDate>
		<guid isPermaLink="false">http://miller.limethinking.co.uk/?p=319#comment-85862</guid>
		<description><![CDATA[you have brought up a very  fantastic  points , thanks  for the post.]]></description>
		<content:encoded><![CDATA[<p>you have brought up a very  fantastic  points , thanks  for the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Symfony2: improving elasticsearch results by miller</title>
		<link>http://richardmiller.co.uk/2011/11/18/symfony2-improving-elasticsearch-results/#comment-80589</link>
		<dc:creator>miller</dc:creator>
		<pubDate>Thu, 11 Apr 2013 07:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://miller.limethinking.co.uk/?p=795#comment-80589</guid>
		<description><![CDATA[If you specify that you want highlights in the query (Elastica_Query::setHighlight($args)) then you can access them by getting just the search results rather than the transformed results or by using the findHybrid method of a finder service to get back the search results and the transformed entities.

There is also an interface (https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/Transformer/HighlightableModelInterface.php) you can have your entities implement the highlights will then get added to the entity automatically.]]></description>
		<content:encoded><![CDATA[<p>If you specify that you want highlights in the query (Elastica_Query::setHighlight($args)) then you can access them by getting just the search results rather than the transformed results or by using the findHybrid method of a finder service to get back the search results and the transformed entities.</p>
<p>There is also an interface (<a href="https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/Transformer/HighlightableModelInterface.php" rel="nofollow">https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/Transformer/HighlightableModelInterface.php</a>) you can have your entities implement the highlights will then get added to the entity automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Symfony2: More on Twig Ajax Templates by miller</title>
		<link>http://richardmiller.co.uk/2013/02/27/symfony2-more-twig-ajax-templates/#comment-80588</link>
		<dc:creator>miller</dc:creator>
		<pubDate>Thu, 11 Apr 2013 07:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://richardmiller.co.uk/?p=1252#comment-80588</guid>
		<description><![CDATA[Hi, this sounds good, I am going to write a follow up post detailing making more changes to the Twig template as some people have requested. If you could share your example somewhere then I can link to that as a further example. 

The spam filter normally works pretty but a few have sneaked through in the last week, I&#039;ve deleted them now.]]></description>
		<content:encoded><![CDATA[<p>Hi, this sounds good, I am going to write a follow up post detailing making more changes to the Twig template as some people have requested. If you could share your example somewhere then I can link to that as a further example. </p>
<p>The spam filter normally works pretty but a few have sneaked through in the last week, I&#8217;ve deleted them now.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
