admin-api/vendor/overtrue/wechat/src/OfficialAccount/Draft/ServiceProvider.php

36 lines
660 B
PHP

<?php
/**
* ServiceProvider.php.
*
* This file is part of the wechat.
*
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace EasyWeChat\OfficialAccount\Draft;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
/**
* Class ServiceProvider.
*
* @author wangdongzhao <elim051@163.com>
*/
class ServiceProvider implements ServiceProviderInterface
{
/**
* {@inheritdoc}.
*/
public function register(Container $app)
{
$app['draft'] = function ($app) {
return new Client($app);
};
}
}