Interface ConsoleApplicationInterface

An interface defining the methods that the console runner depend on.

Namespace: Cake\Core

Method Summary

  • bootstrap() public

    Load all the application configuration and bootstrap logic.

  • console() public

    Define the console commands for an application.

Method Detail

bootstrap() public

bootstrap()

Load all the application configuration and bootstrap logic.

Override this method to add additional bootstrap logic for your application.

console() public

console(mixed $commands)

Define the console commands for an application.

Parameters

\Cake\Console\CommandCollection $commands

The CommandCollection to add commands into.

Returns

\Cake\Console\CommandCollection

The updated collection.

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.9/interface-Cake.Core.ConsoleApplicationInterface.html