Skip to content

Commit 5921aef

Browse files
committed
Remove Controller::prepareModelDeprecated method
1 parent 2c05f5c commit 5921aef

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/Controller.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -66,26 +66,6 @@ public function __construct(Request $request, Response $response)
6666
$this->request = $request;
6767
$this->response = $response;
6868
$this->prepareModel();
69-
$this->prepareModelDeprecated();
70-
}
71-
72-
/**
73-
* @return static
74-
*
75-
* @deprecated
76-
*
77-
* @codeCoverageIgnore
78-
*/
79-
protected function prepareModelDeprecated() : static
80-
{
81-
if (isset($this->modelClass)) {
82-
\trigger_error(
83-
'Setting $modelClass property is deprecated',
84-
\E_USER_DEPRECATED
85-
);
86-
$this->model = new $this->modelClass();
87-
}
88-
return $this;
8969
}
9070

9171
/**

0 commit comments

Comments
 (0)