Yii2: use error handler only for fatal errors or specify handled error types
<p>Yii2 has it's own <a href="http://www.yiiframework.com/doc-2.0/guide-runtime-handling-errors.html" rel="noreferrer">error handler</a>, that converts all non-fatal php errors into catchable exceptions.</p>

<p>Is it possible to use it only for handling fatal errors or (better) explicitly specify, which errors should be handled by yii error handler, and which should be processed by internal php handler?</p>

<p>I.e. in dev environment I want all errors to throw an exceptions and provide error page with trace.</p>

<p>But in prod environment I want only fatal errors to render error page with yii, but notices and warnings should just go to standard php log without throwing an exeption.</p>

<p>Currently if I set <code>YII_ENABLE_ERROR_HANDLER</code> to <code>true</code>, I get exception on notices (I do not want it on prod); if I set it to <code>false</code>, I loose yii fatal error pages; and it I set it to <code>true</code> and set <code>error_reporting</code> to <code>0</code>, I loose error logging.</p>