Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 4th, 2014  |  syntax: None  |  size: 0.20 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. my_app_route:
  2.   pattern: /app/route
  3.   defaults: { _controller: "MyAppBundle:Default:index", _format: json }
  4.   requirements: { _method: post|put }
  5.        
  6. $routeParams = $this->get('router')->match('/');