diff --git a/composer.json b/composer.json index 3ab6d8c..6bced58 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "skidu/LaraWorker", + "name": "skidu/laraworker", "license": "MIT", "description": "Workerman for Laravel 5", "require": { diff --git a/src/Commands/CreateCommand.php b/src/Commands/CreateCommand.php deleted file mode 100644 index fb44111..0000000 --- a/src/Commands/CreateCommand.php +++ /dev/null @@ -1,29 +0,0 @@ -argument('name'); - $path = config('workerman.app_path'); - if (!is_dir($path) && !mkdir($path)) { - return $this->error("\ncreate directory failed: {$path}\n"); - } - - $appPath = $path .DIRECTORY_SEPARATOR. ucfirst($name); - if (is_dir($appPath)) { - return $this->error("\nFile exists: {$appPath}\n"); - } - - if (!mkdir($appPath)) { - return $this->error("\nfail to create directory at {$appPath}\n"); - } - } -} diff --git a/src/LaraWorkerProvider.php b/src/LaraWorkerProvider.php index 1166ca3..c9fa102 100644 --- a/src/LaraWorkerProvider.php +++ b/src/LaraWorkerProvider.php @@ -21,7 +21,6 @@ public function boot() */ public function register() { - $this->registerCmdCreate(); $this->registerCmdStart(); $this->registerCmdRestart(); $this->registerCmdStop(); @@ -29,14 +28,6 @@ public function register() $this->registerCmdStatus(); } - protected function registerCmdCreate() - { - $this->app->singleton('command.worker.create', function($app){ - return $app['\Skidu\LaraWorker\Commands\CreateCommand']; - }); - $this->commands('command.worker.create'); - } - protected function registerCmdStart() { $this->app->singleton('command.worker.start', function($app){