I followed the Instruction to use tinyauth with new Authentication Plugin by cakephp4...
in AppController.php:
$this->loadComponent('TinyAuth.Authentication', []);
in Application.php
use Authentication\Middleware\AuthenticationMiddleware;
inside public function middleware
$middlewareQueue->add(new AuthenticationMiddleware($this));
On Site following error occurs
Subject must be an instance of Authentication\AuthenticationServiceInterface or Authentication\AuthenticationServiceProviderInterface, App\Application given.
I followed the Instruction to use tinyauth with new Authentication Plugin by cakephp4...
in AppController.php: $this->loadComponent('TinyAuth.Authentication', []);
in Application.php use Authentication\Middleware\AuthenticationMiddleware;
inside public function middleware $middlewareQueue->add(new AuthenticationMiddleware($this));
On Site following error occurs Subject must be an instance of Authentication\AuthenticationServiceInterface or Authentication\AuthenticationServiceProviderInterface, App\Application given.