First set of upgrade to 5.3 stuff.

This commit is contained in:
James Cole
2016-09-16 06:19:40 +02:00
parent 3aad78e6ef
commit 3d25fd79ca
54 changed files with 1365 additions and 1044 deletions

View File

@@ -1,8 +1,19 @@
<?php
declare(strict_types = 1);
/**
* This file is part of the TwigBridge package.
*
* @copyright Robert Crowe <hello@vivalacrowe.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Configuration options for Twig.
*/
return [
'twig' => [
/*
|--------------------------------------------------------------------------
@@ -27,9 +38,10 @@ return [
// When set to true, the generated templates have a __toString() method
// that you can use to display the generated nodes.
// default: false
'debug' => config('app.debug', false),
'debug' => env('APP_DEBUG', false),
// The charset used by the templates.
// default: utf-8
'charset' => 'utf-8',
// The base template class to use for generated templates.
@@ -53,8 +65,8 @@ return [
'strict_variables' => false,
// If set to true, auto-escaping will be enabled by default for all templates.
// default: true
'autoescape' => true,
// default: 'html'
'autoescape' => 'html',
// A flag that indicates which optimizations to apply
// (default to -1 -- all optimizations are enabled; set it to 0 to disable)
@@ -98,8 +110,9 @@ return [
'TwigBridge\Extension\Laravel\Str',
'TwigBridge\Extension\Laravel\Translator',
'TwigBridge\Extension\Laravel\Url',
// 'TwigBridge\Extension\Laravel\Gate',
// 'TwigBridge\Extension\Laravel\Form',
// 'TwigBridge\Extension\Laravel\Form',
// 'TwigBridge\Extension\Laravel\Html',
// 'TwigBridge\Extension\Laravel\Legacy\Facades',
],
@@ -157,6 +170,7 @@ return [
],
],
/*
|--------------------------------------------------------------------------
| Functions
@@ -220,6 +234,8 @@ return [
| </code>
|
*/
'filters' => [],
'filters' => [
'get' => 'data_get',
],
],
];