A Promise which resolves when this Component has been successfully initialized.
The ORM that should be used by the application. Defaults to 'sequelize' Any other ORM if used should have an ORMAdapter defined in ormAdapterClasses
The adapters for any ORMs used by this application. The key of the adapter to be used should be specified in orm
The Serializer that should be used for RESTful operations.
The View object for the application that is used to render various view files..
The directory that contains the view files for this module.
Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration.
Translates a path alias into an actual path.
The alias to be translated.
The translated alias.
Returns the full URL of the request.
Returns the ORM Adapter.
The ORM Adapter class.
Returns the viewPath.
The actual viewPath.
The model class for the ORM being used. Eg:- [[sequelize.Model]] for Sequelize This should be set in the entry script of the application like:
import { DataTypes, Model } from 'sequelize';
Application.ormModelClass = Model;
Responds to the client(eg:- browser) depending on the data.
Adds necessary headers and status code to the given response.
Registers a path alias.
A path alias is a short name representing a long path (a file path, a URL, etc.)
Sets the ORM Adapter.
Sets the viewPath.
The path to be set.
Generated using TypeDoc
Application is the base class for all web application classes.
ErrorHandler $errorHandler The error handler application component. This property is read-only.
string $homeUrl The homepage URL.
Request $request The request component. This property is read-only.
Response $response The response component. This property is read-only.
Session $session The session component. This property is read-only.
User $user The user component. This property is read-only.
Mahesh S Warrier https://github.com/codespede