Support deno 1.3.x/0.67.0; replace handlebars with view_engine library
This commit is contained in:
@@ -8,6 +8,8 @@ import {Status} from '../const/status.ts'
|
||||
import Instantiable from '../../../di/src/type/Instantiable.ts'
|
||||
import {Collection} from '../collection/Collection.ts'
|
||||
import {path} from '../external/std.ts'
|
||||
import Scaffolding from '../unit/Scaffolding.ts'
|
||||
import {Container} from '../../../di/src/Container.ts'
|
||||
|
||||
/**
|
||||
* Central class for Daton applications.
|
||||
@@ -22,6 +24,7 @@ export default class Application {
|
||||
|
||||
constructor(
|
||||
protected logger: Logging,
|
||||
protected injector: Container,
|
||||
protected rleh: RunLevelErrorHandler,
|
||||
/**
|
||||
* Array of unit classes to run for this application.
|
||||
@@ -112,7 +115,7 @@ export default class Application {
|
||||
* @type string
|
||||
*/
|
||||
get root() {
|
||||
return path.resolve('.')
|
||||
return this.injector.make(Scaffolding).base_dir
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -120,7 +123,7 @@ export default class Application {
|
||||
* @type string
|
||||
*/
|
||||
get app_root() {
|
||||
return path.resolve('./app')
|
||||
return this.injector.make(Scaffolding).base_dir
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user