<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eat my monkeydust &#187; configuration</title>
	<atom:link href="http://eatmymonkeydust.com/category/symfony/configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://eatmymonkeydust.com</link>
	<description>Life, PHP and Symfony - straight from the monkey's mouth</description>
	<lastBuildDate>Fri, 07 Oct 2011 14:00:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP Session settings ignored?</title>
		<link>http://eatmymonkeydust.com/2009/10/php-session-settings-ignored/</link>
		<comments>http://eatmymonkeydust.com/2009/10/php-session-settings-ignored/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 16:43:37 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://eatmymonkeydust.com/?p=229</guid>
		<description><![CDATA[I just read an extremely interesting post which explains an unwanted side effect of garbage collection by some Debian based systems. This cleanup process causes (maybe amongst other things) sessions to be cleared every 24 minutes, regardless of any ini setting you have set after the php.ini file is parsed (for example using ini_set() &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>I just read an <a href="http://elephpants.blog.linpro.no/2009/10/02/unwanted-end-of-sessions/">extremely interesting post</a> which explains an unwanted side effect of garbage collection by some Debian based systems. This cleanup process causes (maybe amongst other things) sessions to be cleared every 24 minutes, regardless of any ini setting you have set after the php.ini file is parsed (for example using ini_set() &#8211; if you are a symfony user, this is done during initialisation based on a setting in your factories.yml file).</p>
<p>Check it out: <a href="http://elephpants.blog.linpro.no/2009/10/02/unwanted-end-of-sessions/">http://elephpants.blog.linpro.no/2009/10/02/unwanted-end-of-sessions/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://eatmymonkeydust.com/2009/10/php-session-settings-ignored/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Yaml (yml) file gotchas &#8211; trying to set default culture to &#8220;no&#8221;</title>
		<link>http://eatmymonkeydust.com/2008/05/yaml-yml-file-gotchas-trying-to-set-default-culture-to-no/</link>
		<comments>http://eatmymonkeydust.com/2008/05/yaml-yml-file-gotchas-trying-to-set-default-culture-to-no/#comments</comments>
		<pubDate>Fri, 09 May 2008 17:03:49 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://eatmymonkeydust.com/?p=24</guid>
		<description><![CDATA[The yaml file parser will attempt to parse all the values, rather than taking them as they are &#8211; which in most cases is a good thing, however you must remember to use quotes when the intended output is a string, and the parser may interpret the value otherwise: default_culture: en // No problem, en [...]]]></description>
			<content:encoded><![CDATA[<p>The yaml file parser will attempt to parse all the values, rather than taking them as they are &#8211; which in most cases is a good thing, however you must remember to use quotes when the intended output is a string, and the parser may interpret the value otherwise:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">default_culture<span style="color: #339933;">:</span>   en
<span style="color: #666666; font-style: italic;">// No problem, en is treated as a string </span>
<span style="color: #666666; font-style: italic;">// and /en/ is automatically added to links</span>
&nbsp;
default_culture<span style="color: #339933;">:</span> no
<span style="color: #666666; font-style: italic;">// Oops, no is translated by Symfony </span>
<span style="color: #666666; font-style: italic;">// the same way as false, 0 or off, giving it a boolean value!</span>
&nbsp;
default_culture<span style="color: #339933;">:</span> <span style="color: #0000ff;">'no'</span>
<span style="color: #666666; font-style: italic;">// That's better, now you will have the intended results.</span></pre></div></div>

<p>The same applies to any yml files that you may have &#8220;keywords&#8221; in, so try to always use quotes round everything that is not boolean, integer, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://eatmymonkeydust.com/2008/05/yaml-yml-file-gotchas-trying-to-set-default-culture-to-no/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Help! Symfony is ignoring my settings in app.yml</title>
		<link>http://eatmymonkeydust.com/2008/04/help-symfony-is-ignoring-my-settings-in-appyml/</link>
		<comments>http://eatmymonkeydust.com/2008/04/help-symfony-is-ignoring-my-settings-in-appyml/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 08:47:35 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[app.yml]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[ignore]]></category>
		<category><![CDATA[settings]]></category>

		<guid isPermaLink="false">http://eatmymonkeydust.com/?p=11</guid>
		<description><![CDATA[Something that just cropped up today&#8230; As your site grows, and you add more and more config to the app.yml file, be very careful not to re-declare the same named element. Symfony will not warn you, and there will be no errors &#8211; but the second (lower) instance will simple overwrite the first! For example, [...]]]></description>
			<content:encoded><![CDATA[<h3>Something that just cropped up today&#8230;</h3>
<p>As your site grows, and you add more and more config to the app.yml file, be very careful not to re-declare the same named element. Symfony will not warn you, and there will be no errors &#8211; but the second (lower) instance will simple overwrite the first!</p>
<p>For example, if you have forgotten that you already have an element called profile hiding near the top of the file, and you add another one called profile at the bottom, with all your profile page settings &#8211; the lower one will destroy the one higher in the file.</p>
<p>This can be hard to spot if you have been meticulously coding and added a default value to all your sfConfig::get() calls because chances are when you are developing the site, all your defaults will be the same as the ones you have specified in app.yml.</p>
<p>The problem will become apparent when an end user tries to change the configuration and the change is ignored, because Symfony is simply using the default value rather than the one the user thinks they are setting.</p>
<p>Careful out there kids!</p>
]]></content:encoded>
			<wfw:commentRss>http://eatmymonkeydust.com/2008/04/help-symfony-is-ignoring-my-settings-in-appyml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

