SampleShell.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * SampleShell file
  4. *
  5. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  6. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  7. *
  8. * Licensed under The MIT License
  9. * For full copyright and license information, please see the LICENSE.txt
  10. * Redistributions of files must retain the above copyright notice
  11. *
  12. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  13. * @link http://cakephp.org CakePHP(tm) Project
  14. * @since 1.2.0
  15. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  16. */
  17. /**
  18. * SampleShell
  19. */
  20. namespace TestApp\Shell;
  21. use Cake\Console\Shell;
  22. class SampleShell extends Shell
  23. {
  24. public $tasks = ['Sample', 'Load'];
  25. /**
  26. * main method
  27. *
  28. * @return void
  29. */
  30. public function main()
  31. {
  32. $this->out('This is the main method called from SampleShell');
  33. }
  34. /**
  35. * derp method
  36. *
  37. * @return void
  38. */
  39. public function derp()
  40. {
  41. $this->out('This is the example method called from TestPlugin.SampleShell');
  42. }
  43. }