Single-photon Transport in a Waveguide-cavity-emitter System