Skip to content

Commit

Permalink
Merge branch 'master' of github.com:spatie/laravel-signable-command
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Apr 14, 2021
2 parents 81a745f + 219f5f3 commit 8c60580
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ There are three ways to handle signals:

#### On the command

To handle signals on the command itself, all you need to do is to define a method that starts with `on` followed by the name of the signal. Here's an example where the `SIGINT` signal is handled.
To handle signals on the command itself, you need to let your command extend `SignalAwareCommand`. Next, define a method that starts with `on` followed by the name of the signal. Here's an example where the `SIGINT` signal is handled.

```php
use Spatie\SignalAwareCommand\SignalAwareCommand;
Expand Down Expand Up @@ -203,6 +203,10 @@ class SomeOtherClass
}
```

## Learn how this package was built

The foundations of this pacakge were coded up in [this live stream on YouTube](https://www.youtube.com/watch?v=D9hxQoD47jI).

## Testing

```bash
Expand Down

0 comments on commit 8c60580

Please sign in to comment.