CakePHP
  • 文档
    • 手册
    • API
    • 视频
    • 报告安全问题
    • 隐私政策
    • 标识和商标
  • 企业解决方案
  • 周边产品
  • 公路旅行
  • 团队
  • 社区
    • 社区
    • 参与
    • 问题 (Github)
    • 烘焙坊
    • 精选资源
    • 培训
    • 聚会
    • 我的 CakePHP
    • CakeFest
    • 新闻稿
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • 帮助和支持
    • 论坛
    • Stack Overflow
    • IRC
    • Slack
    • 付费支持
CakePHP

C CakePHP 5.1 Chiffon API

  • 项目
    • CakePHP
      • CakePHP
      • Chronos
      • Elastic Search
      • 队列
  • 版本
    • 5.1
      • 5.1
      • 5.0
      • 4.5
      • 4.4
      • 4.3
      • 4.2
      • 4.1
      • 4.0
      • 3.10
      • 3.9
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

命名空间

  • 全局
  • Cake
    • Cache
    • Collection
    • Command
    • Console
    • Controller
    • Core
      • Configure
      • Exception
      • Retry
      • TestSuite
    • Database
    • Datasource
    • Error
    • Event
    • Form
    • Http
    • I18n
    • Log
    • Mailer
    • Network
    • ORM
    • Routing
    • TestSuite
    • Utility
    • Validation
    • View

接口 ConsoleApplicationInterface

定义控制台运行器依赖的方法的接口。

命名空间: Cake\Core

方法摘要

  • bootstrap() public

    加载所有应用程序配置和引导逻辑。

  • console() public

    定义应用程序的控制台命令。

  • events() public @method
  • pluginEvents() public @method

方法详情

bootstrap() ¶ public

bootstrap(): void

加载所有应用程序配置和引导逻辑。

覆盖此方法以添加应用程序的额外引导逻辑。

返回值
void

console() ¶ public

console(Cake\Console\CommandCollection $commands): Cake\Console\CommandCollection

定义应用程序的控制台命令。

参数
Cake\Console\CommandCollection $commands

要添加命令的 CommandCollection。

返回值
Cake\Console\CommandCollection

events() ¶ public @method

events(Cake\Event\EventManagerInterface $eventManager)
参数
Cake\Event\EventManagerInterface $eventManager

pluginEvents() ¶ public @method

pluginEvents(Cake\Event\EventManagerInterface $eventManager)
参数
Cake\Event\EventManagerInterface $eventManager
OpenHub
Pingping
Linode
  • 企业解决方案
  • 展示
  • 文档
  • 手册
  • API
  • 视频
  • 报告安全问题
  • 隐私政策
  • 标识和商标
  • 社区
  • 参与
  • 问题 (Github)
  • 烘焙坊
  • 精选资源
  • 培训
  • 聚会
  • 我的 CakePHP
  • CakeFest
  • 新闻稿
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • 帮助和支持
  • 论坛
  • Stack Overflow
  • IRC
  • Slack
  • 付费支持

使用 CakePHP API 文档 生成