new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php namespace ZN\Console;
|
||||
/**
|
||||
* ZN PHP Web Framework
|
||||
*
|
||||
* "Simplicity is the ultimate sophistication." ~ Da Vinci
|
||||
*
|
||||
* @package ZN
|
||||
* @license MIT [http://opensource.org/licenses/MIT]
|
||||
* @author Ozan UYKUN [ozan@znframework.com]
|
||||
*/
|
||||
|
||||
use Generate;
|
||||
|
||||
/**
|
||||
* @command create-command
|
||||
* @description create-command {CommandName}
|
||||
*/
|
||||
class CreateCommand
|
||||
{
|
||||
/**
|
||||
* Magic constructor
|
||||
*
|
||||
* @param string $command
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($command)
|
||||
{
|
||||
new Result(Generate::command($command,
|
||||
[
|
||||
'extends' => 'Command',
|
||||
'namespace' => 'Project\Commands',
|
||||
'functions' => 'run'
|
||||
]));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user