Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 15d766f

Browse files
committed
Revert "Removed already flagged deprecated methods from AbstractActionController"
This reverts commit 94cc178.
1 parent 07445a6 commit 15d766f

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

src/Controller/AbstractActionController.php

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function notFoundAction()
5252
if ($response instanceof HttpResponse) {
5353
return $this->createHttpNotFoundModel($response);
5454
}
55-
return $this->createConsoleNotFoundModel();
55+
return $this->createConsoleNotFoundModel($response);
5656
}
5757

5858
/**
@@ -87,4 +87,26 @@ public function onDispatch(MvcEvent $e)
8787

8888
return $actionResponse;
8989
}
90+
91+
/**
92+
* @deprecated please use the {@see \Zend\Mvc\Controller\Plugin\CreateHttpNotFoundModel} plugin instead: this
93+
* method will be removed in release 2.5 or later.
94+
*
95+
* {@inheritDoc}
96+
*/
97+
protected function createHttpNotFoundModel(HttpResponse $response)
98+
{
99+
return $this->__call('createHttpNotFoundModel', [$response]);
100+
}
101+
102+
/**
103+
* @deprecated please use the {@see \Zend\Mvc\Controller\Plugin\CreateConsoleNotFoundModel} plugin instead: this
104+
* method will be removed in release 2.5 or later.
105+
*
106+
* {@inheritDoc}
107+
*/
108+
protected function createConsoleNotFoundModel($response)
109+
{
110+
return $this->__call('createConsoleNotFoundModel', [$response]);
111+
}
90112
}

0 commit comments

Comments
 (0)