Skip to main content
Module

x/momentum/static-files/deps.ts>Platform

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
class Platform
Abstract
import { Platform } from "https://deno.land/x/momentum@v0.8.2/static-files/deps.ts";

The Momentum platform is the entry point for every Momentum application. Each application has exactly one platform and services are bound the scope of the platform.

Constructors

new
Platform(container: DiContainer)

Properties

protected
logger: Logger
readonly
container

Get the platforms root dependency injection container

readonly
diCache

Get the platforms dependency injection cache

readonly
module

Get the platforms entry module

Methods

Bootstrap a Momentum application on a given platform.

postBootstrap(): Promise<void>
preBootstrap(): Promise<void>

Register a global logging filter.

Register a global logging formatter.

Register a global logging provider.

resolve<TReturn = unknown>(identifier: TypeIdentifier)

Resolves an instance of @see TReturn