Skip to content

Commit d3a9668

Browse files
author
Ash Smith
committed
865: add getParams/setParam to RequestInterface
As per issue #865, the getParams and setParams method is missing from the RequestInterface. Which are methods relied upon heavily in app/code/Magento/*
1 parent 8352a97 commit d3a9668

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/internal/Magento/Framework/App/RequestInterface.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,22 @@ public function setActionName($name);
4848
*/
4949
public function getParam($key, $defaultValue = null);
5050

51+
/**
52+
* Set params from key value array
53+
*
54+
* @param array $params
55+
* @return $this
56+
*/
57+
public function setParams(array $params);
58+
59+
/**
60+
* Retrieve all params as array
61+
*
62+
* @return array
63+
*/
64+
public function getParams();
65+
66+
5167
/**
5268
* Retrieve cookie value
5369
*

0 commit comments

Comments
 (0)