Skip to content

Commit

Permalink
Patch 2 - fluent interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Jul 25, 2024
1 parent fef969b commit 23825c7
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
"extra": {
"patches": {
"zf1s/zend-controller": [
"patches/zf1s-zend-controller-library-zend-controller-request-http-php.patch",
"patches/zf1s-zend-controller-library-zend-controller-request-abstract-php.patch"
],
"shardj/zf1-future": {
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
--- /dev/null
+++ ../library/Zend/Controller/Request/Http.php
@@ -244,7 +244,7 @@
*
* @param string|array $spec
* @param null|mixed $value
- * @return Zend_Controller_Request_Http
+ * @return $this
*/
public function setQuery($spec, $value = null)
{
@@ -286,7 +286,7 @@
*
* @param string|array $spec
* @param null|mixed $value
- * @return Zend_Controller_Request_Http
+ * @return $this
*/
public function setPost($spec, $value = null)
{
@@ -385,7 +385,7 @@
* $_SERVER['HTTP_X_REWRITE_URL'], or $_SERVER['ORIG_PATH_INFO'] + $_SERVER['QUERY_STRING'].
*
* @param string $requestUri
- * @return Zend_Controller_Request_Http
+ * @return $this
*/
public function setRequestUri($requestUri = null)
{
@@ -468,7 +468,7 @@
* ORIG_SCRIPT_NAME in its determination.
*
* @param mixed $baseUrl
- * @return Zend_Controller_Request_Http
+ * @return $this
*/
public function setBaseUrl($baseUrl = null)
{
@@ -562,7 +562,7 @@
* Set the base path for the URL
*
* @param string|null $basePath
- * @return Zend_Controller_Request_Http
+ * @return $this
*/
public function setBasePath($basePath = null)
{
@@ -611,7 +611,7 @@
* Set the PATH_INFO string
*
* @param string|null $pathInfo
- * @return Zend_Controller_Request_Http
+ * @return $this
*/
public function setPathInfo($pathInfo = null)
{
@@ -671,7 +671,7 @@
* Can be empty array, or contain one or more of '_GET' or '_POST'.
*
* @param array $paramSoures
- * @return Zend_Controller_Request_Http
+ * @return $this
*/
public function setParamSources(array $paramSources = array())
{
@@ -697,7 +697,7 @@
*
* @param mixed $key
* @param mixed $value
- * @return Zend_Controller_Request_Http
+ * @return $this
*/
public function setParam($key, $value)
{
@@ -770,7 +770,7 @@
* using the keys specified in the array.
*
* @param array $params
- * @return Zend_Controller_Request_Http
+ * @return $this
*/
public function setParams(array $params)
{
@@ -788,7 +788,7 @@
*
* @param string $name
* @param string $target
- * @return Zend_Controller_Request_Http
+ * @return $this
*/
public function setAlias($name, $target)
{

0 comments on commit 23825c7

Please sign in to comment.