File: config/templatesLoader.php

Recommend this page to a friend!
  Classes of Till Wehowski  >  frdl PHP Whois API Web Interface  >  config/templatesLoader.php  >  Download  
File: config/templatesLoader.php
Role: Example script
Content type: text/plain
Description: Example script
Class: frdl PHP Whois API Web Interface
Web application module query domain with whois API
Author: By
Last change:
Date: 7 months ago
Size: 544 bytes
 

Contents

Class file image Download
<?php
use Psr\Container\ContainerInterface;
use function
DI\create;
use function
DI\get;
use function
DI\decorate;


return [
          
'twig.files-loader' => decorate(function ($loader, ContainerInterface $c) {
              
$loader->addPath(__DIR__.\DIRECTORY_SEPARATOR.'..'.\DIRECTORY_SEPARATOR.'templates'.\DIRECTORY_SEPARATOR.'views', 'modules');
              
$loader->addPath(__DIR__.\DIRECTORY_SEPARATOR.'..'.\DIRECTORY_SEPARATOR.'templates'.\DIRECTORY_SEPARATOR.'custom', 'modules');
              return
$loader;
           }),
       ];


For more information send a message to info at phpclasses dot org.