Commit 150f2d4a by feixiang

Dao Data生成

parent 76254653
...@@ -17,7 +17,7 @@ use Swoft\Console\Output\Output; ...@@ -17,7 +17,7 @@ use Swoft\Console\Output\Output;
use Swoft\Task\Task; use Swoft\Task\Task;
/** /**
* Test command * generate dao,data commands
* *
* @Command(coroutine=false) * @Command(coroutine=false)
*/ */
...@@ -43,8 +43,6 @@ class GenerateCommand ...@@ -43,8 +43,6 @@ class GenerateCommand
*/ */
public function Dao(Input $input, Output $output) public function Dao(Input $input, Output $output)
{ {
var_dump(alias('@commonCommands'));
$className = $input->getOpt('n'); $className = $input->getOpt('n');
$entityName = $input->getOpt('e'); $entityName = $input->getOpt('e');
...@@ -118,27 +116,4 @@ class GenerateCommand ...@@ -118,27 +116,4 @@ class GenerateCommand
file_put_contents($daoPath,$content); file_put_contents($daoPath,$content);
} }
/**
* this task command
*
* @Usage
* test:{command} [arguments] [options]
*
* @Options
* -o,--o this is command option
*
* @Arguments
* arg this is argument
*
* @Example
* php swoft test:task
*
* @Mapping()
*/
public function task()
{
$result = Task::deliver('sync', 'console', ['console']);
var_dump($result);
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment