Skip to content

Commit

Permalink
dependencies: Upgrade to Smarty 5
Browse files Browse the repository at this point in the history
  • Loading branch information
kumy committed May 24, 2024
1 parent 89a933b commit 75dea24
Show file tree
Hide file tree
Showing 41 changed files with 872 additions and 1,058 deletions.
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"sentry/sentry": "^4.6",
"symfony/http-client": "^5.4",
"smarty-gettext/smarty-gettext": "^1.7",
"smarty/smarty": "<4.5",
"smarty/smarty": "^5",
"tecnickcom/tcpdf": "^6.3",
"torann/json-ld": "0.0.19",
"xfra35/f3-access": "^1.2",
Expand All @@ -73,7 +73,11 @@
},
"autoload": {
"classmap": [
"website/app/"
"website/app/",
"website/app-templates/smarty/extension/"
],
"files": [
"website/app-templates/smarty/plugins/tag.fa.php"
]
},
"require-dev": {
Expand Down
30 changes: 17 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

class SmartyCallablePassThroughExtension extends Smarty\Extension\Base {
public function getModifierCallback(string $modifierName) {
if (is_callable($modifierName)) {
return $modifierName;
}

return null;
}
}
Loading

0 comments on commit 75dea24

Please sign in to comment.