mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-02 10:23:36 +02:00
Protected internal methods in ViewComposer
This commit is contained in:
@@ -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";
|
||||
|
||||
|
Reference in New Issue
Block a user