-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap.php
More file actions
41 lines (32 loc) · 826 Bytes
/
Copy pathbootstrap.php
File metadata and controls
41 lines (32 loc) · 826 Bytes
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
37
38
39
40
41
<?php
/**
* Common bootstrap which is basically responsible for initialize the framework.
*/
namespace Finance;
use Common\Bootstrap\BootstrapAbstract;
/** The repo root directory */
define('ROOT_DIR', realpath(__DIR__));
/** The base class directory */
define('BASE_DIR', realpath(ROOT_DIR . '/class'));
/** The name of the project */
define('PROJECT_NAME', 'vend-tools');
require BASE_DIR . '/Common/Bootstrap/BootstrapAbstract.php';
/**
* Bootstrap class
*
* @package Finance
*/
class Bootstrap extends BootstrapAbstract
{
/**
* Starts the bootstrap process.
*
* @return void
*/
public function start()
{
$this->basicBootstrap(ROOT_DIR, ROOT_DIR . '/vendor', BASE_DIR, defined('APP_ROOT') ? APP_ROOT : null);
}
}
$bootstrap = new Bootstrap();
$bootstrap->start();