Skip to content

Commit 4bc261e

Browse files
authored
Make internal methods unroutable via protected
1 parent 5116f53 commit 4bc261e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

system/Controller.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function initController(RequestInterface $request, ResponseInterface $res
138138
*
139139
* @throws \CodeIgniter\HTTP\Exceptions\HTTPException
140140
*/
141-
public function forceHTTPS(int $duration = 31536000)
141+
protected function forceHTTPS(int $duration = 31536000)
142142
{
143143
force_https($duration, $this->request, $this->response);
144144
}
@@ -151,7 +151,7 @@ public function forceHTTPS(int $duration = 31536000)
151151
*
152152
* @param integer $time
153153
*/
154-
public function cachePage(int $time)
154+
protected function cachePage(int $time)
155155
{
156156
CodeIgniter::cache($time);
157157
}
@@ -185,7 +185,7 @@ protected function loadHelpers()
185185
*
186186
* @return boolean
187187
*/
188-
public function validate($rules, array $messages = []): bool
188+
protected function validate($rules, array $messages = []): bool
189189
{
190190
$this->validator = Services::validation();
191191

0 commit comments

Comments
 (0)