Skip to content

Commit

Permalink
remove banned words
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Gadi committed Mar 5, 2021
1 parent 1b3ed3d commit df6b238
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ ROLLOUT_TABLE=rollout
### Implementing Interfaces

##### User

Your rollout users must implement the `\Jaspaul\LaravelRollout\Contracts\User` interface. Often this will be your main user object:

```php
Expand All @@ -68,6 +69,7 @@ class User implements Contract
```

#### Group

Your rollout groups must implement the `\Jaspaul\LaravelRollout\Contracts\Group` interface.

```php
Expand Down Expand Up @@ -106,6 +108,7 @@ class BetaUsersGroup implements Group
and you should update your local `laravel-rollout.php` configuration to include the group in the groups array:

`laravel-rollout.php`

```php
return [
...
Expand Down Expand Up @@ -140,7 +143,7 @@ Swap `{feature}` with the name of the feature you'd like to create a feature fla

`php artisan rollout:deactivate {feature}`

Swap `{feature}` with the name of the feature you'd like to deactivate globally. Note this will also reset the user whitelist.
Swap `{feature}` with the name of the feature you'd like to deactivate globally. Note this will also reset the user allowlist.

### Delete

Expand Down
4 changes: 2 additions & 2 deletions src/FeaturePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class FeaturePresenter
'all' => 'Active for everyone.',
'request_param' => 'Active with a request parameter.',
'percentage' => 'Active via percentage rollout.',
'whitelist' => 'Active via group or user whitelist.',
'allowlist' => 'Active via group or user allowlist.',
'disabled' => 'Deactivated globally.'
];

Expand Down Expand Up @@ -69,7 +69,7 @@ public function getDisplayStatus() : string
}

if (count($this->feature->getGroups()) > 0 || count($this->feature->getUsers()) > 0) {
return self::$statuses['whitelist'];
return self::$statuses['allowlist'];
}

return self::$statuses['disabled'];
Expand Down

0 comments on commit df6b238

Please sign in to comment.