return [ 'zf-mvc-auth' => [ 'authentication' => [ 'map' => [ 'Admin\\MyModule\\Controller' => 'session', ],
but it is applicable to all controllers. It means that cannot be controller without adapter.
But this doesn’t:
return [ 'zf-mvc-auth' => [ 'authentication' => [ 'map' => [ 'Admin\\MyModule\\Controller\\UserController' => 'session', ],
because of this line https://github.com/zfcampus/zf-mvc-auth/blob/master/src/Authentication/DefaultAuthenticationListener.php#L233 where script added double backslashes to the $api variable which will not matches with $controller name.
‘Admin\MyModule\Controller\UserController\’ - this will be assign to the $api variable;
‘Admin\MyModule\Controller\UserController’ - this will be assign to the $controller variable. How to get around of this?