diff --git a/README.md b/README.md index 090574d..a0629ec 100644 --- a/README.md +++ b/README.md @@ -123,15 +123,20 @@ class Controller { use Decorator; - #[Console('/hello')] + #[Console('hello')] function greetingPerson($name) { return "Hello, $name"; } } +``` + +in the command line it would be calling for example something like this: + +`php index.php -c hello --name Yuriy` -// example from the command line: php index.php -c hello --name Yuriy -// in index.php you should read the command and the parameters -// and then call it like this: +then in `index.php` you should read the command and the parameters and after that call it like this: + +```php (new Console('hello'))->setParameters(['name' => 'Yuriy'])->run(); ``` \ No newline at end of file