From 780b836d5753a814989ea7ae847958de10894c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=BCrth?= Date: Wed, 10 Feb 2016 13:37:10 +0100 Subject: [PATCH] Deprecate SecurityComponent::requireAuth & SecurityComponent::requireAuth() Backport of https://github.com/cakephp/cakephp/pull/8191 --- lib/Cake/Controller/Component/SecurityComponent.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/Controller/Component/SecurityComponent.php b/lib/Cake/Controller/Component/SecurityComponent.php index 31a14ef5c..1ed1c0eb1 100644 --- a/lib/Cake/Controller/Component/SecurityComponent.php +++ b/lib/Cake/Controller/Component/SecurityComponent.php @@ -92,6 +92,7 @@ class SecurityComponent extends Component { * * @var array * @see SecurityComponent::requireAuth() + * @deprecated 2.8.1 This feature is confusing and not useful. */ public $requireAuth = array(); @@ -400,6 +401,7 @@ class SecurityComponent extends Component { * * @param Controller $controller Instantiating controller * @return bool|null True if authentication required + * @deprecated 2.8.1 This feature is confusing and not useful. */ protected function _authRequired(Controller $controller) { if (is_array($this->requireAuth) && !empty($this->requireAuth) && !empty($this->request->data)) {