Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arutyunyan committed Apr 22, 2024
1 parent 68fb93f commit b56c4bf
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
```

0 comments on commit b56c4bf

Please sign in to comment.