Updated to() call in DI definition, used the new Application::run() method