-
Notifications
You must be signed in to change notification settings - Fork 0
/
webtools.php
37 lines (32 loc) · 1.55 KB
/
webtools.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
37
<?php
/*
+------------------------------------------------------------------------+
| Phalcon Developer Tools |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2016 Phalcon Team (https://www.phalconphp.com) |
+------------------------------------------------------------------------+
| This source file is subject to the New BSD License that is bundled |
| with this package in the file LICENSE.txt. |
| |
| If you did not receive a copy of the license and are unable to |
| obtain it through the world-wide-web, please send an email |
| to [email protected] so we can send you a copy immediately. |
+------------------------------------------------------------------------+
| Authors: Andres Gutierrez <[email protected]> |
| Eduar Carvajal <[email protected]> |
| Serghei Iakovlev <[email protected]> |
+------------------------------------------------------------------------+
*/
use Phalcon\Bootstrap;
include 'webtools.config.php';
include PTOOLSPATH . '/bootstrap/autoload.php';
$bootstrap = new Bootstrap([
'ptools_path' => PTOOLSPATH,
'ptools_ip' => PTOOLS_IP,
'base_path' => BASE_PATH,
]);
if (APPLICATION_ENV === ENV_TESTING) {
return $bootstrap->run();
} else {
echo $bootstrap->run();
}