<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 08:44:41 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Gonzalo Ayuso: Scaling Silex applications (part II). Using RouteCollection]]></title>
      <guid>http://www.phpdeveloper.org/news/19277</guid>
      <link>http://www.phpdeveloper.org/news/19277</link>
      <description><![CDATA[<p>
<i>Gonzalo Ayuso</i> has <a href="http://gonzalo123.com/2013/03/04/scaling-silex-applications-part-ii-using-routecollection/">posted a second part</a> of his look at scaling Silex (here's <a href="http://gonzalo123.com/2013/02/11/scaling-silex-applications/">part one</a>). In this new article he shows how to use the RouteCollection functionality instead of defining the routes in the DI configuration.
</p>
<blockquote>
In the post <a href="http://gonzalo123.com/2013/02/11/scaling-silex-applications/">Scaling Silex applications</a> I wanted to organize a one Silex application. In one <a href="http://gonzalo123.com/2013/02/11/scaling-silex-applications/#comment-3834">comment</a> Igor Wiedler recommended us to use RouteCollections instead of define the routes with a Symfony's Dependency Injection Container. Because of that I started to hack a little bit about it and here I show you my outcomes:
</blockquote>
<p>
He includes example code for creating the application, setting up the main "routes.yml" file with some defaults and two other files for routes in other parts of the site - "api" and "blog". Then he makes the controllers related to these three sections with basic actions catching each of the routes. The source for the entire thing is <a href="https://github.com/gonzalo123/silexRouteCollection">over on github</a>.
</p>]]></description>
      <pubDate>Wed, 06 Mar 2013 09:21:31 -0600</pubDate>
    </item>
  </channel>
</rss>
