How to properly handle a doctrine entity manager on an expressive application served with swoole