<?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>Blog.hio.fr &#187; php</title>
	<atom:link href="http://blog.hio.fr/category/dev/php/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hio.fr</link>
	<description>Success is the ability to go from one failure to another with no loss of enthusiasm.</description>
	<lastBuildDate>Wed, 16 May 2012 15:50:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Design pattern decorator</title>
		<link>http://blog.hio.fr/2012/05/13/design-pattern-decorator.html</link>
		<comments>http://blog.hio.fr/2012/05/13/design-pattern-decorator.html#comments</comments>
		<pubDate>Sun, 13 May 2012 09:14:05 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[decorator]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1046</guid>
		<description><![CDATA[&#60;?php &#160; interface IDecorator &#123; public function decorate&#40;&#41;; &#125; &#160; abstract class Decorator implements IDecorator &#123; protected $_toDecorate; &#160; public function __construct&#40;IDecorator $toDecorate&#41; &#123; $this-&#62;_toDecorate = $toDecorate; &#125; &#125; &#160; class Html implements IDecorator &#123; protected $_str; &#160; public function &#8230; <a href="http://blog.hio.fr/2012/05/13/design-pattern-decorator.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/05/13/design-pattern-decorator.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symfony2 preExecute Controller</title>
		<link>http://blog.hio.fr/2012/04/17/symfony2-preexecute-controller.html</link>
		<comments>http://blog.hio.fr/2012/04/17/symfony2-preexecute-controller.html#comments</comments>
		<pubDate>Tue, 17 Apr 2012 16:11:34 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony2]]></category>
		<category><![CDATA[listener]]></category>
		<category><![CDATA[preExecute]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1032</guid>
		<description><![CDATA[Listener/PublisherListener.php &#60;?php namespace Main\PublisherBundle\Listener; &#160; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\Event\FilterControllerEvent; &#160; class PublisherListener &#123; &#160; public function onCoreController&#40;FilterControllerEvent $event&#41; &#123; if&#40;HttpKernelInterface::MASTER_REQUEST == $event-&#62;getRequestType&#40;&#41;&#41; &#123; $_controller = $event-&#62;getController&#40;&#41;; if&#40;isset&#40;$_controller&#91;0&#93;&#41;&#41; &#123; $controller = $_controller&#91;0&#93;; if&#40;method_exists&#40;$controller, 'preExecute'&#41;&#41; &#123; $controller-&#62;preExecute&#40;&#41;; &#125; &#125; &#125; &#8230; <a href="http://blog.hio.fr/2012/04/17/symfony2-preexecute-controller.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/04/17/symfony2-preexecute-controller.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>symfony2 twig i18n date</title>
		<link>http://blog.hio.fr/2012/04/17/symfony2-twig-i18n-date.html</link>
		<comments>http://blog.hio.fr/2012/04/17/symfony2-twig-i18n-date.html#comments</comments>
		<pubDate>Tue, 17 Apr 2012 10:25:43 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony2]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[twig]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1029</guid>
		<description><![CDATA[sudo aptitude install php5-intl app/config/config.yml services: twig.extension.intl: class: Twig_Extensions_Extension_Intl tags: - { name: twig.extension } In twig template {{ game.created_at&#124; localizeddate('full', 'none') }}]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/04/17/symfony2-twig-i18n-date.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>twig macro link title translation</title>
		<link>http://blog.hio.fr/2012/04/13/twig-macro-link-title-translation.html</link>
		<comments>http://blog.hio.fr/2012/04/13/twig-macro-link-title-translation.html#comments</comments>
		<pubDate>Fri, 13 Apr 2012 13:31:11 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony2]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[twig]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1018</guid>
		<description><![CDATA[{% macro link(route, title, name, attr) %} {% spaceless %} &#60;a href=&#34;{{ path(route) }}&#34; title=&#34;{{ title&#124;trans({}, 'link') }}&#34;{% for attrname,attrvalue in attr %} {{attrname}}=&#34;{{attrvalue}}&#34;{% endfor %}&#62;{{ name&#124;trans({}, 'link') }}&#60;/a&#62; {% endspaceless %} {% endmacro %} &#160; &#60;!-- Usage {{ macro.link('route_name', &#8230; <a href="http://blog.hio.fr/2012/04/13/twig-macro-link-title-translation.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/04/13/twig-macro-link-title-translation.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symfony2 service + manager</title>
		<link>http://blog.hio.fr/2012/03/30/symfony2-service-manager.html</link>
		<comments>http://blog.hio.fr/2012/03/30/symfony2-service-manager.html#comments</comments>
		<pubDate>Fri, 30 Mar 2012 12:05:13 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony2]]></category>
		<category><![CDATA[manager]]></category>
		<category><![CDATA[service]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=999</guid>
		<description><![CDATA[Resources/config/services.xml &#60;?xml version=&#34;1.0&#34; ?&#62; &#160; &#60;container xmlns=&#34;http://symfony.com/schema/dic/services&#34; xmlns:xsi=&#34;http://www.w3.org/2001/XMLSchema-instance&#34; xsi:schemaLocation=&#34;http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd&#34;&#62; &#160; &#60;parameters&#62; &#60;parameter key=&#34;main_publisher.game.manager.class&#34;&#62;Main\PublisherBundle\Manager\GameManager&#60;/parameter&#62; &#60;/parameters&#62; &#160; &#60;services&#62; &#60;service id=&#34;main_publisher.game.manager&#34; class=&#34;%main_publisher.game.manager.class%&#34;&#62; &#60;argument type=&#34;service&#34; id=&#34;doctrine.orm.entity_manager&#34; /&#62; &#60;/service&#62; &#60;/services&#62; &#60;/container&#62; Manager/BaseManager.php &#60;?php namespace Main\PublisherBundle\Manager; &#160; class BaseManager &#123; &#160; protected function persistAndFlush&#40;$entity&#41; &#123; &#8230; <a href="http://blog.hio.fr/2012/03/30/symfony2-service-manager.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/03/30/symfony2-service-manager.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design pattern registry</title>
		<link>http://blog.hio.fr/2012/02/20/design-pattern-registry.html</link>
		<comments>http://blog.hio.fr/2012/02/20/design-pattern-registry.html#comments</comments>
		<pubDate>Mon, 20 Feb 2012 16:12:42 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[registry]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=975</guid>
		<description><![CDATA[&#60;?php class Registry &#123; private static $_registry = array&#40;&#41;; &#160; public static function add&#40;$name, $value&#41; &#123; self::$_registry&#91;$name&#93; = $value; &#125; &#160; public static function get&#40;$name&#41; &#123; if&#40;!self::exists&#40;$name&#41;&#41; throw new Exception&#40;sprintf&#40;'&#60;%s&#62; was not registered', $name&#41;&#41;; &#160; return self::$_registry&#91;$name&#93;; &#125; &#160; public &#8230; <a href="http://blog.hio.fr/2012/02/20/design-pattern-registry.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/02/20/design-pattern-registry.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design pattern strategy</title>
		<link>http://blog.hio.fr/2012/02/19/design-pattern-strategy.html</link>
		<comments>http://blog.hio.fr/2012/02/19/design-pattern-strategy.html#comments</comments>
		<pubDate>Sun, 19 Feb 2012 19:53:44 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[strategy]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=969</guid>
		<description><![CDATA[&#60;?php interface IFormater &#123; public function format&#40;$message, $level&#41;; &#125; &#160; class File_Xml implements IFormater &#123; public function format&#40;$message, $level&#41; &#123; $date = date&#40;'Y-m-d H:i:s'&#41;; $xml = '&#60;message&#62;'.PHP_EOL; $xml .= ' &#60;date&#62;'.$date.'&#60;/date&#62;'.PHP_EOL; $xml .= ' &#60;level&#62;'.$level.'&#60;/level&#62;'.PHP_EOL; $xml .= ' &#60;desc&#62;'.$message.'&#60;/desc&#62;'.PHP_EOL; $xml &#8230; <a href="http://blog.hio.fr/2012/02/19/design-pattern-strategy.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/02/19/design-pattern-strategy.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design pattern observer</title>
		<link>http://blog.hio.fr/2012/02/19/design-pattern-observer.html</link>
		<comments>http://blog.hio.fr/2012/02/19/design-pattern-observer.html#comments</comments>
		<pubDate>Sun, 19 Feb 2012 19:50:56 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[oberver]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=967</guid>
		<description><![CDATA[&#60;?php interface IObserver &#123; public function onNew&#40;$sender, $arguments&#41;; public function onChange&#40;$sender, $arguments&#41;; &#125; &#160; interface IObservable &#123; public function addObserver&#40;IObserver $observer&#41;; &#125; &#160; class Users implements IObservable &#123; private $_observers = array&#40;&#41;; &#160; public function addObserver&#40;IObserver $observer&#41; &#123; $this-&#62;_observers&#91;&#93; = &#8230; <a href="http://blog.hio.fr/2012/02/19/design-pattern-observer.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/02/19/design-pattern-observer.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design pattern singleton</title>
		<link>http://blog.hio.fr/2012/02/19/design-pattern-singleton.html</link>
		<comments>http://blog.hio.fr/2012/02/19/design-pattern-singleton.html#comments</comments>
		<pubDate>Sun, 19 Feb 2012 19:46:31 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[singleton]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=962</guid>
		<description><![CDATA[&#60;?php class Logger &#123; static $file = null; &#160; private function __construct&#40;&#41; &#123;&#125; &#160; public static function get&#40;&#41; &#123; if&#40;is_null&#40;self::$file&#41;&#41; self::$file = fopen&#40;date&#40;'Y-m-d'&#41;.'.log', 'a+'&#41;; return self::$file; &#125; &#125; &#160; var_dump&#40;Logger::get&#40;&#41;, Logger::get&#40;&#41;&#41;;]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/02/19/design-pattern-singleton.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design pattern chain of command</title>
		<link>http://blog.hio.fr/2012/02/19/design-pattern-chain-of-command.html</link>
		<comments>http://blog.hio.fr/2012/02/19/design-pattern-chain-of-command.html#comments</comments>
		<pubDate>Sun, 19 Feb 2012 19:43:08 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[chain-of-command]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=959</guid>
		<description><![CDATA[&#60;?php interface ICommand &#123; public function onCommand&#40;$name, $arguments&#41;; &#125; &#160; class CommandChain &#123; private $_commands = array&#40;&#41;; &#160; public function addCommand&#40;$command&#41; &#123; $this-&#62;_commands&#91;&#93; = $command; &#125; &#160; public function runCommand&#40;$name, $arguments&#41; &#123; foreach&#40;$this-&#62;_commands as $command&#41; &#123; if&#40;$command-&#62;onCommand&#40;$name, $arguments&#41;&#41; return; &#125; &#8230; <a href="http://blog.hio.fr/2012/02/19/design-pattern-chain-of-command.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/02/19/design-pattern-chain-of-command.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

