* +---------------------------------------------------------------------- */ namespace crmeb\services\wechat\v3pay; use Pimple\Container; use Pimple\ServiceProviderInterface; /** * V3支付 * Class ServiceProvider * @package crmeb\services\easywechat\v3pay */ class ServiceProvider implements ServiceProviderInterface { /** * @param Container $pimple */ public function register(Container $pimple) { $pimple['v3pay'] = function ($pimple) { return new PayClient($pimple, $pimple['access_token']); }; } }