2015-10-01 00:30:16 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Module dependencies
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Local dependencies.
|
|
|
|
const Strapi = require('./Strapi');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Expose `Strapi` factory
|
|
|
|
* (maintains backwards compatibility with constructor usage).
|
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = strapiFactory;
|
|
|
|
|
|
|
|
function strapiFactory() {
|
|
|
|
return new Strapi();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Backwards compatibility for Strapi singleton usage.
|
|
|
|
const singleton = strapiFactory();
|
2015-12-02 11:18:05 +01:00
|
|
|
strapiFactory.isLocalStrapiValid = singleton.isLocalStrapiValid.bind(singleton);
|
|
|
|
strapiFactory.isStrapiAppSync = singleton.isStrapiAppSync.bind(singleton);
|