jasny / switch-route

Generate a PHP script for faster routing :rocket:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FQCN 'controller' by default

yaroslavche opened this issue · comments

Also I saw disadvantage (IMO). I can't set FQCN for route.controller key. I.e., ['controller' => IndexController::class].

You can, it just requires you to need to specify in the Invoker constructor. Maybe the default should be that you specify the FQCN. And other things as presets.

Originally posted by @jasny in #3 (comment)