AuthPublicShareController generates wrong routes

I’ve implemented an controller that extends the AuthPublicShareController. If isPasswordProtected() method returns true there is a error in the log:
Symfony\Component\Routing\Exception\RouteNotFoundException : Unable to generate a URL for the named route “.authsecretsharecontroller.showAuthenticate” as such route does not exist.

The getRoute()-Method of the AuthPublicShareController generates the route by using the className, so there is the word ‘controller’ within the route.
The right route would be:
“.authsecretshare.showAuthenticate”

I didn’t get it running unless I extended the core/routes.php.
Is there a way to define the routes in the application without extending the core?

Solved in :


and can be deleted