Skip to content

Commit

Permalink
chore(di): Remove method ServerLoader.getSettingsService
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Remove static method ServerLoader.getSettingsService. Use ServerLoader.settings insteadof
  • Loading branch information
Romakita committed Dec 23, 2018
1 parent a47a60f commit 59ae2b8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
20 changes: 11 additions & 9 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<!-- This template it's just here to help you for write your Issue -->

## Informations
## Information

Type | Version
---|---
Bug/Improvement/Question | 4.x

****
- **Version:** 4.x
- **Type:** Issue/Story

## Description
A few sentences describing the overall goals of the issue.

## Example

```
import {} from "@tsed/common";
```

## Acceptance criterias
## Acceptance criteria

- [ ] Example (log, usecase, etc...)
- [ ] Ts.ED version (bug/question)
- [ ] Criteria 1
4 changes: 2 additions & 2 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## Informations

Type | Migration
---|---|---
Type | Breaking change
---|---
Feature/Fix/Doc/Chore | Yes/No

****
Expand Down
10 changes: 1 addition & 9 deletions packages/common/src/server/components/ServerLoader.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Deprecated, isClass} from "@tsed/core";
import {isClass} from "@tsed/core";
import {InjectorService} from "@tsed/di";
import * as Express from "express";
import * as globby from "globby";
Expand Down Expand Up @@ -220,14 +220,6 @@ export abstract class ServerLoader implements IServerLifecycle {
return elseFn();
};

/**
*
*/
@Deprecated("Removed feature. Use ServerLoader.settings")
protected getSettingsService(): ServerSettingsService {
return this.settings;
}

/**
* Start the express server.
* @returns {Promise<any>|Promise}
Expand Down
2 changes: 0 additions & 2 deletions test/units/server/components/ServerLoader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ describe("ServerLoader", () => {
this.useStub = Sinon.stub(this.server.expressApp, "use");
this.setStub = Sinon.stub(this.server.expressApp, "set");
this.engineStub = Sinon.stub(this.server.expressApp, "engine");
// deprecated
this.server.getSettingsService();
});

after(() => {
Expand Down

0 comments on commit 59ae2b8

Please sign in to comment.