diff --git a/content/fundamentals/execution-context.md b/content/fundamentals/execution-context.md index 7c9afae0f6..9c6c0c23ed 100644 --- a/content/fundamentals/execution-context.md +++ b/content/fundamentals/execution-context.md @@ -117,7 +117,7 @@ export interface ExecutionContext extends ArgumentsHost { } ``` -The `getHandler()` method returns a reference to the handler about to be invoked. The `getClass()` method returns the type of the `Controller` class which this particular handler belongs to. For example, in an HTTP context, if the currently processed request is a `POST` request, bound to the `create()` method on the `CatsController`, `getHandler()` returns a reference to the `create()` method and `getClass()` returns the `CatsController` **type** (not instance). +The `getHandler()` method returns a reference to the handler about to be invoked. The `getClass()` method returns the type of the `Controller` class which this particular handler belongs to. For example, in an HTTP context, if the currently processed request is a `POST` request, bound to the `create()` method on the `CatsController`, `getHandler()` returns a reference to the `create()` method and `getClass()` returns the `CatsController` **class** (not instance). ```typescript const methodKey = ctx.getHandler().name; // "create"