Merge "Selenium: replace UserLoginPage with BlankPage where possible"
[lhc/web/wiklou.git] / includes / Rest / SimpleHandler.php
index 65bc0f5..85749c6 100644 (file)
@@ -3,7 +3,7 @@
 namespace MediaWiki\Rest;
 
 /**
- * A handler base class which unpacks attributes from the path template and
+ * A handler base class which unpacks parameters from the path template and
  * passes them as formal parameters to run().
  *
  * run() must be declared in the subclass. It cannot be declared as abstract
@@ -13,7 +13,7 @@ namespace MediaWiki\Rest;
  */
 class SimpleHandler extends Handler {
        public function execute() {
-               $params = array_values( $this->getRequest()->getAttributes() );
+               $params = array_values( $this->getRequest()->getPathParams() );
                return $this->run( ...$params );
        }
 }