改名
This commit is contained in:
+2
-2
@@ -35,10 +35,10 @@ class Gii
|
||||
/** @var Input */
|
||||
private Input $input;
|
||||
|
||||
public string $modelPath = APP_PATH . '/app/Models/';
|
||||
public string $modelPath = APP_PATH . 'app/Models/';
|
||||
public string $modelNamespace = 'App\\Models\\';
|
||||
|
||||
public string $controllerPath = APP_PATH . '/app/Http/Controllers/';
|
||||
public string $controllerPath = APP_PATH . 'app/Http/Controllers/';
|
||||
public string $controllerNamespace = 'App\\Http\\Controllers\\';
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -24,10 +24,10 @@ abstract class GiiBase
|
||||
/** @var Input */
|
||||
protected Input $input;
|
||||
|
||||
public string $modelPath = APP_PATH . '/app/Models/';
|
||||
public string $modelPath = APP_PATH . 'app/Models/';
|
||||
public string $modelNamespace = 'App\Models\\';
|
||||
|
||||
public string $controllerPath = APP_PATH . '/app/Http/Controllers/';
|
||||
public string $controllerPath = APP_PATH . 'app/Http/Controllers/';
|
||||
public string $controllerNamespace = 'App\\Http\\Controllers\\';
|
||||
|
||||
public ?string $module = null;
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ class ' . $managerName . ' implements Task
|
||||
|
||||
}';
|
||||
|
||||
$file = APP_PATH . '/app/Async/' . $managerName . '.php';
|
||||
$file = APP_PATH . 'app/Async/' . $managerName . '.php';
|
||||
if (file_exists($file)) {
|
||||
unlink($file);
|
||||
}
|
||||
|
||||
@@ -626,7 +626,7 @@ class Router extends HttpService implements RouterInterface
|
||||
*/
|
||||
public function loadRouterSetting()
|
||||
{
|
||||
$this->loadRouteDir(APP_PATH . '/routes');
|
||||
$this->loadRouteDir(APP_PATH . 'routes');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -56,9 +56,9 @@ abstract class BaseApplication extends Service
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public string $storage = APP_PATH . '/storage';
|
||||
public string $storage = APP_PATH . 'storage';
|
||||
|
||||
public string $envPath = APP_PATH . '/.env';
|
||||
public string $envPath = APP_PATH . '.env';
|
||||
|
||||
/**
|
||||
* Init constructor.
|
||||
|
||||
@@ -275,7 +275,7 @@ class ServerInotify extends Process
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (in_array($dir, [APP_PATH . '/config', APP_PATH . '/commands', APP_PATH . '/.git', APP_PATH . '/.gitee'])) {
|
||||
if (in_array($dir, [APP_PATH . 'config', APP_PATH . 'commands', APP_PATH . '.git', APP_PATH . '.gitee'])) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -650,7 +650,7 @@ if (!function_exists('sweep')) {
|
||||
* @param string $configPath
|
||||
* @return array|false|string|null
|
||||
*/
|
||||
function sweep($configPath = APP_PATH . '/config'): bool|array|string|null
|
||||
function sweep($configPath = APP_PATH . 'config'): bool|array|string|null
|
||||
{
|
||||
$array = [];
|
||||
foreach (glob($configPath . '/*') as $config) {
|
||||
|
||||
Reference in New Issue
Block a user