mirror of
https://github.com/flextype/flextype.git
synced 2025-08-13 00:24:15 +02:00
Flextype Core: bootstrap.php - updates:
- Init themes - Twig Debug Extension
This commit is contained in:
@@ -48,7 +48,8 @@ $config = [
|
||||
'httpVersion' => '1.1',
|
||||
|
||||
'twig' => [
|
||||
'cache' => false
|
||||
'cache' => false,
|
||||
'debug' => true,
|
||||
],
|
||||
|
||||
'images' => [
|
||||
@@ -282,6 +283,9 @@ $flextype['view'] = function ($container) {
|
||||
// Add Twig Extension
|
||||
$view->addExtension(new \Slim\Views\TwigExtension($router, $uri));
|
||||
|
||||
// Add Twig Debug Extension
|
||||
$view->addExtension(new \Twig\Extension\DebugExtension());
|
||||
|
||||
// Add Entries Twig Extension
|
||||
$view->addExtension(new EntriesTwigExtension($container));
|
||||
|
||||
@@ -327,6 +331,12 @@ $app->get('/image/{path:.+}', function (Request $request, Response $response, ar
|
||||
return new Themes($flextype, $app);
|
||||
};
|
||||
|
||||
/**
|
||||
* Init themes
|
||||
*/
|
||||
$flextype['themes']->init($flextype, $app);
|
||||
|
||||
|
||||
/**
|
||||
* Add plugins service to Flextype container
|
||||
*/
|
||||
|
Reference in New Issue
Block a user