From bb7af315a546eea3c3c420465afc4cc0734e7c4a Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 5 Aug 2021 21:32:14 +0300 Subject: [PATCH] feat(media): add `media` helper #564 --- src/flextype/helpers.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/flextype/helpers.php b/src/flextype/helpers.php index 2bcd296d..ad1223ce 100644 --- a/src/flextype/helpers.php +++ b/src/flextype/helpers.php @@ -66,6 +66,15 @@ if (! function_exists('content')) { } } +if (! function_exists('media')) { + /** + * Get Flextype Media Service. + */ + function media() { + return flextype()->container()->get('media'); + } +} + if (! function_exists('parsers')) { /** * Get Flextype Parsers Service.