SampleShell.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. public $tasks = ['Sample'];
  26. /**
  27. * main method
  28. *
  29. * @return void
  30. */
  31. public function main()
  32. {
  33. $this->out('This is the main method called from SampleShell');
  34. }
  35. /**
  36. * derp method
  37. *
  38. * @return void
  39. */
  40. public function derp()
  41. {
  42. $this->out('This is the example method called from TestPlugin.SampleShell');
  43. }
  44. }