From ffe8ffc0b83bdf8556c88e2db3f0e7fc47b210bf Mon Sep 17 00:00:00 2001 From: Eric Gesemann Date: Tue, 26 Mar 2024 15:27:35 +0100 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a243b19..8975df66 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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` \ No newline at end of file +- Classes marked as `@internal` or `@experimental`