Source of file _config.php
Size: 0,942 Bytes - Last Modified: 2021-12-24T06:35:36+00:00
/var/www/docs.ssmods.com/process/src/_config.php
123456789101112131415161718192021222324252627282930313233343536373839 | <?php if (version_compare(PHP_VERSION, '5.4.0', '>=')) { require_once __DIR__ . '/code/TwigControllerTrait.php'; } // If haml is available allow it to be used if (class_exists('HamlSilverStripeContainer')) { TwigContainer::addExtension('twig', function ($twig, $c) { $twig->addExtension(new MtHaml\Support\Twig\Extension); return $twig; }); TwigContainer::addExtension('twig.loader', function ($loader, $c) { return new MtHaml\Support\Twig\Loader($c['haml.env'], $loader); }); TwigContainer::addShared('haml.env', function ($c) { return $c['haml.dic']['environment']; }); TwigContainer::extendConfig(array( 'haml.dic' => function () { return new HamlSilverStripeContainer(array( 'environment.type' => 'twig' )); }, 'twig.extensions' => array( '.haml', '.twig' ) )); } |