{"size": 433, "ext": "js", "max_stars_repo_path": "src/phabricator/platform.js", "max_stars_repo_name": "DinkoMiletic/fakerito", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/phabricator/platform.js", "max_issues_repo_name": "DinkoMiletic/fakerito", "max_issues_repo_issues_event_min_datetime": "2021-05-10T06:39:48.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-24T11:05:58.000Z", "max_forks_repo_path": "src/phabricator/platform.js", "max_forks_repo_name": "DinkoMiletic/fakerito", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 21.65, "max_line_length": 69, "alphanum_fraction": 0.6789838337}
let currentPlatfrom = null;
const property = require('lodash/property');

function Phabricator (config) {
    this.config = config;
}

Phabricator.prototype.getConfig = function(key) {
    return property(key)(this.config);
}

module.exports = {
    createPlatform: function(config) {
        currentPlatfrom = new Phabricator(config.get('phabricator'));
    },
    getPlatform: function() {
        return currentPlatfrom;
    }
};
