'use strict';
|
|
/**
|
* BaseContextClass is a base class that can be extended,
|
* it's instantiated in context level,
|
* {@link Helper}, {@link Service} is extending it.
|
*/
|
class BaseContextClass {
|
|
/**
|
* @class
|
* @param {Context} ctx - context instance
|
* @since 1.0.0
|
*/
|
constructor(ctx) {
|
/**
|
* @member {Application} BaseContextClass#app
|
* @since 1.0.0
|
*/
|
this.app = ctx;
|
/**
|
* @member {Config} BaseContextClass#config
|
* @since 1.0.0
|
*/
|
this.config = ctx.config;
|
/**
|
* @member {Service} BaseContextClass#service
|
* @since 1.0.0
|
*/
|
this.service = ctx.service;
|
}
|
}
|
|
module.exports = BaseContextClass;
|