Skip to content

Commit d340e46

Browse files
committed
fix: make Controler interface consitent with the Icontroller contract
1 parent 464f615 commit d340e46

3 files changed

Lines changed: 19 additions & 8 deletions

File tree

packages/core/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @h3ravel/core
22

3+
## 1.5.2
4+
5+
### Patch Changes
6+
7+
- fix: make Controler interface consitent with the Icontroller contract
8+
9+
## 1.5.1
10+
11+
### Patch Changes
12+
13+
- fix: make Controler interface consitent with the Icontroller contract
14+
315
## 1.5.0
416

517
### Minor Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@h3ravel/core",
3-
"version": "1.5.0",
3+
"version": "1.5.2",
44
"description": "Core application container, lifecycle management and service providers for H3ravel.",
55
"type": "module",
66
"main": "./dist/index.js",

packages/core/src/Controller.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { HttpContext, IController } from '@h3ravel/shared'
2-
31
import { Application } from '.'
2+
import { IController } from '@h3ravel/shared'
43

54
/**
65
* Base controller class
@@ -12,9 +11,9 @@ export abstract class Controller implements IController {
1211
this.app = app
1312
}
1413

15-
public show (_ctx: HttpContext): any { return }
16-
public index (_ctx: HttpContext): any { return }
17-
public store (_ctx: HttpContext): any { return }
18-
public update (_ctx: HttpContext): any { return }
19-
public destroy (_ctx: HttpContext): any { return }
14+
public show (..._ctx: any[]): any { return }
15+
public index (..._ctx: any[]): any { return }
16+
public store (..._ctx: any[]): any { return }
17+
public update (..._ctx: any[]): any { return }
18+
public destroy (..._ctx: any[]): any { return }
2019
}

0 commit comments

Comments
 (0)