forked from phalcon/phalcon-devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebtools.php
More file actions
33 lines (28 loc) · 676 Bytes
/
webtools.php
File metadata and controls
33 lines (28 loc) · 676 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
<?php
/**
* This file is part of the Phalcon Developer Tools.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
use Phalcon\DevTools\Bootstrap;
/**
* @psalm-suppress MissingFile
*/
include 'webtools.config.php';
include PTOOLSPATH . '/bootstrap/autoload.php';
/**
* @psalm-suppress UndefinedConstant
*/
$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();
}