2022-01-17 1226次浏览

First release of Yii Runner was tagged. A runner hides application initialization details making configuration process easier.

For example, instead of complicated initialization, the following is enough for HTTP application's index.php :

<?php

declare(strict_types=1);

use Yiisoft\Yii\Runner\Http\HttpApplicationRunner;

require_once __DIR__ . '/autoload.php';

(new HttpApplicationRunner(__DIR__, $_ENV['YII_DEBUG'], $_ENV['YII_ENV']))->run();

Along with the main package, console adapter and HTTP adapter were released. RoadRunner adapter will follow a bit later.