Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
florin-botea committed Jan 8, 2023
1 parent 7b49de0 commit 202cf01
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Illuminate/PhpTemplatesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,10 @@ public function register(): void
);

$this->app->singleton('phpt', function() {
$cfg = new Config('default', config('phpt.src_path'));
// register config aliased
$cfg->setAlias(config('phpt.aliases', []));

$eventHolder = new EventHolder();
$template = new Template(config('phpt.cache_path'), $cfg, $eventHolder, [
$template = new Template(config('phpt.src_path'), config('phpt.cache_path'), [
'debug' => config('phpt.debug')
]);
$template->setAlias(config('phpt.aliases', []));

return $template;
});
Expand Down

0 comments on commit 202cf01

Please sign in to comment.