You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
470 B
JavaScript
15 lines
470 B
JavaScript
7 months ago
|
var PHPExpress = function (opts) {
|
||
|
opts = opts || {};
|
||
|
|
||
|
this.binPath = opts.binPath || '/usr/bin/php',
|
||
|
this.runnerPath = opts.runnerPath || (__dirname + '/../../page_runner.php');
|
||
|
|
||
|
// default to true for easier PHP debugging
|
||
|
this.displayErrors = typeof opts.displayErrors === 'undefined' ? true : opts.displayErrors;
|
||
|
|
||
|
this.engine = require('./engine').bind(this);
|
||
|
this.router = require('./router').bind(this);
|
||
|
};
|
||
|
|
||
|
module.exports = PHPExpress;
|