* +---------------------------------------------------------------------- */ namespace crmeb\services\easywechat\v3pay; use Pimple\Container; use Pimple\ServiceProviderInterface; /** * 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['access_token'], $pimple); }; } }