mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-27 20:11:34 +03:00
Moved templates and templates config to Core module
This commit is contained in:
parent
923abdf4d2
commit
39598d8608
7 changed files with 26 additions and 15 deletions
|
@ -2,12 +2,6 @@
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
'templates' => [
|
|
||||||
'paths' => [
|
|
||||||
'templates'
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
'twig' => [
|
'twig' => [
|
||||||
'cache_dir' => 'data/cache/twig',
|
'cache_dir' => 'data/cache/twig',
|
||||||
'extensions' => [
|
'extensions' => [
|
||||||
|
|
|
@ -1,14 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'debug' => false,
|
|
||||||
|
|
||||||
|
'debug' => false,
|
||||||
'config_cache_enabled' => true,
|
'config_cache_enabled' => true,
|
||||||
|
|
||||||
'zend-expressive' => [
|
|
||||||
'error_handler' => [
|
|
||||||
'template_404' => 'error/404.html.twig',
|
|
||||||
'template_error' => 'error/error.html.twig',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
|
11
module/Core/config/templates.config.php
Normal file
11
module/Core/config/templates.config.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
'templates' => [
|
||||||
|
'paths' => [
|
||||||
|
'module/Core/templates',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
|
||||||
|
];
|
12
module/Core/config/zend-expressive.config.php
Normal file
12
module/Core/config/zend-expressive.config.php
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
'zend-expressive' => [
|
||||||
|
'error_handler' => [
|
||||||
|
'template_404' => 'core/error/404.html.twig',
|
||||||
|
'template_error' => 'core/error/error.html.twig',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
|
||||||
|
];
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'layout/default.html.twig' %}
|
{% extends 'core/layout/default.html.twig' %}
|
||||||
|
|
||||||
{% block title %}URL Not Found{% endblock %}
|
{% block title %}URL Not Found{% endblock %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'layout/default.html.twig' %}
|
{% extends 'core/layout/default.html.twig' %}
|
||||||
|
|
||||||
{% block title %}{{ status }} {{ reason }}{% endblock %}
|
{% block title %}{{ status }} {{ reason }}{% endblock %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue