• 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
Name
Last commit
Last update
bin Loading commit data...
doc Loading commit data...
src/Silex Loading commit data...
tests/Silex/Tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
README.rst Loading commit data...
composer.json Loading commit data...
phpunit.xml.dist Loading commit data...