[#46] Fixed extending provider use \Closure

Signed-off-by: crynobone <crynobone@gmail.com>