1. 26 Jul, 2012 1 commit
    • Jakobud's avatar
      In the call() method, the exception wasn't being thrown if only 1 or more than... · 43331818
      Jakobud authored
      In the call() method, the exception wasn't being thrown if only 1 or more than 2 arguments were passed to the method. Fixed conditional statement to only accept exactly 2 arguments.
      In the route() method, URI::current() was evaluating as '/' in all situations. It was never evaluating as the route that you specified when executing the command. This could be part of a larger underlying bug with Symfony's HttpFoundation\Request class. It might be a band-aid fix, but replacing URI::current() with $_SERVER['REQUEST_URI'] allows the method to run the correct route.
      These fixes uncovered what I believe is potentially another bug. When var_dump($route->response()) is run, "NULL" and a newline is appended to the output. It's something to do with var_dump(), as echo $route->response() echo's the correct output without the extra "NULL".
      Signed-off-by: 's avatarJakobud <jake.e.wilson@gmail.com>
      43331818
  2. 24 Jul, 2012 3 commits
  3. 23 Jul, 2012 1 commit
  4. 21 Jul, 2012 1 commit
  5. 20 Jul, 2012 1 commit
  6. 19 Jul, 2012 7 commits
  7. 18 Jul, 2012 6 commits
  8. 17 Jul, 2012 4 commits
  9. 16 Jul, 2012 6 commits
  10. 13 Jul, 2012 1 commit
  11. 12 Jul, 2012 6 commits
  12. 11 Jul, 2012 3 commits