Initial commit: apps.supersam24.ru
This commit is contained in:
commit
e955e1da36
6566 files changed
+1271095
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Cake\Core\Configure;
|
||||
use Cake\Core\Plugin;
|
||||
use Cake\Event\EventManager;
|
||||
use WyriHaximus\TwigView\Event;
|
||||
|
||||
EventManager::instance()->on(new Event\ExtensionsListener());
|
||||
EventManager::instance()->on(new Event\TokenParsersListener());
|
||||
|
||||
if (Configure::read('debug') && Plugin::getCollection()->has('DebugKit')) {
|
||||
Configure::write('DebugKit.panels', array_merge(
|
||||
(array)Configure::read('DebugKit.panels'),
|
||||
[
|
||||
'WyriHaximus/TwigView.Twig',
|
||||
]
|
||||
));
|
||||
EventManager::instance()->on(new Event\ProfilerListener());
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'WyriHaximus' => [
|
||||
'TwigView' => [
|
||||
'environment' => [
|
||||
// Anything you would pass into \Twig_Environment to overwrite the default settings, see: http://twig.sensiolabs.org/doc/api.html#environment-options
|
||||
],
|
||||
'markdown' => [
|
||||
'engine' => 'engine', // See https://github.com/aptoma/twig-markdown#installation
|
||||
],
|
||||
'flags' => [
|
||||
'potentialDangerous' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in new issue
Block a user