diff --git a/src/composer.json b/src/composer.json index 129afcb6..153360cd 100644 --- a/src/composer.json +++ b/src/composer.json @@ -19,7 +19,7 @@ }, "require": { "xamin/handlebars.php": "0.10.*", - "justblackbird/handlebars.php-helpers": "~0.2.1", + "justblackbird/handlebars.php-helpers": "1.*", "symfony/http-foundation": "2.6.*", "symfony/routing": "2.6.*", "symfony/config": "2.6.*", diff --git a/src/mibew/libs/classes/Mibew/Handlebars/Helpers.php b/src/mibew/libs/classes/Mibew/Handlebars/Helpers.php index dccf1246..8516cccf 100644 --- a/src/mibew/libs/classes/Mibew/Handlebars/Helpers.php +++ b/src/mibew/libs/classes/Mibew/Handlebars/Helpers.php @@ -47,9 +47,9 @@ class Helpers extends BaseHelpers $this->add('ifAny', new HandlebarsHelpers\Comparison\IfAnyHelper()); $this->add('ifEven', new HandlebarsHelpers\Comparison\IfEvenHelper()); $this->add('ifOdd', new HandlebarsHelpers\Comparison\IfOddHelper()); - $this->add('repeat', new HandlebarsHelpers\String\RepeatHelper()); - $this->add('replace', new HandlebarsHelpers\String\ReplaceHelper()); - $this->add('cutString', new HandlebarsHelpers\String\TruncateHelper()); + $this->add('repeat', new HandlebarsHelpers\Text\RepeatHelper()); + $this->add('replace', new HandlebarsHelpers\Text\ReplaceHelper()); + $this->add('cutString', new HandlebarsHelpers\Text\TruncateHelper()); $blocks = new HandlebarsHelpers\Layout\BlockStorage(); $this->add('extends', new HandlebarsHelpers\Layout\ExtendsHelper($blocks)); $this->add('block', new HandlebarsHelpers\Layout\BlockHelper($blocks));