lib/di.js
function requireGlob(pattern) {
    return _.map(glob.sync(pattern), function (file) {
        var required = require(file);

        resolveProvide(required);
        resolveInjects(required);

        return required;
    });
  }
function requireGlob(pattern) {
    return _.map(glob.sync(pattern), function (file) {
        var required = require(file);

        resolveProvide(required);
        resolveInjects(required);

        return required;
    });
  }
function requireGlob ( pattern ) { return _ . map ( glob . sync ( pattern ) , function ( file ) { var required = require ( file ) ; resolveProvide ( required ) ; resolveInjects ( required ) ; return required ; } ) ; }
requireGlob requires all files matching the glob pattern and provides
a list of injectables based on that pattern.
@param  {String} pattern A glob pattern to search for files to require.
@return {Array.<Object>} A list of require'd objects to provide to the injector.
requireGlob requires all files matching the glob pattern and provides a list of injectables based on that pattern .