From 480207a1d6b9f30fb4e3d67fcc343310265608b0 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Mon, 16 Dec 2019 09:25:27 -0700 Subject: [PATCH] Protected internal methods in ViewComposer --- app/Bootstrap/ViewComposer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Bootstrap/ViewComposer.php b/app/Bootstrap/ViewComposer.php index e618f9c..1f4b558 100644 --- a/app/Bootstrap/ViewComposer.php +++ b/app/Bootstrap/ViewComposer.php @@ -58,7 +58,7 @@ class ViewComposer * * @return void */ - public function registerGlobalFunctions(Twig $twig): void + protected function registerGlobalFunctions(Twig $twig): void { $twig->getEnvironment()->addFunction( new TwigFunction('asset', function (string $path) use ($twig) { @@ -83,7 +83,7 @@ class ViewComposer * * @return void */ - public function registerThemeFunctions(Twig $twig): void + protected function registerThemeFunctions(Twig $twig): void { $themeFunctionsFile = "{$twig->getLoader()->getPaths()[0]}/functions.php";