-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathBootstrap.php
29 lines (27 loc) · 902 Bytes
/
Bootstrap.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
<?php
class Bootstrap extends \Yaf\Bootstrap_Abstract
{
public function _initCore()
{
ini_set('yaf.library', LIB_PATH);
\Yaf\Loader::import(CORE_PATH.'/Helper.php');
\Yaf\Loader::import(CORE_PATH.'/Basic.php');
\Yaf\Loader::import(CORE_PATH.'/Model.php');
\Yaf\Loader::import(CORE_PATH.'/BasicPc.php');
\Yaf\Loader::import(CORE_PATH.'/BasicAdmin.php');
\Yaf\Loader::import(FUNC_PATH.'/F_Basic.php');
\Yaf\Loader::import(FUNC_PATH.'/F_Network.php');
\Yaf\Loader::import(FUNC_PATH.'/F_String.php');
\Yaf\Loader::import(FUNC_PATH.'/F_Validate.php');
}
public function _initLoader()
{
\Yaf\Loader::import(APP_PATH . '/vendor/autoload.php');
}
public function _initRoute() {}
public function _initPlugin(\Yaf\Dispatcher $dispatcher)
{
$router = new RouterPlugin();
$dispatcher->registerPlugin($router);
}
}