* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace EasyWeChat\OpenWork\Corp; use Pimple\Container; use Pimple\ServiceProviderInterface; /** * ServiceProvider. * * @author xiaomin */ class ServiceProvider implements ServiceProviderInterface { /** * Registers services on the given container. * * This method should only be used to configure services and parameters. * It should not get services. */ public function register(Container $app) { isset($app['corp']) || $app['corp'] = function ($app) { return new Client($app); }; } }