mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-03 12:17:48 +08:00
clean up dirname() (#4307)
This commit is contained in:
parent
90214aa6ae
commit
ca4bb3a648
@ -9,4 +9,4 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
require_once dirname(dirname(__FILE__)) . '/vendor/autoload.php';
|
||||
require_once dirname(__DIR__) . '/vendor/autoload.php';
|
||||
|
@ -9,4 +9,4 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
require_once dirname(dirname(__FILE__)) . '/vendor/autoload.php';
|
||||
require_once dirname(__DIR__) . '/vendor/autoload.php';
|
||||
|
@ -9,4 +9,4 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
require_once dirname(dirname(__FILE__)) . '/vendor/autoload.php';
|
||||
require_once dirname(__DIR__) . '/vendor/autoload.php';
|
||||
|
@ -16,7 +16,7 @@ error_reporting(E_ALL);
|
||||
date_default_timezone_set('Asia/Shanghai');
|
||||
|
||||
$basePath = getcwd();
|
||||
$dir = dirname(dirname(dirname(__DIR__)));
|
||||
$dir = dirname(__DIR__, 3);
|
||||
|
||||
if (file_exists($dir . '/vendor/autoload.php')) {
|
||||
$basePath = $dir;
|
||||
|
@ -11,7 +11,7 @@ declare(strict_types=1);
|
||||
*/
|
||||
putenv('SCAN_CACHEABLE=(true)');
|
||||
|
||||
$dir = dirname(dirname(__DIR__));
|
||||
$dir = dirname(__DIR__, 2);
|
||||
$cwd = getcwd();
|
||||
|
||||
switch (true) {
|
||||
|
Loading…
Reference in New Issue
Block a user