From b56c4bfd420a063233b15cdbb632111a01120a03 Mon Sep 17 00:00:00 2001 From: arutyunyan Date: Mon, 22 Apr 2024 15:23:05 +0300 Subject: [PATCH] update readme --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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