Version Description
Download this release
Release Info
Developer | boldgrid |
Plugin | Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid |
Version | branch.issue-376.202009290725 |
Comparing to | |
See all releases |
Code changes from version 1.14.5 to branch.issue-376.202009290725
- admin/remote/class-boldgrid-backup-admin-ftp.php +26 -1
- coverage.xml +42 -22
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
admin/remote/class-boldgrid-backup-admin-ftp.php
CHANGED
@@ -1098,6 +1098,11 @@ class Boldgrid_Backup_Admin_Ftp {
|
|
1098 |
* @return bool
|
1099 |
*/
|
1100 |
public function upload( $filepath ) {
|
|
|
|
|
|
|
|
|
|
|
1101 |
// Make sure our backup file exists.
|
1102 |
if ( ! $this->core->wp_filesystem->exists( $filepath ) ) {
|
1103 |
$this->last_error = sprintf(
|
@@ -1105,25 +1110,36 @@ class Boldgrid_Backup_Admin_Ftp {
|
|
1105 |
__( 'Archive does not exist: $1$s', 'boldgrid-backup' ),
|
1106 |
$filepath
|
1107 |
);
|
|
|
1108 |
return false;
|
1109 |
}
|
1110 |
|
1111 |
$remote_file = $this->get_folder_name() . '/' . basename( $filepath );
|
1112 |
|
|
|
|
|
|
|
1113 |
$timestamp = filemtime( $filepath );
|
1114 |
|
|
|
1115 |
$this->connect();
|
|
|
1116 |
$this->log_in();
|
1117 |
if ( ! $this->logged_in ) {
|
1118 |
-
$
|
|
|
|
|
1119 |
return false;
|
1120 |
}
|
1121 |
|
1122 |
$has_remote_dir = $this->create_backup_dir();
|
1123 |
if ( ! $has_remote_dir ) {
|
|
|
1124 |
return false;
|
1125 |
}
|
1126 |
|
|
|
|
|
1127 |
switch ( $this->type ) {
|
1128 |
case 'ftp':
|
1129 |
case 'ftpes':
|
@@ -1148,6 +1164,8 @@ class Boldgrid_Backup_Admin_Ftp {
|
|
1148 |
break;
|
1149 |
}
|
1150 |
|
|
|
|
|
1151 |
if ( ! $uploaded ) {
|
1152 |
$last_error = error_get_last();
|
1153 |
|
@@ -1165,8 +1183,15 @@ class Boldgrid_Backup_Admin_Ftp {
|
|
1165 |
return false;
|
1166 |
}
|
1167 |
|
|
|
1168 |
$this->enforce_retention();
|
|
|
|
|
|
|
|
|
|
|
1169 |
|
|
|
1170 |
return true;
|
1171 |
}
|
1172 |
}
|
1098 |
* @return bool
|
1099 |
*/
|
1100 |
public function upload( $filepath ) {
|
1101 |
+
$logger = new Boldgrid_Backup_Admin_Log( $this->core );
|
1102 |
+
$logger->init( 'ftp.log' );
|
1103 |
+
$logger->add_separator();
|
1104 |
+
$logger->add( 'Beginning ' . __METHOD__ . '...' );
|
1105 |
+
|
1106 |
// Make sure our backup file exists.
|
1107 |
if ( ! $this->core->wp_filesystem->exists( $filepath ) ) {
|
1108 |
$this->last_error = sprintf(
|
1110 |
__( 'Archive does not exist: $1$s', 'boldgrid-backup' ),
|
1111 |
$filepath
|
1112 |
);
|
1113 |
+
$logger->add( $this->last_error );
|
1114 |
return false;
|
1115 |
}
|
1116 |
|
1117 |
$remote_file = $this->get_folder_name() . '/' . basename( $filepath );
|
1118 |
|
1119 |
+
$logger->add( 'Local path: ' . $filepath . ' / ' . $this->core->wp_filesystem->size( $filepath ) );
|
1120 |
+
$logger->add( 'Remote path: ' . $remote_file );
|
1121 |
+
|
1122 |
$timestamp = filemtime( $filepath );
|
1123 |
|
1124 |
+
$logger->add( 'Connecting...' );
|
1125 |
$this->connect();
|
1126 |
+
$logger->add( 'Logging in...' );
|
1127 |
$this->log_in();
|
1128 |
if ( ! $this->logged_in ) {
|
1129 |
+
$error = __( 'Unable to log in to ftp server.', 'boldgrid-backup' );
|
1130 |
+
$this->errors[] = $error;
|
1131 |
+
$logger->add( $error );
|
1132 |
return false;
|
1133 |
}
|
1134 |
|
1135 |
$has_remote_dir = $this->create_backup_dir();
|
1136 |
if ( ! $has_remote_dir ) {
|
1137 |
+
$logger->add( 'Unable to create backup directory on remote host.' );
|
1138 |
return false;
|
1139 |
}
|
1140 |
|
1141 |
+
$logger->add( 'Beginning upload...' );
|
1142 |
+
|
1143 |
switch ( $this->type ) {
|
1144 |
case 'ftp':
|
1145 |
case 'ftpes':
|
1164 |
break;
|
1165 |
}
|
1166 |
|
1167 |
+
$logger->add( 'Upload status: ' . print_r( $uploaded,1 ) ); //phpcs:ignore
|
1168 |
+
|
1169 |
if ( ! $uploaded ) {
|
1170 |
$last_error = error_get_last();
|
1171 |
|
1183 |
return false;
|
1184 |
}
|
1185 |
|
1186 |
+
$logger->add( 'Enforcing retention...' );
|
1187 |
$this->enforce_retention();
|
1188 |
+
$logger->add( 'Retention enforcement complete!' );
|
1189 |
+
|
1190 |
+
$logger->add( 'Getting remote contents...' );
|
1191 |
+
$contents = $this->get_contents( true, $this->get_folder_name() );
|
1192 |
+
$logger->add( 'Remote contents: ' . print_r( $contents, 1 ) ); // phpcs:ignore
|
1193 |
|
1194 |
+
$logger->add( 'Completed ' . __METHOD__ . '!' );
|
1195 |
return true;
|
1196 |
}
|
1197 |
}
|
coverage.xml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<coverage generated="
|
3 |
-
<project timestamp="
|
4 |
<package name="Boldgrid\Backup\Admin\Card">
|
5 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
|
6 |
<class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
|
@@ -13340,7 +13340,7 @@
|
|
13340 |
</file>
|
13341 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php">
|
13342 |
<class name="Boldgrid_Backup_Admin_Ftp" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
13343 |
-
<metrics complexity="135" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="
|
13344 |
</class>
|
13345 |
<line num="247" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
13346 |
<line num="248" type="stmt" count="29"/>
|
@@ -13805,45 +13805,65 @@
|
|
13805 |
<line num="1087" type="stmt" count="0"/>
|
13806 |
<line num="1089" type="stmt" count="0"/>
|
13807 |
<line num="1100" type="method" name="upload" visibility="public" complexity="11" crap="132" count="0"/>
|
|
|
13808 |
<line num="1102" type="stmt" count="0"/>
|
13809 |
<line num="1103" type="stmt" count="0"/>
|
13810 |
-
<line num="
|
13811 |
<line num="1107" type="stmt" count="0"/>
|
13812 |
<line num="1108" type="stmt" count="0"/>
|
13813 |
-
<line num="
|
|
|
13814 |
<line num="1113" type="stmt" count="0"/>
|
13815 |
-
<line num="
|
13816 |
-
<line num="1116" type="stmt" count="0"/>
|
13817 |
<line num="1117" type="stmt" count="0"/>
|
13818 |
-
<line num="1118" type="stmt" count="0"/>
|
13819 |
<line num="1119" type="stmt" count="0"/>
|
|
|
13820 |
<line num="1122" type="stmt" count="0"/>
|
13821 |
-
<line num="1123" type="stmt" count="0"/>
|
13822 |
<line num="1124" type="stmt" count="0"/>
|
|
|
|
|
13823 |
<line num="1127" type="stmt" count="0"/>
|
13824 |
<line num="1128" type="stmt" count="0"/>
|
13825 |
<line num="1129" type="stmt" count="0"/>
|
13826 |
<line num="1130" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
13827 |
<line num="1138" type="stmt" count="0"/>
|
13828 |
-
<line num="1139" type="stmt" count="0"/>
|
13829 |
-
<line num="1140" type="stmt" count="0"/>
|
13830 |
<line num="1141" type="stmt" count="0"/>
|
13831 |
-
<line num="
|
|
|
13832 |
<line num="1145" type="stmt" count="0"/>
|
13833 |
<line num="1146" type="stmt" count="0"/>
|
13834 |
-
<line num="1147" type="stmt" count="0"/>
|
13835 |
-
<line num="1148" type="stmt" count="0"/>
|
13836 |
-
<line num="1149" type="stmt" count="0"/>
|
13837 |
-
<line num="1151" type="stmt" count="0"/>
|
13838 |
-
<line num="1152" type="stmt" count="0"/>
|
13839 |
<line num="1154" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
13840 |
<line num="1161" type="stmt" count="0"/>
|
13841 |
<line num="1162" type="stmt" count="0"/>
|
13842 |
<line num="1163" type="stmt" count="0"/>
|
|
|
13843 |
<line num="1165" type="stmt" count="0"/>
|
13844 |
-
<line num="
|
|
|
13845 |
<line num="1170" type="stmt" count="0"/>
|
13846 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13847 |
</file>
|
13848 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php">
|
13849 |
<class name="Boldgrid_Backup_Admin_Remote_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin.Remote">
|
@@ -76844,7 +76864,7 @@
|
|
76844 |
<metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
|
76845 |
</file>
|
76846 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
|
76847 |
-
<class name="
|
76848 |
<metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
|
76849 |
</class>
|
76850 |
<line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
|
@@ -76936,7 +76956,7 @@
|
|
76936 |
<metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
|
76937 |
</file>
|
76938 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
|
76939 |
-
<class name="
|
76940 |
<metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
|
76941 |
</class>
|
76942 |
<line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
|
@@ -96156,6 +96176,6 @@
|
|
96156 |
<line num="16" type="stmt" count="0"/>
|
96157 |
<metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
|
96158 |
</file>
|
96159 |
-
<metrics files="962" loc="
|
96160 |
</project>
|
96161 |
</coverage>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<coverage generated="1601378784">
|
3 |
+
<project timestamp="1601378784">
|
4 |
<package name="Boldgrid\Backup\Admin\Card">
|
5 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
|
6 |
<class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
|
13340 |
</file>
|
13341 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php">
|
13342 |
<class name="Boldgrid_Backup_Admin_Ftp" namespace="global" fullPackage="Boldgrid.Backup.Admin">
|
13343 |
+
<metrics complexity="135" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="495" coveredstatements="14" elements="517" coveredelements="16"/>
|
13344 |
</class>
|
13345 |
<line num="247" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
|
13346 |
<line num="248" type="stmt" count="29"/>
|
13805 |
<line num="1087" type="stmt" count="0"/>
|
13806 |
<line num="1089" type="stmt" count="0"/>
|
13807 |
<line num="1100" type="method" name="upload" visibility="public" complexity="11" crap="132" count="0"/>
|
13808 |
+
<line num="1101" type="stmt" count="0"/>
|
13809 |
<line num="1102" type="stmt" count="0"/>
|
13810 |
<line num="1103" type="stmt" count="0"/>
|
13811 |
+
<line num="1104" type="stmt" count="0"/>
|
13812 |
<line num="1107" type="stmt" count="0"/>
|
13813 |
<line num="1108" type="stmt" count="0"/>
|
13814 |
+
<line num="1110" type="stmt" count="0"/>
|
13815 |
+
<line num="1112" type="stmt" count="0"/>
|
13816 |
<line num="1113" type="stmt" count="0"/>
|
13817 |
+
<line num="1114" type="stmt" count="0"/>
|
|
|
13818 |
<line num="1117" type="stmt" count="0"/>
|
|
|
13819 |
<line num="1119" type="stmt" count="0"/>
|
13820 |
+
<line num="1120" type="stmt" count="0"/>
|
13821 |
<line num="1122" type="stmt" count="0"/>
|
|
|
13822 |
<line num="1124" type="stmt" count="0"/>
|
13823 |
+
<line num="1125" type="stmt" count="0"/>
|
13824 |
+
<line num="1126" type="stmt" count="0"/>
|
13825 |
<line num="1127" type="stmt" count="0"/>
|
13826 |
<line num="1128" type="stmt" count="0"/>
|
13827 |
<line num="1129" type="stmt" count="0"/>
|
13828 |
<line num="1130" type="stmt" count="0"/>
|
13829 |
+
<line num="1131" type="stmt" count="0"/>
|
13830 |
+
<line num="1132" type="stmt" count="0"/>
|
13831 |
+
<line num="1135" type="stmt" count="0"/>
|
13832 |
+
<line num="1136" type="stmt" count="0"/>
|
13833 |
+
<line num="1137" type="stmt" count="0"/>
|
13834 |
<line num="1138" type="stmt" count="0"/>
|
|
|
|
|
13835 |
<line num="1141" type="stmt" count="0"/>
|
13836 |
+
<line num="1143" type="stmt" count="0"/>
|
13837 |
+
<line num="1144" type="stmt" count="0"/>
|
13838 |
<line num="1145" type="stmt" count="0"/>
|
13839 |
<line num="1146" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
13840 |
<line num="1154" type="stmt" count="0"/>
|
13841 |
+
<line num="1155" type="stmt" count="0"/>
|
13842 |
+
<line num="1156" type="stmt" count="0"/>
|
13843 |
+
<line num="1157" type="stmt" count="0"/>
|
13844 |
+
<line num="1158" type="stmt" count="0"/>
|
13845 |
<line num="1161" type="stmt" count="0"/>
|
13846 |
<line num="1162" type="stmt" count="0"/>
|
13847 |
<line num="1163" type="stmt" count="0"/>
|
13848 |
+
<line num="1164" type="stmt" count="0"/>
|
13849 |
<line num="1165" type="stmt" count="0"/>
|
13850 |
+
<line num="1167" type="stmt" count="0"/>
|
13851 |
+
<line num="1169" type="stmt" count="0"/>
|
13852 |
<line num="1170" type="stmt" count="0"/>
|
13853 |
+
<line num="1172" type="stmt" count="0"/>
|
13854 |
+
<line num="1179" type="stmt" count="0"/>
|
13855 |
+
<line num="1180" type="stmt" count="0"/>
|
13856 |
+
<line num="1181" type="stmt" count="0"/>
|
13857 |
+
<line num="1183" type="stmt" count="0"/>
|
13858 |
+
<line num="1186" type="stmt" count="0"/>
|
13859 |
+
<line num="1187" type="stmt" count="0"/>
|
13860 |
+
<line num="1188" type="stmt" count="0"/>
|
13861 |
+
<line num="1190" type="stmt" count="0"/>
|
13862 |
+
<line num="1191" type="stmt" count="0"/>
|
13863 |
+
<line num="1192" type="stmt" count="0"/>
|
13864 |
+
<line num="1194" type="stmt" count="0"/>
|
13865 |
+
<line num="1195" type="stmt" count="0"/>
|
13866 |
+
<metrics loc="1197" ncloc="744" classes="1" methods="22" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="499" coveredstatements="14" elements="521" coveredelements="16"/>
|
13867 |
</file>
|
13868 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php">
|
13869 |
<class name="Boldgrid_Backup_Admin_Remote_Settings" namespace="global" fullPackage="Boldgrid.Backup.Admin.Remote">
|
76864 |
<metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
|
76865 |
</file>
|
76866 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
|
76867 |
+
<class name="ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7" namespace="Composer\Autoload">
|
76868 |
<metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
|
76869 |
</class>
|
76870 |
<line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
|
76956 |
<metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
|
76957 |
</file>
|
76958 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
|
76959 |
+
<class name="ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7" namespace="global">
|
76960 |
<metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
|
76961 |
</class>
|
76962 |
<line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
|
96176 |
<line num="16" type="stmt" count="0"/>
|
96177 |
<metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
|
96178 |
</file>
|
96179 |
+
<metrics files="962" loc="193251" ncloc="117778" classes="871" methods="3597" coveredmethods="308" conditionals="0" coveredconditionals="0" statements="86665" coveredstatements="4575" elements="90262" coveredelements="4883"/>
|
96180 |
</project>
|
96181 |
</coverage>
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit7851a411df147a8ff57cab3a44644494
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit7851a411df147a8ff57cab3a44644494
|
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
-
$includeFiles = Composer\Autoload\
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
-
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
function
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit63610e2ffa1898ca7b84f2a9fcfa97f7', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7::$files;
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequire63610e2ffa1898ca7b84f2a9fcfa97f7($fileIdentifier, $file);
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
+
function composerRequire63610e2ffa1898ca7b84f2a9fcfa97f7($fileIdentifier, $file)
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
|
@@ -91,9 +91,9 @@ class ComposerStaticInit7851a411df147a8ff57cab3a44644494
|
|
91 |
public static function getInitializer(ClassLoader $loader)
|
92 |
{
|
93 |
return \Closure::bind(function () use ($loader) {
|
94 |
-
$loader->prefixLengthsPsr4 =
|
95 |
-
$loader->prefixDirsPsr4 =
|
96 |
-
$loader->classMap =
|
97 |
|
98 |
}, null, ClassLoader::class);
|
99 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
|
91 |
public static function getInitializer(ClassLoader $loader)
|
92 |
{
|
93 |
return \Closure::bind(function () use ($loader) {
|
94 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7::$prefixLengthsPsr4;
|
95 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7::$prefixDirsPsr4;
|
96 |
+
$loader->classMap = ComposerStaticInit63610e2ffa1898ca7b84f2a9fcfa97f7::$classMap;
|
97 |
|
98 |
}, null, ClassLoader::class);
|
99 |
}
|