From 64b641c09bb264b7d2a6009a00e40de8767837f5 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 10 Sep 2022 15:04:45 +0300 Subject: [PATCH] feat(parsers): rename `initShortcodes` to `regsiterShortcodes`` --- src/flextype/core/Parsers/Shortcodes.php | 2 +- src/flextype/flextype.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flextype/core/Parsers/Shortcodes.php b/src/flextype/core/Parsers/Shortcodes.php index bda01738..78ce2b96 100644 --- a/src/flextype/core/Parsers/Shortcodes.php +++ b/src/flextype/core/Parsers/Shortcodes.php @@ -97,7 +97,7 @@ final class Shortcodes * * @param array $shortcodes Shortcodes to init. */ - public function initShortcodes(array $shortcodes): void + public function registerShortcodes(array $shortcodes): void { if ( count($shortcodes) <= 0 diff --git a/src/flextype/flextype.php b/src/flextype/flextype.php index e0ad0c42..c5b34dca 100644 --- a/src/flextype/flextype.php +++ b/src/flextype/flextype.php @@ -310,7 +310,7 @@ container()->set('cache', static function () { container()->set('parsers', new Parsers()); // Init Shortcodes -parsers()->shortcodes()->initShortcodes(registry()->get('flextype.settings.parsers.shortcodes.shortcodes')); +parsers()->shortcodes()->registerShortcodes(registry()->get('flextype.settings.parsers.shortcodes.shortcodes')); // Add Serializers Service container()->set('serializers', new Serializers());