Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Mandarine.Global

import { Mandarine } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/main-core/Mandarine.ns.ts"; 

const { Global } = Mandarine;

Handles the interaction with the global environment of Mandarine Mandarine uses a global environment to store and manipulate essential information to work

§Functions

Mandarine.Global.getComponentsRegistry

Get the Components' registry from Mandarine's global environment

Mandarine.Global.getEntityManager

Get the entity manager to manipulate the current DB connection

Mandarine.Global.getInternalProps
Mandarine.Global.getMandarineConfiguration

Get the properties mandarine is using. If no properties are set by the user then it gets the default properties.

Mandarine.Global.getMandarineDotEnv

Read .env file located under the current working directory and adds its values to Deno.env

Mandarine.Global.getMandarineGlobal

Get the global environment based on interface @MandarineGlobalInterface

Mandarine.Global.getMandarineInitialProps

Get the properties (MandarineJsonProperties) from mandarine.json

Mandarine.Global.getMicroserviceManager

Get the microservice manager

Mandarine.Global.getMiddleware

Get the list of registered middlewares Middleware are added to the global environment in order to not request the DI container every time there is an HTTP Request

Mandarine.Global.getNativeComponentsRegistry
Mandarine.Global.getResourceHandlerRegistry

Get the resource handler registry for incoming requests.

Mandarine.Global.getSessionContainer

Get the instance of the Session Container

Mandarine.Global.getTemplateManager

Get the entity manager to manipulate the current DB connection

Mandarine.Global.initializeDefaultSessionContainer

Initializes the Session Container. The session container is used to determine the configuration of Mandarine's sessions

Mandarine.Global.initializeMandarineGlobal

Initializes Mandarine Global Environment.

Mandarine.Global.initializeMiddleware

Initializes the middleware list in the global environment.

Mandarine.Global.initializeNativeComponents

Initializes the middleware list in the global environment.

Mandarine.Global.initializeSecurityInternals

Initializes the core modules of Mandarine's security core.

Mandarine.Global.readConfigByDots

Read Mandarine's configuration by dots

Mandarine.Global.setConfiguration

Set a new configuration for the mandarine properties If properties are ignored, it will set the default values.

§Interfaces

Mandarine.Global.MandarineGlobalInterface

Contains all the Global objects that Mandarine uses