Web application, di init, callback required arguments logic