webuilder240 / cake-console-routes
该软件包的最新版本(0.0.3)没有可用的许可信息。
CakeConsoleRoutes 类似于 CakePHP3 的 [rake routes] 命令
0.0.3
2015-07-20 11:38 UTC
Requires
- php: >=5.4.16
- cakephp/cakephp: ~3.0
Requires (Dev)
This package is not auto-updated.
Last update: 2024-09-18 09:55:17 UTC
README
CakeConsoleRoutes 类似于 CakePHP3 的 "rake routes" 命令
安装
您可以使用 composer 将此插件安装到您的 CakePHP 应用程序中。
安装 composer 软件包的推荐方法是
composer require webuilder240/cake-console-routes --dev
配置
在 bootstrap_cli.php 中设置 CakeConsoleRoutes
config/bootstrap_cli.php
if (Configure::read('debug')) { Plugin::load('CakeConsoleRoutes'); }
使用方法
bin/cake routes
示例
Airnick:cake3-controller-test-sample nick$ bin/cake routes Method URI Pattern Controller/Action extensions GET / Pages/display none GET /api/v1/posts Posts/index json,xml POST /api/v1/posts Posts/add json,xml GET /api/v1/posts/:id Posts/view json,xml PUT,PATCH /api/v1/posts/:id Posts/edit json,xml DELETE /api/v1/posts/:id Posts/delete json,xml
待办事项
- 移除 config/routes.php
检查路由扩展- 检查插件路由