src/Leevel/Debug/Debug.php
public function bootstrap(): void
    {
        if ($this->isBootstrap) {
            return;
        }

        $this->addCollector(new PhpInfoCollector());
        $this->addCollector(new MessagesCollector());
        $this->addCollector(new RequestDataCollector());
        $this->addCollector(new TimeDataCollector());
        $this->addCollector(new MemoryCollector());
        $this->addCollector(new ExceptionsCollector());
        $this->addCollector(new ConfigCollector());
        $this->addCollector(new LeevelCollector($this->app));
        $this->addCollector(new SessionCollector($this->app->make('session')));
        $this->addCollector(new FilesCollector($this->app));
        $this->addCollector(new LogsCollector());

        $this->initData();
        $this->databaseEventDispatch();
        $this->logEventDispatch();

        $this->isBootstrap = true;
    }
public function bootstrap(): void
    {
        if ($this->isBootstrap) {
            return;
        }

        $this->addCollector(new PhpInfoCollector());
        $this->addCollector(new MessagesCollector());
        $this->addCollector(new RequestDataCollector());
        $this->addCollector(new TimeDataCollector());
        $this->addCollector(new MemoryCollector());
        $this->addCollector(new ExceptionsCollector());
        $this->addCollector(new ConfigCollector());
        $this->addCollector(new LeevelCollector($this->app));
        $this->addCollector(new SessionCollector($this->app->make('session')));
        $this->addCollector(new FilesCollector($this->app));
        $this->addCollector(new LogsCollector());

        $this->initData();
        $this->databaseEventDispatch();
        $this->logEventDispatch();

        $this->isBootstrap = true;
    }
初始化.