Skip to content

Commit

Permalink
Add warning for deprecated options.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 25, 2017
1 parent d5b239f commit 8f496fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Auth/BaseAuthenticate.php
Expand Up @@ -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.'
);
}
}

/**
Expand Down

0 comments on commit 8f496fc

Please sign in to comment.