Skip to content
Snippets Groups Projects
Commit 9b300db3 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Add a hook right after template initialization.

This allows custom themes to inject data for all templates by simply adding a new hook.
parent ecf34a08
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,7 @@ class SimpleSAML_XHTML_Template ...@@ -95,6 +95,7 @@ class SimpleSAML_XHTML_Template
$this->translator = new SimpleSAML\Locale\Translate($configuration, $defaultDictionary); $this->translator = new SimpleSAML\Locale\Translate($configuration, $defaultDictionary);
$this->localization = new \SimpleSAML\Locale\Localization($configuration); $this->localization = new \SimpleSAML\Locale\Localization($configuration);
$this->twig = $this->setupTwig(); $this->twig = $this->setupTwig();
SimpleSAML\Module::callHooks('templateInit', $this->data);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment