Skip to content

Commit

Permalink
updated doc with fully qualified class name
Browse files Browse the repository at this point in the history
  • Loading branch information
moon0326 committed Jul 24, 2015
1 parent 90a5040 commit cccd8ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README-KR.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
**Kernel.php** 대신 ***artisan-config.php** 에 커맨드를 추가하는것을 제외하면 라라벨과 사용법은 동일합니다.

* ```php artisan make:console 이름```으로 새로운 커맨드를 만듭니다.
* 해당 커맨드 클라스를 **artisan-config.php*****commands*** 배열에 추가하면 됩니다.
* 새로 생성된 커맨드는 ***Artisan\Console\Commands*** 네임스페이스를 가지게 됩니다. 만약 ```php artisan make:console Hello``` 를 실행했다면 클라스 Path는 ***Artisan\Console\Commands\Hello*** 가 됩니다.
* 해당 클라스를 ***artisan-config.php***에 넣어주십시오.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ This package let you use the Laravel Artisan commands outside of the Laravel eco
Usage is simliar to Laravel, except that you need to add command classes to **artisan-config.php** instead of **Kernel.php**

* Run ```php artisan make:console command-name``` to create a new command.
* As you create a new command, you need to add the fully qualified class name into **commands** array in **artisan-config.php** just like how you do it with the Laravel.

* When you create a new command, it will have **Artisan\Console\Commands** namespace. If you add run ```php artisan make:console Hello```, you will get a ***Artisan\Console\Commands\Hello*** as fully qualified class name.
* Add the fully qualified class name to ***artisan-config.php***
* Run ```php artisan list``` to confirm.

0 comments on commit cccd8ad

Please sign in to comment.