a custom controller resolver that adds the container to the controller