[NFR]Phalcon\Mvc\Router get defaults
There are many nice methods like:
setDefaultNamespace
setDefaultModule
setDefaultController
setDefaultAction
It would be nice to have getDefault* methods
I can try to write PR but first I want get feedback if this methods would be helpful for others. The problem is that they are needed only for writing unit tests to my custom routing class.
Currently I wrote them in php in custom routing class and use routing protected properties (for example $this->_defaultNamespace)
Have been implemented, you cant test it.
//Setting a specific default
$router->setDefaultModule('backend');
$router->setDefaultNamespace('Backend\Controllers');
$router->setDefaultController('index');
$router->setDefaultAction('index');
I know about set methods but I want to write this:
$router->setDefaultModule('backend')l
assertEquals('backend', $router->getDefaultModule())
Hi, In 1.3.0 get* is Implemented.
Oh. I miss that. Thanks for the information.