Overview
The @sodacore/core package is the framework of the application and is required for any and all applications you intend to build. It provides the autowire, dependency injection, and handle most of the event hooks.
The core package provides a variety of providers and modules that are highlighted below.
Providers
Providers are classes that provide functionality to the application, below are the core package's built-ins.
Provider | Description |
---|---|
Logger | The logger is an extendable logging class that you can use to build your own logger, or you can build one from scratch. |
ThreadProvider | The thread provider is a class that allows you to access available threads and dispatch tasks to them. |
Modules
Module | Description |
---|---|
Application | The application module is the main module that is used to bootstrap the application. |
Autowire | The autowire module is used to automatically load your files into the application and handle importing, etc. |
Events | The events module is used to handle events and event listeners and dispatching hooks. |
Runner | The runner module is used to handle the cron-tasks. |
Services | The services are a module that provide a service to the application, like a HTTP server or TCP connection, these then should handle their own controllers and context objects to be dispatched to. |
Threads | The threads module is used to handle the creation, IPC and general management of threads. |
Helpers
Helper | Description |
---|---|
Constants | The constants helper is used to provide a set of constants that are used throughout the application. |
Utils | The utils helper is used to provide a set of utility functions that are used throughout the application. |
[] |