1. 11 May, 2015 1 commit
  2. 06 May, 2015 1 commit
  3. 05 May, 2015 16 commits
  4. 03 May, 2015 3 commits
  5. 01 May, 2015 4 commits
    • Fabien Potencier's avatar
      minor #1159 Have `Controller::generateRouteName()` always put the method first. (LawnGnome) · 938a3e9c
      Fabien Potencier authored
      This PR was merged into the 1.3 branch.
      
      Discussion
      ----------
      
      Have `Controller::generateRouteName()` always put the method first.
      
      (As requested, this is #1154 rebased against 1.3.)
      
      At present, mounted controllers can get weird route names. For instance, let's say you have this controller definition:
      
          $otherController = $app['controllers_factory'];
          $otherController->get('/{name}', function (Request $request, $name) use ($app) {
            return new Response("Goodbye $name!\n", 200, ['Content-Type' => 'text/plain']);
            });
          $app->mount('/goodbye', $otherController);
      
      The generated route name in this case will be `_goodbyeGET_name`, which technically contains everything, but is ugly.
      
      With this PR, the route name will change to `GET_goodbye_name`, which is considerably easier to parse when debugging.
      
      Commits
      -------
      
      f8d6484c Have `Controller::generateRouteName()` always put the method first.
      938a3e9c
    • Adam Harvey's avatar
      Have `Controller::generateRouteName()` always put the method first. · f8d6484c
      Adam Harvey authored
      At present, mounted controllers can get weird route names. For instance, let's
      say you have this controller definition:
      
          $otherController = $app['controllers_factory'];
          $otherController->get('/{name}', function (Request $request, $name) use ($app) {
            return new Response("Goodbye $name!\n", 200, ['Content-Type' => 'text/plain']);
            });
          $app->mount('/goodbye', $otherController);
      
      The generated route name in this case will be `_goodbyeGET_name`, which
      technically contains everything, but is ugly.
      
      With this PR, the route name will change to `GET_goodbye_name`, which is
      considerably easier to parse when debugging.
      f8d6484c
    • Fabien Potencier's avatar
      Merge branch '1.2' into 1.3 · 909c3464
      Fabien Potencier authored
      * 1.2:
        Fix return of renderView to string
        Add mention of patch method to usage docs
      
      Conflicts:
      	doc/usage.rst
      909c3464
    • Fabien Potencier's avatar
      minor #1158 Fix return of renderView to string (bburnichon) · 67e4a0f6
      Fabien Potencier authored
      This PR was merged into the 1.2 branch.
      
      Discussion
      ----------
      
      Fix return of renderView to string
      
      Commits
      -------
      
      988753a4 Fix return of renderView to string
      67e4a0f6
  6. 30 Apr, 2015 1 commit
  7. 18 Apr, 2015 1 commit
  8. 16 Apr, 2015 1 commit
  9. 12 Apr, 2015 2 commits
  10. 11 Apr, 2015 10 commits