-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
37 lines (31 loc) · 915 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
require 'vendor/autoload.php';
require 'Pluf.php';
use Pluf\Module;
Pluf::start('config.php');
/*
* Uncomment to install
*
* Init DB and create new tenant.
*/
ini_set('display_errors', 'on');
error_reporting(E_ALL);
// header('Content-Type: text/plain');
// try {
// $m = new Pluf_Migration(Pluf::f('installed_apps'));
// $m->install();
// // Create default tenant
// $tenant = new Pluf_Tenant(1);
// $tenant->title = 'Main tenant';
// $tenant->description = 'Description of the main tenant';
// $tenant->domain = 'pluf.ir';
// $tenant->subdomain = 'www';
// $tenant->validate = true;
// $tenant->create();
// // Initiate default tenant
// Tenant_Service::initiateTenant($tenant);
// } catch (Exception $e) {
// var_export($e);
// }
$url = new Pluf_HTTP_URL('mod_rewrite');
Pluf_Dispatcher::dispatch($url->getAction(), Module::loadControllers());