/**
  * @inheritdoc
  */
 public function getArguments(Request $request, $controller)
 {
     return TypeUtilities::getArguments($controller, null, array($this->engine->getViewFactory()->getPage(), $request), $request->attributes->get('_route_params') ?: array());
 }