-
Notifications
You must be signed in to change notification settings - Fork 35
/
fop_console.php
54 lines (47 loc) · 1.56 KB
/
fop_console.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Copyright (c) Since 2020 Friends of Presta
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file docs/licenses/LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to infos@friendsofpresta.org so we can send you a copy immediately.
*
* @author Friends of Presta <infos@friendsofpresta.org>
* @copyright since 2020 Friends of Presta
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License ("AFL") v. 3.0
*
*/
$autoloadPath = __DIR__ . '/vendor/autoload.php';
if (file_exists($autoloadPath)) {
require_once $autoloadPath;
}
class Fop_Console extends Module
{
public function __construct()
{
$this->name = 'fop_console';
$this->version = '1.5.0';
$this->author = 'Friends of Presta';
parent::__construct();
$this->displayName = 'FoP Console';
$this->description = $this->l('Set of command lines to perform daily or heavy tasks.');
$this->ps_versions_compliancy = [
'min' => '1.7.5.0',
'max' => _PS_VERSION_,
];
}
public function install()
{
if (PHP_VERSION_ID < 70200) {
$this->_errors[] = $this->l('fop_console require at least php version 7.2.');
return false;
}
return parent::install();
}
}