2
我想这里http://packages.zendframework.com/docs/latest/manual/en/modules/zend.console.routes.htmlZend框架2控制台路线
描述的模块配置我定义我的ZF2应用程序的一些控制台路线:
'console' => array(
'router' => array(
'routes' => array(
'user-set-password' => array(
'options' => array(
'route' => 'user password <username> <password>',
'defaults' => array(
'controller' => 'User\Profile',
'action' => 'setpassword'
),
),
),
),
),
),
,但它似乎永远比不上因为它总是打印使用信息。像'test'这样简单的路线也不会匹配。 在最新版本ZF2
是我的错,或者一个错误(当我写了一些废话到路径参数,执行与加载模块时Zend\Mvc\Router\Exception\InvalidArgumentException
所以它认识到控制台路由失败)?