feat($injector): add dependencies method for getting providers and their dependencies