lib/foundation/Application.js
function App() {
    require('colors');

    /**
     * All of the developer defined middlewares.
     *
     * @var {Array}
     * @protected
     */
    this.__middlewares = [];

    /**
     * The filter instance
     * @var {Object}
     */
    this.filter;

    /**
     * The list of loaded service providers.
     *
     * @var {Object}
     * @protected
     */
    this.__loadedProviders = {};

    /**
     * Indicates if the application has "booted".
     *
     * @var {Boolean}
     * @protected
     */
    this.__booted = false;

    /**
     * The array of booting callbacks.
     *
     * @var {Array}
     * @protected
     */
    this.__bootingCallbacks = [];

    /**
     * The array of booted callbacks.
     *
     * @var {Array}
     * @protected
     */
    this.__bootedCallbacks = [];

    /**
     * Node HTTP server reference.
     *
     * @var {Object}
     * @protected
     */
    this.__server;

    /**
     * The application locals object.
     *
     * @var {Object}
     */
    this.locals = {};

    /**
     * Aliases for internal Positron module
     *
     * @type {Object}
     * @protected
     */
    this.__aliases = {};

    var self = this;

    /**
     * Run the application and send the response.
     *
     * @param  request
     * @param  response
     * @return {void}
     */
    this.run = function (request, response) {
        var reqDomain = domain.create();

        reqDomain
            .on('error', self.handleError.bind(self, request, response))
            .run(function () {
                self.__getStackedClient().handle(request, response);
            });
    };

}
function App() {
    require('colors');

    /**
     * All of the developer defined middlewares.
     *
     * @var {Array}
     * @protected
     */
    this.__middlewares = [];

    /**
     * The filter instance
     * @var {Object}
     */
    this.filter;

    /**
     * The list of loaded service providers.
     *
     * @var {Object}
     * @protected
     */
    this.__loadedProviders = {};

    /**
     * Indicates if the application has "booted".
     *
     * @var {Boolean}
     * @protected
     */
    this.__booted = false;

    /**
     * The array of booting callbacks.
     *
     * @var {Array}
     * @protected
     */
    this.__bootingCallbacks = [];

    /**
     * The array of booted callbacks.
     *
     * @var {Array}
     * @protected
     */
    this.__bootedCallbacks = [];

    /**
     * Node HTTP server reference.
     *
     * @var {Object}
     * @protected
     */
    this.__server;

    /**
     * The application locals object.
     *
     * @var {Object}
     */
    this.locals = {};

    /**
     * Aliases for internal Positron module
     *
     * @type {Object}
     * @protected
     */
    this.__aliases = {};

    var self = this;

    /**
     * Run the application and send the response.
     *
     * @param  request
     * @param  response
     * @return {void}
     */
    this.run = function (request, response) {
        var reqDomain = domain.create();

        reqDomain
            .on('error', self.handleError.bind(self, request, response))
            .run(function () {
                self.__getStackedClient().handle(request, response);
            });
    };

}
function App ( ) { require ( 'colors' ) ; /**
     * All of the developer defined middlewares.
     *
     * @var {Array}
     * @protected
     */ this . __middlewares = [ ] ; /**
     * The filter instance
     * @var {Object}
     */ this . filter ; /**
     * The list of loaded service providers.
     *
     * @var {Object}
     * @protected
     */ this . __loadedProviders = { } ; /**
     * Indicates if the application has "booted".
     *
     * @var {Boolean}
     * @protected
     */ this . __booted = false ; /**
     * The array of booting callbacks.
     *
     * @var {Array}
     * @protected
     */ this . __bootingCallbacks = [ ] ; /**
     * The array of booted callbacks.
     *
     * @var {Array}
     * @protected
     */ this . __bootedCallbacks = [ ] ; /**
     * Node HTTP server reference.
     *
     * @var {Object}
     * @protected
     */ this . __server ; /**
     * The application locals object.
     *
     * @var {Object}
     */ this . locals = { } ; /**
     * Aliases for internal Positron module
     *
     * @type {Object}
     * @protected
     */ this . __aliases = { } ; var self = this ; /**
     * Run the application and send the response.
     *
     * @param  request
     * @param  response
     * @return {void}
     */ this . run = function ( request , response ) { var reqDomain = domain . create ( ) ; reqDomain . on ( 'error' , self . handleError . bind ( self , request , response ) ) . run ( function ( ) { self . __getStackedClient ( ) . handle ( request , response ) ; } ) ; } ; }
Create a Quorra application.

@extend Container
@return {Function}
@api public
Create a Quorra application .