Skip to content

Мертвый код в конструкторе класса Application #1597

Answered by MrWaip
MrWaip asked this question in Q&A
Discussion options

You must be logged in to vote
class Application extends events.EventEmitter {
  constructor() {
    super();
    this.initialization = true;
    this.finalization = false;
    this.root = process.cwd();
    this.path = path.join(this.root, 'application');

    this.schemas = new Schemas('schemas', this);
    this.static = new Resources('static', this);
    this.resources = new Resources('resources', this);
    this.api = new Interfaces('api', this);
    this.lib = new Modules('lib', this);
    this.domain = new Modules('domain', this);

    new Modules('domain', this);
    this.starts = [];

    this.Application = Application;
    this.Error = Error;
    this.cert = null;
    this.config = null;
    this.logger = null;

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@tshemsedinov
Comment options

@tshemsedinov
Comment options

@MrWaip
Comment options

@tshemsedinov
Comment options

@tshemsedinov
Comment options

Answer selected by MrWaip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants