Blame view

addons/antis/library/wework/examples/token.php 306 Bytes
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  <?php

  

  $app = require __DIR__ . '/app.php';

  

  /** @var \WeWork\ApiCache\Token $token */

  $token = $app->get('token');

  

  try {

      $token->get();

  } catch (\Psr\SimpleCache\InvalidArgumentException $e) {

  }

  

  try {

      $token->get(true);

  } catch (\Psr\SimpleCache\InvalidArgumentException $e) {

  }