Skip to content

Commit

Permalink
Make internal methods unroutable via protected
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner authored Mar 21, 2019
1 parent 5116f53 commit 4bc261e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function initController(RequestInterface $request, ResponseInterface $res
*
* @throws \CodeIgniter\HTTP\Exceptions\HTTPException
*/
public function forceHTTPS(int $duration = 31536000)
protected function forceHTTPS(int $duration = 31536000)
{
force_https($duration, $this->request, $this->response);
}
Expand All @@ -151,7 +151,7 @@ public function forceHTTPS(int $duration = 31536000)
*
* @param integer $time
*/
public function cachePage(int $time)
protected function cachePage(int $time)
{
CodeIgniter::cache($time);
}
Expand Down Expand Up @@ -185,7 +185,7 @@ protected function loadHelpers()
*
* @return boolean
*/
public function validate($rules, array $messages = []): bool
protected function validate($rules, array $messages = []): bool
{
$this->validator = Services::validation();

Expand Down

0 comments on commit 4bc261e

Please sign in to comment.