SampleShell.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. * Class SampleShell
  19. *
  20. */
  21. namespace TestApp\Shell;
  22. use Cake\Console\Shell;
  23. class SampleShell extends Shell
  24. {
  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. }