Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -23,14 +23,9 @@ use Swoole\WebSocket\Server;
|
|||||||
defined('DB_ERROR_BUSY') or define('DB_ERROR_BUSY', 'The database is busy. Please try again later.');
|
defined('DB_ERROR_BUSY') or define('DB_ERROR_BUSY', 'The database is busy. Please try again later.');
|
||||||
defined('SELECT_IS_NULL') or define('SELECT_IS_NULL', 'Query data does not exist, please check the relevant conditions.');
|
defined('SELECT_IS_NULL') or define('SELECT_IS_NULL', 'Query data does not exist, please check the relevant conditions.');
|
||||||
defined('PARAMS_IS_NULL') or define('PARAMS_IS_NULL', 'Required items cannot be empty, please add.');
|
defined('PARAMS_IS_NULL') or define('PARAMS_IS_NULL', 'Required items cannot be empty, please add.');
|
||||||
defined('CONTROLLER_PATH') or define('CONTROLLER_PATH', APP_PATH . 'app/Controllers/');
|
defined('CONTROLLER_PATH') or define('CONTROLLER_PATH', APP_PATH . 'controllers/');
|
||||||
defined('CRONTAB_PATH') or define('CRONTAB_PATH', APP_PATH . 'app/Crontab/');
|
defined('MODEL_PATH') or define('MODEL_PATH', APP_PATH . 'models/');
|
||||||
defined('CLIENT_PATH') or define('CLIENT_PATH', APP_PATH . 'app/Client/');
|
defined('COMPONENT_PATH') or define('COMPONENT_PATH', APP_PATH . 'components/');
|
||||||
defined('TASK_PATH') or define('TASK_PATH', APP_PATH . 'app/Async/');
|
|
||||||
defined('LISTENER_PATH') or define('LISTENER_PATH', APP_PATH . 'app/Listener/');
|
|
||||||
defined('KAFKA_PATH') or define('KAFKA_PATH', APP_PATH . 'app/Kafka/');
|
|
||||||
defined('RPC_CLIENT_PATH') or define('RPC_CLIENT_PATH', APP_PATH . 'app/Client/Rpc/');
|
|
||||||
defined('MODEL_PATH') or define('MODEL_PATH', APP_PATH . 'app/Model/');
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,23 +13,22 @@ namespace Kiri;
|
|||||||
use Closure;
|
use Closure;
|
||||||
use Database\DatabasesProviders;
|
use Database\DatabasesProviders;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use Kiri;
|
||||||
use Kiri\Abstracts\{BaseApplication, Config, Kernel};
|
use Kiri\Abstracts\{BaseApplication, Config, Kernel};
|
||||||
use Kiri\Crontab\CrontabProviders;
|
use Kiri\Crontab\CrontabProviders;
|
||||||
use Kiri\Events\{OnAfterCommandExecute, OnBeforeCommandExecute};
|
use Kiri\Events\{OnAfterCommandExecute, OnBeforeCommandExecute};
|
||||||
use Kiri\FileListen\HotReload;
|
use Kiri\FileListen\HotReload;
|
||||||
use ReflectionException;
|
|
||||||
use Kiri\Server\ServerProviders;
|
use Kiri\Server\ServerProviders;
|
||||||
|
use ReflectionException;
|
||||||
use stdClass;
|
use stdClass;
|
||||||
use Swoole\Process;
|
use Swoole\Process;
|
||||||
use Swoole\Timer;
|
use Swoole\Timer;
|
||||||
use Symfony\Component\Console\{Application as ConsoleApplication,
|
use Symfony\Component\Console\{Application as ConsoleApplication,
|
||||||
Command\Command,
|
Command\Command,
|
||||||
Input\ArgvInput,
|
Input\ArgvInput,
|
||||||
Input\InputInterface,
|
|
||||||
Output\ConsoleOutput,
|
Output\ConsoleOutput,
|
||||||
Output\OutputInterface
|
Output\OutputInterface
|
||||||
};
|
};
|
||||||
use Kiri;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -231,7 +230,8 @@ class Application extends BaseApplication
|
|||||||
{
|
{
|
||||||
fire(new OnBeforeCommandExecute());
|
fire(new OnBeforeCommandExecute());
|
||||||
if (!($class instanceof HotReload)) {
|
if (!($class instanceof HotReload)) {
|
||||||
scan_directory(directory('app'), 'App');
|
scan_directory(COMPONENT_PATH, 'app\Components');
|
||||||
|
scan_directory(MODEL_PATH, 'app\Model');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->container->setBindings(OutputInterface::class, $output);
|
$this->container->setBindings(OutputInterface::class, $output);
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ use ReflectionException;
|
|||||||
use ReflectionFunction;
|
use ReflectionFunction;
|
||||||
use ReflectionMethod;
|
use ReflectionMethod;
|
||||||
use ReflectionProperty;
|
use ReflectionProperty;
|
||||||
use static;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Container
|
* Class Container
|
||||||
|
|||||||
Reference in New Issue
Block a user