1. 26 Mar, 2011 3 commits
  2. 25 Mar, 2011 5 commits
  3. 24 Mar, 2011 3 commits
    • Igor Wiedler's avatar
      clarify test name in ControllerTest · 971e581d
      Igor Wiedler authored
      971e581d
    • Igor Wiedler's avatar
      f924ac91
    • Igor Wiedler's avatar
      Introduce Controller and ControllerCollection with flushing · 61e3ece6
      Igor Wiedler authored
      The challenge is to allow the RouteCollection to be mutable while making
      it possible to set Route names. We do not want to set the route name
      when creating the Controller (it must be optional, adding it after the
      closure is ugly as hell), and RouteCollection does not allow changing
      route names after they have been added.
      
      The way to solve this is to add a staging area for these routes. This
      staging area is the ControllerCollection. All defined controllers are
      added to this area. Once the flush() method is called on the
      ControllerContainer, the controllers are frozen (no name change
      possible) and added as routes to the RouteContainer.
      
      If you want to make use of the RouteCollection (for example: dumping out
      routes to the console), you must explicitly call flush() on the
      ControllerCollection. There was no good way to do this implicitly. The
      application will also call flush() if you use handle() or run().
      
      TLDR:
      a) We can now set route names
      b) Call getControllerCollection()->flush() before getRouteCollection()
      c) We must document flushing
      d) Bulat is awesome
      61e3ece6
  4. 22 Mar, 2011 7 commits
  5. 21 Mar, 2011 6 commits
  6. 08 Mar, 2011 2 commits
  7. 07 Mar, 2011 6 commits
  8. 06 Mar, 2011 1 commit
  9. 05 Mar, 2011 1 commit
  10. 23 Feb, 2011 3 commits
  11. 21 Feb, 2011 2 commits
  12. 16 Feb, 2011 1 commit