yiiliveext
yiiliveext
> 1. How many services are requested per route? > 2. How many aren't defined in container and automatically resolved? > 3. How many sub-dependencies are per service? This easy...
We don't yet have our own CORS middleware implementation, but you can use any psr-7/psr-15 compatible middleware. For example https://github.com/tuupola/cors-middleware ```php Route::get('/info/v2', ApiInfo::class) ->addMiddleware(FormatDataResponseAsJson::class) ->addMiddleware(fn() => new Tuupola\Middleware\CorsMiddleware([ "origin" =>...
At least yii2-basic doesn't have db queries on page load.
> After investigation I found: > > * Yii3 demo [public/index.php](https://github.com/yiisoft/yii-demo/blob/master/views/site/index.php) - does not use DB connection. Even if it would, there is already pre-configured DB (for demo blog) using...
I think the abstract controller should be in the app template. There is no need to move it to the yii-web package.
> You're right. Any fix that comes in mind? I don't currently have Swoole environment set up :( Make `sessionId` nullable. ```php public function setId(?string $sessionId): void { $this->sessionId =...