Skip to content

Commit

Permalink
Init 5.x upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Sep 21, 2023
1 parent 4c278d8 commit 1c7e32f
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/View/AppView.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class AppView extends View {
* @return void
*/
public function initialize(): void {
$this->addHelper('Tools.Time', ['engine' => 'Tools\Utility\FrozenTime', 'outputTimezone' => 'Europe/Berlin']);
$this->addHelper('Tools.Time', ['outputTimezone' => 'Europe/Berlin']);
$this->addHelper('Tools.Number');
$this->addHelper('Tools.Text');

Expand Down Expand Up @@ -90,19 +90,4 @@ public function initialize(): void {
}
}

/**
* @param string $helper
* @param array<string, mixed> $config
* @return void
*/
protected function addHelper(string $helper, array $config = []): void {
[$plugin, $name] = pluginSplit($helper);
if ($plugin) {
$config['class'] = $helper;
$config['config'] = $config;
}

$this->helpers[$name] = $config;
}

}

0 comments on commit 1c7e32f

Please sign in to comment.