Update the default command

This commit is contained in:
Oliver Davies 2020-06-29 21:18:20 +01:00
parent dca7125df1
commit 5f79f6b497
2 changed files with 3 additions and 3 deletions

View file

@ -4,8 +4,8 @@ A Symfony console application used by the [PHP South Wales user group](https://w
## Usage
Run the `app:get-raffle-winner` command to retrieve the 'yes' RSVPs from Meetup for an event, and select a winner at random. The only argument is the Meetup event ID, which is required.
Run the `meetup:pick-winner` command to retrieve the 'yes' RSVPs from Meetup for an event, and select a winner at random. The only argument is the Meetup event ID, which is required.
./bin/console app:get-raffle-winner <event_id>
./bin/console meetup:pick-winner <event_id>
RSVPs by event hosts (i.e. organisers) are automatically removed so that they are not returned.

View file

@ -20,7 +20,7 @@ use Symfony\Contracts\HttpClient\HttpClientInterface;
final class GetRaffleWinnerCommand extends Command
{
protected static $defaultName = 'app:get-raffle-winner';
protected static $defaultName = 'meetup:pick-winner';
private HttpClientInterface $client;