|
|
@@ -22,12 +22,14 @@ declare(strict_types=1);
|
|
|
*/
|
|
|
namespace TestApp\Shell;
|
|
|
|
|
|
+use Cake\Console\ConsoleOptionParser;
|
|
|
use Cake\Console\Shell;
|
|
|
|
|
|
class SampleShell extends Shell
|
|
|
{
|
|
|
public $tasks = ['Sample', 'Load'];
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* main method
|
|
|
*
|
|
|
@@ -57,4 +59,20 @@ class SampleShell extends Shell
|
|
|
{
|
|
|
return 99;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @inheritDoc
|
|
|
+ */
|
|
|
+ public function runCommand(array $argv, bool $autoMethod = false, array $extra = [])
|
|
|
+ {
|
|
|
+ return parent::runCommand($argv, $autoMethod, $extra);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @inheritDoc
|
|
|
+ */
|
|
|
+ public function getOptionParser(): ConsoleOptionParser
|
|
|
+ {
|
|
|
+ return parent::getOptionParser();
|
|
|
+ }
|
|
|
}
|