111
This commit is contained in:
@@ -21,6 +21,7 @@ use Kiri\Crontab\CrontabProviders;
|
|||||||
use Kiri\Exception\NotFindClassException;
|
use Kiri\Exception\NotFindClassException;
|
||||||
use Kiri\FileListen\FileChangeCustomProcess;
|
use Kiri\FileListen\FileChangeCustomProcess;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
|
use Server\Events\OnBeforeCommandExecute;
|
||||||
use Server\ResponseInterface;
|
use Server\ResponseInterface;
|
||||||
use Server\ServerCommand;
|
use Server\ServerCommand;
|
||||||
use Server\ServerProviders;
|
use Server\ServerProviders;
|
||||||
@@ -238,6 +239,7 @@ class Application extends BaseApplication
|
|||||||
*/
|
*/
|
||||||
private function enableFileChange(Command $class, $input, $output): void
|
private function enableFileChange(Command $class, $input, $output): void
|
||||||
{
|
{
|
||||||
|
fire(new OnBeforeCommandExecute());
|
||||||
if (!($class instanceof ServerCommand)) {
|
if (!($class instanceof ServerCommand)) {
|
||||||
scan_directory(directory('app'), 'App');
|
scan_directory(directory('app'), 'App');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user