I am using swiftmailer and xmpphp library to send jabber notifications to some actions on controller.
The problem is if something goes wrong on sending jabber message (jabber server is unavailable, username is disabled on jabber server, etc.), the web page is holded and then shows php errors code line.
The best is to run message sending to jabber, mail on console, without interapt the web page request, but how to do it in yii2?
I am using xmpphp library, and by default connection timeout to jabber server was 30 seconds, which is php exec timeout (I figured out it after I wrote my first post).