Interface ConsoleApplicationInterface

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

Direct Implementers

Method Summary

  • bootstrap() public
    Load all the application configuration and bootstrap logic.
  • console() public
    Define the console commands for an application.

Method Detail

bootstrap()source public

bootstrap( )

Load all the application configuration and bootstrap logic.

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

console()source public

console( Cake\Console\CommandCollection $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–2018 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.5/class-Cake.Core.ConsoleApplicationInterface.html