Elastoviscoplastic flow in porous media