Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ericges committed Mar 26, 2024
1 parent ea3e6f8 commit ffe8ffc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ class MyClass{
}
```

### Static Utils

Static helper methods that do not need to be injected are provided by the `SUtils` locator.

At this time, the following static helpers are available:
```php
use HeimrichHannot\UtilsBundle\StaticUtil\SUtils;

SUtils::array()->insertBeforeKey($array, $keys, $newKey, $newValue);
SUtils::array()->insertAfterKey($array, $key, $value, $newKey = null, $options = []);
$foundAndRemoved = SUtils::array()->removeValue($value, $array);

SUtils::class()->hasTrait($class, $trait);
```

### Dca Fields

Expand Down Expand Up @@ -141,4 +155,4 @@ We try our best to keep this bundle backwards compatible and follow the principl

Following aspects are not covered by BC promise:
- Using Utils classes direct instead from Utils service. This is not officially supported and may break your application due internal changes.
- Classes marked as `@internal` or `@experimental`
- Classes marked as `@internal` or `@experimental`

0 comments on commit ffe8ffc

Please sign in to comment.