PluginProbe
WPIDE – File Manager & Code Editor / 3.4
WPIDE – File Manager & Code Editor v3.4
3.5.8 3.5.7 2.0.14 2.0.15 2.0.16 2.0.2 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.2 2.3 2.3.1 2.3.2 2.4.0 2.5 2.6 3.0 3.1 3.2 3.3 3.4 All 54 releases
wpide / _services.php

_services.php in WPIDE – File Manager & Code Editor 3.4, at _services.php

96 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || exit;
3
4 use WPIDE\App\Services\Storage\LocalFileSystem;
5 use WPIDE\App\Classes\Freemius;
6
7 use const WPIDE\Constants\DIR;
8 use const WPIDE\Constants\SLUG;
9 use const WPIDE\Constants\TMP_DIR;
10
11 return [
12 'WPIDE\App\Services\Logger\LoggerInterface' => [
13 'handler' => '\WPIDE\App\Services\Logger\Adapters\MonoLogger',
14 'config' => [
15 'monolog_handlers' => [
16 function () {
17 return new \Monolog\Handler\StreamHandler(
18 ini_get('error_log'),
19 \Monolog\Logger::DEBUG
20 );
21 },
22 ],
23 ],
24 ],
25 'WPIDE\App\Services\Cors\Cors' => [
26 'handler' => '\WPIDE\App\Services\Cors\Cors',
27 'config' => [
28 'enabled' => defined('WP_DEBUG') && WP_DEBUG,
29 ],
30 ],
31 'WPIDE\App\Services\Tmpfs\TmpfsInterface' => [
32 'handler' => '\WPIDE\App\Services\Tmpfs\Adapters\Tmpfs',
33 'config' => [
34 'path' => TMP_DIR,
35 'gc_probability_perc' => 10,
36 'gc_older_than' => 60 * 60 * 24 * 2, // 2 days
37 ],
38 ],
39 'WPIDE\App\Services\Security\Security' => [
40 'handler' => '\WPIDE\App\Services\Security\Security',
41 'config' => [
42 'ip_allowlist' => [],
43 'ip_denylist' => []
44 ],
45 ],
46 'WPIDE\App\Services\View\ViewInterface' => [
47 'handler' => '\WPIDE\App\Services\View\Adapters\Vuejs',
48 'config' => [],
49 ],
50 'WPIDE\App\Services\Storage\Filesystem' => [
51 'handler' => '\WPIDE\App\Services\Storage\Filesystem',
52 'config' => LocalFileSystem::getConfig(
53 null,
54 [
55 'dirs' => LocalFileSystem::excludedDirs(),
56 'files' => LocalFileSystem::excludedFiles()
57 ]
58 ),
59 ],
60 'WPIDE\App\Services\Database\Database' => [
61 'handler' => Freemius::sdk()->can_use_premium_code__premium_only() ? '\WPIDE\App\Services\Database\Database' : null,
62 'config' => [],
63 ],
64 'WPIDE\App\Services\Cache\Cache' => [
65 'handler' => '\WPIDE\App\Services\Cache\Cache',
66 'config' => [
67 'group' => SLUG
68 ],
69 ],
70 'WPIDE\App\Services\Transient\Transient' => [
71 'handler' => '\WPIDE\App\Services\Transient\Transient',
72 'config' => [
73 'prefix' => SLUG.'_'
74 ],
75 ],
76 'WPIDE\App\Services\Archiver\ArchiverInterface' => [
77 'handler' => '\WPIDE\App\Services\Archiver\Adapters\ZipArchiver',
78 'config' => [],
79 ],
80 'WPIDE\App\Services\Auth\AuthInterface' => [
81 'handler' => '\WPIDE\App\Services\Auth\Adapters\WPAuth',
82 'config' => [
83 'wp_dir' => ABSPATH,
84 'permissions' => ['read', 'write', 'upload', 'download', 'batchdownload', 'zip'],
85 'private_repos' => false,
86 ],
87 ],
88 'WPIDE\App\Services\Router\Router' => [
89 'handler' => '\WPIDE\App\Services\Router\Router',
90 'config' => [
91 'query_param' => 'req',
92 'routes_file' => DIR.'_routes.php',
93 ],
94 ],
95 ];
96