We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e2f5162 + 8efe358 commit 28f404bCopy full SHA for 28f404b
src/Auth/FootprintAwareTrait.php
@@ -28,7 +28,7 @@ trait FootprintAwareTrait
28
/**
29
* Footprint listener instance.
30
*
31
- * @var \Cake\Event\EventListenerInterface
+ * @var \Muffin\Footprint\Event\FootprintListener
32
*/
33
protected $_listener;
34
@@ -107,7 +107,7 @@ protected function _setCurrentUser($user = null): ?EntityInterface
107
}
108
} elseif ($this->components()->has('Auth')) {
109
$user = $this->Auth->user();
110
- } else {
+ } elseif ($this->name !== 'Error') {
111
throw new RuntimeException(
112
'You must have AuthenticationComponent or AuthComponent loaded to use Footprint'
113
);
0 commit comments