code: public function register(Container $pimple)
      {
          $pimple['baidu.auth'] = function ($app) {
              return new AccessToken(
                  $app['config']->get('ocrs.baidu.app_key'),
                  $app['config']->get('ocrs.baidu.secret_key'),
                  $app['cache']
              );
          };
  
          $pimple['baidu'] = function ($app) {
              return new OCRManager($app['baidu.auth']);
          };
      }
docs: {@inheritdoc}