From e32d4ad7e8a2b5b6c3682cf75c15cbaacc492a55 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 16 May 2024 17:28:46 +1200 Subject: [PATCH] API Set extension hook implementation visibility to protected --- src/ErrorPageControllerExtension.php | 2 +- src/ErrorPageFileExtension.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ErrorPageControllerExtension.php b/src/ErrorPageControllerExtension.php index d2ccc2f..cc1fc29 100644 --- a/src/ErrorPageControllerExtension.php +++ b/src/ErrorPageControllerExtension.php @@ -25,7 +25,7 @@ class ErrorPageControllerExtension extends Extension * @param HTTPRequest $request * @throws HTTPResponse_Exception */ - public function onBeforeHTTPError($statusCode, $request, $errorMessage = null) + protected function onBeforeHTTPError($statusCode, $request, $errorMessage = null) { if (Director::is_ajax() || $this->isAdminController()) { return; diff --git a/src/ErrorPageFileExtension.php b/src/ErrorPageFileExtension.php index e30747a..fc5e2ba 100644 --- a/src/ErrorPageFileExtension.php +++ b/src/ErrorPageFileExtension.php @@ -19,7 +19,7 @@ class ErrorPageFileExtension extends DataExtension * @param int $statusCode HTTP Error code * @return DataObject Substitute object suitable for handling the given error code */ - public function getErrorRecordFor($statusCode) + protected function getErrorRecordFor($statusCode) { return ErrorPage::get()->filter("ErrorCode", $statusCode)->first(); }