From 58b49ae2c6c15cf29ed453f00d621764635003b3 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Thu, 14 Mar 2024 12:15:33 -0500 Subject: [PATCH] 5.6.2 --- src/Di/AbstractInjectionAware.php | 4 +++- src/Support/HelperFactory.php | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Di/AbstractInjectionAware.php b/src/Di/AbstractInjectionAware.php index 46c19f07..f83db3c3 100644 --- a/src/Di/AbstractInjectionAware.php +++ b/src/Di/AbstractInjectionAware.php @@ -9,10 +9,12 @@ */ namespace Phalcon\Di; +use stdClass; + /** * This abstract class offers common access to the DI in a class */ -abstract class AbstractInjectionAware implements \Phalcon\Di\InjectionAwareInterface +abstract class AbstractInjectionAware extends stdClass implements \Phalcon\Di\InjectionAwareInterface { /** * Dependency Injector diff --git a/src/Support/HelperFactory.php b/src/Support/HelperFactory.php index aa80f3f3..be027f68 100644 --- a/src/Support/HelperFactory.php +++ b/src/Support/HelperFactory.php @@ -25,8 +25,10 @@ * @method string decrement(string $text, string $separator = '_') * @method string dirFromFile(string $file) * @method string dirSeparator(string $directory) + * @method string dynamic(string $text, string $leftDelimiter = "{", string $rightDelimiter = "}", string $separator = "|") * @method string encode($data, int $options = 0, int $depth = 512) * @method bool endsWith(string $haystack, string $needle, bool $ignoreCase = true) + * @method mixed filter(array $collection, callable|null $method) * @method mixed first(array $collection, callable $method = null) * @method string firstBetween(string $text, string $start, string $end) * @method mixed firstKey(array $collection, callable $method = null) @@ -38,6 +40,7 @@ * @method string humanize(string $text) * @method bool includes(string $haystack, string $needle) * @method string increment(string $text, string $separator = '_') + * @method string interpolate(string $message, array $context = [], string $leftToken = "%", string $rightToken = "%") * @method bool isAnagram(string $first, string $second) * @method bool isBetween(int $value, int $start, int $end) * @method bool isLower(string $text, string $encoding = 'UTF-8')