From 8f496fc3d12527a00f8ac9f169b10ea72bb37deb Mon Sep 17 00:00:00 2001 From: Mark Story Date: Tue, 24 Oct 2017 22:20:48 -0400 Subject: [PATCH] Add warning for deprecated options. --- src/Auth/BaseAuthenticate.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Auth/BaseAuthenticate.php b/src/Auth/BaseAuthenticate.php index e93072eb9ee..06ff4f31606 100644 --- a/src/Auth/BaseAuthenticate.php +++ b/src/Auth/BaseAuthenticate.php @@ -91,6 +91,13 @@ public function __construct(ComponentRegistry $registry, array $config = []) { $this->_registry = $registry; $this->setConfig($config); + + if ($this->getConfig('scope') || $this->getConfig('contain')) { + deprecationWarning( + 'The `scope` and `contain` options for Authentication are deprecated. ' . + 'Use the `finder` option instead to define additional conditions.' + ); + } } /**