src/Leevel/Kernel/Bootstrap/LoadOption.php
public function handle(IApp $app): void
    {
        $this->checkRuntimeEnv($app);

        if ($app->isCachedOption()) {
            $data = (array) include $app->optionCachedPath();

            $this->setEnvs($data['app']['_env']);
        } else {
            $load = new Load($app->optionPath());

            $data = $load->loadData($app);
        }

        $app->instance('option', $option = new Option($data));

        $test = 2 === func_num_args();

        if (!$test) {
            // @codeCoverageIgnoreStart
            $this->initialization($option);
            // @codeCoverageIgnoreEnd
        }
    }
public function handle(IApp $app): void
    {
        $this->checkRuntimeEnv($app);

        if ($app->isCachedOption()) {
            $data = (array) include $app->optionCachedPath();

            $this->setEnvs($data['app']['_env']);
        } else {
            $load = new Load($app->optionPath());

            $data = $load->loadData($app);
        }

        $app->instance('option', $option = new Option($data));

        $test = 2 === func_num_args();

        if (!$test) {
            // @codeCoverageIgnoreStart
            $this->initialization($option);
            // @codeCoverageIgnoreEnd
        }
    }
响应.

@param \Leevel\Kernel\IApp $app