I need override some functions of yii\web\ErrorHandler and create child class api\components\ErrorHandler.
Config app in api/config/main.php:
`...
'errorHandler' => [
'class' => \api\components\ErrorHandler::class,
],
...`
Error in nginx log:
FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class api\components\ApiErrorHandler does not exist' in path/yii/vendor/yiisoft/yii2/di/Container.php:415
ApiErrorHandlerthat does not exist in pointed namespace. Find it and fix it.