Replace somes trigger_error for throw Exception and remove Twig 2

Now old PHP versions (< 7.2.5) uses Twig 1 and new PHP uses Twig 3. The Twig 2 is only selected by composer if developer need.
v2-beta
Bruno O. Notario 3 years ago
parent 5f95caecf5
commit 204cef2fa3
Signed by: oliveira131
GPG Key ID: 76CAD698D3EA8F58
  1. 3
      system/config/autoload.php
  2. 3
      system/database/databases/mssql.php
  3. 3
      system/database/databases/mysql_legacy.php
  4. 2
      system/database/databases/mysql_pdo.php
  5. 4
      system/database/databases/oracle.php
  6. 3
      system/database/databases/sqlsrv.php
  7. 17
      system/engine/exception.php
  8. 15
      system/engine/loader.php
  9. 3
      system/language/autoload.php
  10. 54
      system/mail/mail.php
  11. 3
      system/system.php
  12. 7
      system/templateEngines/Twig/Twig1x/autoload.php
  13. 8
      system/templateEngines/Twig/Twig1x/composer.json
  14. 168
      system/templateEngines/Twig/Twig1x/composer.lock
  15. 445
      system/templateEngines/Twig/Twig1x/composer/ClassLoader.php
  16. 9
      system/templateEngines/Twig/Twig1x/composer/autoload_classmap.php
  17. 70
      system/templateEngines/Twig/Twig1x/composer/autoload_real.php
  18. 54
      system/templateEngines/Twig/Twig1x/composer/autoload_static.php
  19. 128
      system/templateEngines/Twig/Twig1x/composer/installed.json
  20. 26
      system/templateEngines/Twig/Twig1x/symfony/polyfill-ctype/bootstrap.php
  21. 34
      system/templateEngines/Twig/Twig1x/symfony/polyfill-ctype/composer.json
  22. 2
      system/templateEngines/Twig/Twig1x/twig/twig/.gitattributes
  23. 6
      system/templateEngines/Twig/Twig1x/twig/twig/.gitignore
  24. 20
      system/templateEngines/Twig/Twig1x/twig/twig/.php_cs.dist
  25. 46
      system/templateEngines/Twig/Twig1x/twig/twig/.travis.yml
  26. 29
      system/templateEngines/Twig/Twig1x/twig/twig/LICENSE
  27. 24
      system/templateEngines/Twig/Twig1x/twig/twig/README.rst
  28. 93
      system/templateEngines/Twig/Twig1x/twig/twig/src/Cache/FilesystemCache.php
  29. 1638
      system/templateEngines/Twig/Twig1x/twig/twig/src/Environment.php
  30. 834
      system/templateEngines/Twig/Twig1x/twig/twig/src/ExpressionParser.php
  31. 1728
      system/templateEngines/Twig/Twig1x/twig/twig/src/Extension/CoreExtension.php
  32. 76
      system/templateEngines/Twig/Twig1x/twig/twig/src/Extension/DebugExtension.php
  33. 534
      system/templateEngines/Twig/Twig1x/twig/twig/src/Lexer.php
  34. 323
      system/templateEngines/Twig/Twig1x/twig/twig/src/Loader/FilesystemLoader.php
  35. 62
      system/templateEngines/Twig/Twig1x/twig/twig/src/Node/Expression/NullCoalesceExpression.php
  36. 136
      system/templateEngines/Twig/Twig1x/twig/twig/src/Node/MacroNode.php
  37. 107
      system/templateEngines/Twig/Twig1x/twig/twig/src/Node/SetNode.php
  38. 47
      system/templateEngines/Twig/Twig1x/twig/twig/src/Node/SpacelessNode.php
  39. 137
      system/templateEngines/Twig/Twig1x/twig/twig/src/NodeVisitor/SandboxNodeVisitor.php
  40. 439
      system/templateEngines/Twig/Twig1x/twig/twig/src/Parser.php
  41. 129
      system/templateEngines/Twig/Twig1x/twig/twig/src/Sandbox/SecurityPolicy.php
  42. 733
      system/templateEngines/Twig/Twig1x/twig/twig/src/Template.php
  43. 161
      system/templateEngines/Twig/Twig1x/twig/twig/src/TemplateWrapper.php
  44. 54
      system/templateEngines/Twig/Twig1x/twig/twig/src/TokenParser/ExtendsTokenParser.php
  45. 72
      system/templateEngines/Twig/Twig1x/twig/twig/src/TokenParser/FromTokenParser.php
  46. 45
      system/templateEngines/Twig/Twig1x/twig/twig/src/TokenParser/ImportTokenParser.php
  47. 201
      system/templateEngines/Twig/Twig1x/twig/twig/src/TokenStream.php
  48. 7
      system/templateEngines/Twig/Twig1x/vendor/autoload.php
  49. 572
      system/templateEngines/Twig/Twig1x/vendor/composer/ClassLoader.php
  50. 350
      system/templateEngines/Twig/Twig1x/vendor/composer/InstalledVersions.php
  51. Some files were not shown because too many files have changed in this diff Show More

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,8 @@
{
"config": {
"platform-check": false
},
"require": {
"twig/twig": "1.41.*"
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,9 +0,0 @@
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,2 +0,0 @@
/tests export-ignore
/phpunit.xml.dist export-ignore

@ -1,6 +0,0 @@
/build
/composer.lock
/ext/twig/autom4te.cache/
/phpunit.xml
/vendor
.phpunit.result.cache

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save