-
Notifications
You must be signed in to change notification settings - Fork 0
/
gdata-antivirus.php
51 lines (46 loc) · 2.16 KB
/
gdata-antivirus.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
<?php
/**
* G DATA Antivirus
*
* @category Security
* @package GD_Scan
* @author G DATA CyberDefense AG <[email protected]>
* @license https://github.com/GDATASoftwareAG/vaas/blob/main/LICENSE
* @link https://github.com/GDATASoftwareAG/vaas
*
* @wordpress-plugin
* Plugin Name: G DATA Antivirus
* Version: 1.2.3
* Requires at least: 6.2
* Tested up to: 6.6
* Requires PHP: 8.1
* Plugin URI: https://github.com/GDATASoftwareAG/wordpress-gdata-antivirus
* Description: Vaas is a virus scanner for your WordPress installation.
* License: GNU General Public License v3.0
* License URI: https://github.com/GDATASoftwareAG/vaas/blob/main/LICENSE
*/
namespace Gdatacyberdefenseag\GdataAntivirus;
require_once file_exists(__DIR__.'/vendor/scoper-autoload.php')
? __DIR__.'/vendor/scoper-autoload.php'
: __DIR__.'/vendor/autoload.php';
use Gdatacyberdefenseag\GdataAntivirus\Infrastructure\FileSystem\IGdataAntivirusFileSystem;
use Gdatacyberdefenseag\GdataAntivirus\Infrastructure\FileSystem\WordPressFileSystem;
use Gdatacyberdefenseag\GdataAntivirus\Infrastructure\Logging\GdataAntivirusPluginDebugLogger;
use Gdatacyberdefenseag\GdataAntivirus\GdataAntivirusPlugin;
use Psr\Log\LoggerInterface;
define('GDATACYBERDEFENCEAG_ANTIVIRUS_PLUGIN_WITH_CLASSES__FILE__', __FILE__);
define('GDATACYBERDEFENCEAG_ANTIVIRUS_MENU_SLUG', 'gdata-antivirus-menu');
define('GDATACYBERDEFENCEAG_ANTIVIRUS_MENU_FINDINGS_SLUG', GDATACYBERDEFENCEAG_ANTIVIRUS_MENU_SLUG . '-findings');
define('GDATACYBERDEFENCEAG_ANTIVIRUS_MENU_FINDINGS_TABLE_NAME', 'GDATACYBERDEFENCEAG_ANTIVIRUS_MENU_FINDINGS_TABLE');
define('GDATACYBERDEFENCEAG_ANTIVIRUS_MENU_FULL_SCAN_SLUG', GDATACYBERDEFENCEAG_ANTIVIRUS_MENU_SLUG . '-full-scan');
define('GDATACYBERDEFENCEAG_ANTIVIRUS_MENU_FULL_SCAN_OPERATIONS_TABLE_NAME', 'GDATACYBERDEFENCEAG_ANTIVIRUS_MENU_FULL_SCAN_OPERATIONS');
define('GDATACYBERDEFENCEAG_ANTIVIRUS_MENU_ON_DEMAND_SCAN_SLUG', GDATACYBERDEFENCEAG_ANTIVIRUS_MENU_SLUG . '-on-demand-scan');
$app = new GdataAntivirusPlugin();
$app->singleton(
IGdataAntivirusFileSystem::class,
WordPressFileSystem::class
);
$app->singleton(
LoggerInterface::class,
GdataAntivirusPluginDebugLogger::class
);