lib/project.js
function injectDependencies(serviceLoader) {

    var EventEmitter = require('events').EventEmitter;
    serviceLoader.inject('events', new EventEmitter());

    //inject itself so that services can directly use the service loader
    serviceLoader.inject('serviceLoader', serviceLoader);

    //app will be injected by middleware, so this is a placeholder to force our dependency calculations to be correct
    serviceLoader.inject('app', {}, ['middleware']);
}
function injectDependencies(serviceLoader) {

    var EventEmitter = require('events').EventEmitter;
    serviceLoader.inject('events', new EventEmitter());

    //inject itself so that services can directly use the service loader
    serviceLoader.inject('serviceLoader', serviceLoader);

    //app will be injected by middleware, so this is a placeholder to force our dependency calculations to be correct
    serviceLoader.inject('app', {}, ['middleware']);
}
function injectDependencies ( serviceLoader ) { var EventEmitter = require ( 'events' ) . EventEmitter ; serviceLoader . inject ( 'events' , new EventEmitter ( ) ) ; //inject itself so that services can directly use the service loader serviceLoader . inject ( 'serviceLoader' , serviceLoader ) ; //app will be injected by middleware, so this is a placeholder to force our dependency calculations to be correct serviceLoader . inject ( 'app' , { } , [ 'middleware' ] ) ; }
Injects items into the loader that aren't loaded through the normal services mechanism
Injects items into the loader that aren t loaded through the normal services mechanism