ConsoleApplicationInterface.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  4. * Copyright 2005-2011, Cake Software Foundation, Inc. (https://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  10. * @link https://cakephp.org CakePHP(tm) Project
  11. * @since 3.5.0
  12. * @license https://opensource.org/licenses/mit-license.php MIT License
  13. */
  14. namespace Cake\Core;
  15. /**
  16. * An interface defining the methods that the
  17. * console runner depend on.
  18. */
  19. interface ConsoleApplicationInterface
  20. {
  21. /**
  22. * Load all the application configuration and bootstrap logic.
  23. *
  24. * Override this method to add additional bootstrap logic for your application.
  25. *
  26. * @return void
  27. */
  28. public function bootstrap();
  29. /**
  30. * Define the console commands for an application.
  31. *
  32. * @param \Cake\Console\CommandCollection $commands The CommandCollection to add commands into.
  33. * @return \Cake\Console\CommandCollection The updated collection.
  34. */
  35. public function console($commands);
  36. }