Skip to content

Commit

Permalink
chore(npm): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Feb 25, 2024
1 parent c357b01 commit 0b1f4d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/view",
"version": "4.17.0",
"version": "4.18.0",
"description": "The Athenna template engine. Built on top of Edge.js.",
"license": "MIT",
"author": "João Lenon <[email protected]>",
Expand Down
4 changes: 4 additions & 0 deletions src/providers/ViewProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
* file that was distributed with this source code.
*/

import { Env, Config } from '@athenna/config'
import { ViewImpl } from '#src/views/ViewImpl'
import { ServiceProvider } from '@athenna/ioc'

export class ViewProvider extends ServiceProvider {
public register() {
const view = new ViewImpl()

view.addProperty('Env', Env)
view.addProperty('Config', Config)

this.container.instance('Athenna/Core/View', view)

if (Config.exists('view.disk')) {
Expand Down

0 comments on commit 0b1f4d3

Please sign in to comment.