Goal-Calibration/bootstrap/container.php

13 lines
433 B
PHP

<?php
use DI\Container;
use Slim\Views\Twig;
$container = new Container([
// Note: For production scenarios, cache should be set to some 'path/to/cache'
// to store compiled templates (thus avoiding recompilation on every request).
// For more information, see https://twig.symfony.com/doc/3.x/api.html#environment-options
Twig::class => Twig::create(__DIR__.'/../views/templates', ['cache' => false]),
]);
return $container;