modify plugin name
This commit is contained in:
@@ -11,6 +11,7 @@ namespace Kiri;
|
|||||||
|
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
|
use Database\CreateConnectionPool;
|
||||||
use Database\DatabasesProviders;
|
use Database\DatabasesProviders;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Kiri;
|
use Kiri;
|
||||||
@@ -19,6 +20,8 @@ use Kiri\Crontab\CrontabProviders;
|
|||||||
use Kiri\Events\{OnAfterCommandExecute, OnBeforeCommandExecute};
|
use Kiri\Events\{OnAfterCommandExecute, OnBeforeCommandExecute};
|
||||||
use Kiri\FileListen\HotReload;
|
use Kiri\FileListen\HotReload;
|
||||||
use Kiri\Server\ServerProviders;
|
use Kiri\Server\ServerProviders;
|
||||||
|
use Psr\Container\ContainerExceptionInterface;
|
||||||
|
use Psr\Container\NotFoundExceptionInterface;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
use stdClass;
|
use stdClass;
|
||||||
use Swoole\Process;
|
use Swoole\Process;
|
||||||
@@ -223,7 +226,13 @@ class Application extends BaseApplication
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param Command $class
|
||||||
|
* @param $input
|
||||||
|
* @param $output
|
||||||
|
* @return void
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
|
* @throws ContainerExceptionInterface
|
||||||
|
* @throws NotFoundExceptionInterface
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private function enableFileChange(Command $class, $input, $output): void
|
private function enableFileChange(Command $class, $input, $output): void
|
||||||
@@ -243,10 +252,14 @@ class Application extends BaseApplication
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @return void
|
||||||
|
* @throws ContainerExceptionInterface
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
|
* @throws NotFoundExceptionInterface
|
||||||
|
* @throws ReflectionException
|
||||||
*/
|
*/
|
||||||
protected function fileListener(): void
|
protected function fileListener(): void
|
||||||
{
|
{
|
||||||
|
$this->getEventDispatch()->dispatch(new CreateConnectionPool());
|
||||||
$config = Config::get('scanner', []);
|
$config = Config::get('scanner', []);
|
||||||
if (is_array($config)) foreach ($config as $key => $value) {
|
if (is_array($config)) foreach ($config as $key => $value) {
|
||||||
scan_directory($value, $key);
|
scan_directory($value, $key);
|
||||||
|
|||||||
Reference in New Issue
Block a user