Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
ExpireAccessTokensCommand
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3/**
4 * Console command: expire access tokens.
5 *
6 * PHP version 8
7 *
8 * Copyright (C) Villanova University 2020.
9 * Copyright (C) The National Library of Finland 2022.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2,
13 * as published by the Free Software Foundation.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23 *
24 * @category VuFind
25 * @package  Console
26 * @author   Demian Katz <demian.katz@villanova.edu>
27 * @author   Ere Maijala <ere.maijala@helsinki.fi>
28 * @license  http://opensource.org/licenses/gpl-2.0.php GNU General Public License
29 * @link     https://vufind.org/wiki/development Wiki
30 */
31
32namespace VuFindConsole\Command\Util;
33
34use Symfony\Component\Console\Attribute\AsCommand;
35
36/**
37 * Console command: expire access tokens.
38 *
39 * @category VuFind
40 * @package  Console
41 * @author   Demian Katz <demian.katz@villanova.edu>
42 * @author   Ere Maijala <ere.maijala@helsinki.fi>
43 * @license  http://opensource.org/licenses/gpl-2.0.php GNU General Public License
44 * @link     https://vufind.org/wiki/development Wiki
45 */
46#[AsCommand(
47    name: 'util/expire_access_tokens'
48)]
49class ExpireAccessTokensCommand extends AbstractExpireCommand
50{
51    /**
52     * Help description for the command.
53     *
54     * @var string
55     */
56    protected $commandDescription = 'Database access_token table cleanup';
57
58    /**
59     * Label to use for rows in help messages.
60     *
61     * @var string
62     */
63    protected $rowLabel = 'access tokens';
64}