PluginProbe
WPIDE – File Manager & Code Editor / 3.4.1
WPIDE – File Manager & Code Editor v3.4.1
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
← All changes | _services.php +9 -20 3.5.83.4.1 View file →
@@ -6,9 +6,8 @@
6 6
7 7 use const WPIDE\Constants\DIR;
8 8 use const WPIDE\Constants\SLUG;
9 9 use const WPIDE\Constants\TMP_DIR;
10 -use const WPIDE\Constants\WP_PATH;
11 10
12 11 return [
13 12 'WPIDE\App\Services\Logger\LoggerInterface' => [
14 13 'handler' => '\WPIDE\App\Services\Logger\Adapters\MonoLogger',
@@ -14,22 +13,10 @@
14 13 'handler' => '\WPIDE\App\Services\Logger\Adapters\MonoLogger',
15 14 'config' => [
16 15 'monolog_handlers' => [
17 16 function () {
18 - $logPath = ini_get('error_log');
19 -
20 - if (! is_string($logPath) || $logPath === '' || is_dir($logPath)) {
21 - $logPath = defined('WP_CONTENT_DIR')
22 - ? WP_CONTENT_DIR . '/debug.log'
23 - : TMP_DIR . '/wpide.log';
24 - }
25 -
26 - if (is_dir($logPath)) {
27 - $logPath = TMP_DIR . '/wpide.log';
28 - }
29 -
30 17 return new \Monolog\Handler\StreamHandler(
31 - $logPath,
18 + ini_get('error_log'),
32 19 \Monolog\Logger::DEBUG
33 20 );
34 21 },
35 22 ],
@@ -61,18 +48,20 @@
61 48 'config' => [],
62 49 ],
63 50 'WPIDE\App\Services\Storage\Filesystem' => [
64 51 'handler' => '\WPIDE\App\Services\Storage\Filesystem',
65 - 'config' => LocalFileSystem::getConfig(),
52 + 'config' => LocalFileSystem::getConfig(
53 + null,
54 + [
55 + 'dirs' => LocalFileSystem::excludedDirs(),
56 + 'files' => LocalFileSystem::excludedFiles()
57 + ]
58 + ),
66 59 ],
67 60 'WPIDE\App\Services\Database\Database' => [
68 61 'handler' => Freemius::sdk()->can_use_premium_code__premium_only() ? '\WPIDE\App\Services\Database\Database' : null,
69 62 'config' => [],
70 63 ],
71 - 'WPIDE\App\Services\ConfigManager\ConfigManager' => [
72 - 'handler' => Freemius::sdk()->can_use_premium_code__premium_only() ? '\WPIDE\App\Services\ConfigManager\ConfigManager' : null,
73 - 'config' => [],
74 - ],
75 64 'WPIDE\App\Services\Cache\Cache' => [
76 65 'handler' => '\WPIDE\App\Services\Cache\Cache',
77 66 'config' => [
78 67 'group' => SLUG
@@ -90,9 +79,9 @@
90 79 ],
91 80 'WPIDE\App\Services\Auth\AuthInterface' => [
92 81 'handler' => '\WPIDE\App\Services\Auth\Adapters\WPAuth',
93 82 'config' => [
94 - 'wp_dir' => WP_PATH,
83 + 'wp_dir' => ABSPATH,
95 84 'permissions' => ['read', 'write', 'upload', 'download', 'batchdownload', 'zip'],
96 85 'private_repos' => false,
97 86 ],
98 87 ],