zoukankan      html  css  js  c++  java
  • swoft生成控制器

    [root@localhost swoft]# swoftcli gen:controller -h
    [ERROR] Command 'controller' is not exist in group: gen
    Generate some common application template classes
    
    Group: gen (alias: generate)
    Usage:
      swoftcli gen:COMMAND [--opt ...] [arg ...]
    
    Global Options:
          --debug      Setting the application runtime debug level(0 - 4)
          --no-color   Disable color/ANSI for message output
      -h, --help       Display help message for application or command
      -V, --version    Display application version information
    
    Commands:
      cli-command     Generate CLI command controller class(alias: cmd, command)
      crontab         Generate user cronTab task class(alias: task-crontab, taskCrontab)
      http-controller Generate HTTP controller class(alias: ctrl, http-ctrl)
      http-middleware Generate HTTP middleware class(alias: http-mdl, httpmdl, http-middle)
      listener        Generate an event listener class(alias: event-listener)
      process         Generate user custom process class(alias: proc)
      rpc-controller  Generate RPC service class(alias: rpcctrl, service, rpc-ctrl)
      rpc-middleware  Generate RPC middleware class(alias: rpcmdl, rpc-mdl, rpc-middle)
      task            Generate user task class
      tcp-controller  Generate TCP controller class(alias: tcpc, tcpctrl, tcp-ctrl)
      tcp-middleware  Generate TCP middleware class(alias: tcpmdl, tcp-mdl, tcp-middle)
      ws-controller   Generate WebSocket message controller class(alias: wsc, wsctrl, ws-ctrl)
      ws-middleware   Generate WebSocket middleware class(alias: wsmdl, ws-mdl, ws-middle)
      ws-module       Generate WebSocket module class(alias: wsm, wsmod, ws-mod, wsModule)
    
    View the specified command, please use: swoftcli gen:COMMAND -h
    [root@localhost swoft]# swoftcli gen:http-controller -h
    Generate HTTP controller class
    
    Usage:
      /usr/local/bin/swoftcli gen:http-controller [arguments ...] [options ...]
    
    Global Options:
          --debug      Setting the application runtime debug level(0 - 4)
          --no-color   Disable color/ANSI for message output
      -h, --help       Display help message for application or command
      -V, --version    Display application version information
    
    Arguments:
      name VALUE   The class name, don't need suffix and ext. eg: demo
      dir  VALUE   The class file save dir (defaults: @app/Http/Controller)
    
    Options:
      -n, --namespace VALUE     The class namespace (defaults: AppHttpController)
          --prefix STRING       The route prefix for the controller, default is class name
          --preview             Want preview the will generated file code
          --rest STRING         The class will contains CURD actions (defaults: True)
          --suffix STRING       The class name suffix (defaults: Controller)
          --tpl-dir STRING      The template files directory
          --tpl-file STRING     The template file filename or full path (defaults: http-rest-controller.stub)
      -y, --yes                 No need to confirm when performing file writing (defaults: False)
    
    Example:
      /usr/local/bin/swoftcli gen:http-controller demo --prefix /demo -y      Gen DemoController class to http controller dir
      /usr/local/bin/swoftcli gen:http-controller user --prefix /users --rest Gen UserController class to http controller dir(RESTFul)
    [root@localhost swoft]# swoftcli gen:http-controller member
    

      

  • 相关阅读:
    2016年回家的大概经过
    [转载][记录]shell 批量修改文件名
    Tinymce4 中Ajax多次加载时,会出现菜单在第二次进入时,显示的下拉菜单在左上角
    PHP生成HTML页面顶部出现空白部分(&#65279字符?)
    tcpdf MultiCell line break
    [转载][记录]javascript生成不重复的随机数
    [转载]PHP 字符串替换中文
    PHP 使用get_class_methods()和array_diff() 兩個相同的類中方法差集
    mysql datetime 排序
    highcharts 去掉右下角链接
  • 原文地址:https://www.cnblogs.com/brady-wang/p/13298998.html
Copyright © 2011-2022 走看看