Version Description
Release date: Dec 18th, 2018
- Update: Added PHP version to compatibility checks.
- Bug fix: Hide certain update notices in storage configuration modal.
Download this release
Release Info
Developer | boldgrid |
Plugin | Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid |
Version | 1.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.7.0 to 1.7.1
- admin/class-boldgrid-backup-admin-support.php +70 -3
- admin/css/boldgrid-backup-admin-hide-all.css +8 -1
- boldgrid-backup.php +9 -17
- readme.txt +55 -32
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
admin/class-boldgrid-backup-admin-support.php
CHANGED
@@ -18,13 +18,21 @@
|
|
18 |
* @since 1.7.0
|
19 |
*/
|
20 |
class Boldgrid_Backup_Admin_Support {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
/**
|
23 |
* Deactivate and show an error.
|
24 |
*
|
25 |
* @since 1.7.0
|
26 |
*
|
27 |
-
* @param string $error
|
28 |
*/
|
29 |
public function deactivate( $error ) {
|
30 |
add_action( 'admin_notices', function () use ( $error ) {
|
@@ -48,11 +56,11 @@ class Boldgrid_Backup_Admin_Support {
|
|
48 |
.updated.notice { display: none; }
|
49 |
</style>
|
50 |
';
|
51 |
-
});
|
52 |
|
53 |
add_action( 'admin_init', function() {
|
54 |
deactivate_plugins( 'boldgrid-backup/boldgrid-backup.php', true );
|
55 |
-
});
|
56 |
}
|
57 |
|
58 |
/**
|
@@ -79,4 +87,63 @@ class Boldgrid_Backup_Admin_Support {
|
|
79 |
|
80 |
return ! $exists_composer || $exists_autoload;
|
81 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
18 |
* @since 1.7.0
|
19 |
*/
|
20 |
class Boldgrid_Backup_Admin_Support {
|
21 |
+
/**
|
22 |
+
* Minumum PHP supported version.
|
23 |
+
*
|
24 |
+
* @since 1.7.1
|
25 |
+
*
|
26 |
+
* @var string
|
27 |
+
*/
|
28 |
+
const PHP_MIN_VER = '5.4.0';
|
29 |
|
30 |
/**
|
31 |
* Deactivate and show an error.
|
32 |
*
|
33 |
* @since 1.7.0
|
34 |
*
|
35 |
+
* @param string $error Error message.
|
36 |
*/
|
37 |
public function deactivate( $error ) {
|
38 |
add_action( 'admin_notices', function () use ( $error ) {
|
56 |
.updated.notice { display: none; }
|
57 |
</style>
|
58 |
';
|
59 |
+
} );
|
60 |
|
61 |
add_action( 'admin_init', function() {
|
62 |
deactivate_plugins( 'boldgrid-backup/boldgrid-backup.php', true );
|
63 |
+
} );
|
64 |
}
|
65 |
|
66 |
/**
|
87 |
|
88 |
return ! $exists_composer || $exists_autoload;
|
89 |
}
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Verify compatible PHP version.
|
93 |
+
*
|
94 |
+
* @since 1.7.1
|
95 |
+
*
|
96 |
+
* @return bool
|
97 |
+
*/
|
98 |
+
public function has_compatible_php() {
|
99 |
+
return version_compare( PHP_VERSION, self::PHP_MIN_VER, '>=' );
|
100 |
+
}
|
101 |
+
|
102 |
+
/**
|
103 |
+
* Run tests.
|
104 |
+
*
|
105 |
+
* @since 1.7.1
|
106 |
+
*
|
107 |
+
* @see has_compatible_php()
|
108 |
+
* @see Boldgrid_Backup_Admin_Support::has_composer_installed()
|
109 |
+
* @see Boldgrid_Backup_Admin_Support::has_been_built()
|
110 |
+
* @see Boldgrid_Backup_Admin_Support::deactivate()
|
111 |
+
*
|
112 |
+
* @return bool
|
113 |
+
*/
|
114 |
+
public function run_tests() {
|
115 |
+
if ( ! $this->has_compatible_php() ) {
|
116 |
+
$this->deactivate( sprintf(
|
117 |
+
// Translators: 1: Current PHP version, 2: Minimum supported PHP version.
|
118 |
+
__(
|
119 |
+
'Your PHP version (%1$s) is not supported. Please upgrade PHP to %2$s or higher, or contact your host for further assistance.',
|
120 |
+
'boldgrid-backup'
|
121 |
+
),
|
122 |
+
PHP_VERSION,
|
123 |
+
self::PHP_MIN_VER
|
124 |
+
) );
|
125 |
+
|
126 |
+
return false;
|
127 |
+
}
|
128 |
+
|
129 |
+
if ( ! $this->has_composer_installed() ) {
|
130 |
+
$this->deactivate( __(
|
131 |
+
'The vendor folder is missing. Please run "composer install", or contact your host for further assistance.',
|
132 |
+
'boldgrid-backup'
|
133 |
+
) );
|
134 |
+
|
135 |
+
return false;
|
136 |
+
}
|
137 |
+
|
138 |
+
if ( ! $this->has_been_built() ) {
|
139 |
+
$this->deactivate( __(
|
140 |
+
'The "build" folder is missing. Please run "yarn install" and "gulp", or contact your host for further assistance.',
|
141 |
+
'boldgrid-backup'
|
142 |
+
) );
|
143 |
+
|
144 |
+
return false;
|
145 |
+
}
|
146 |
+
|
147 |
+
return true;
|
148 |
+
}
|
149 |
}
|
admin/css/boldgrid-backup-admin-hide-all.css
CHANGED
@@ -4,21 +4,28 @@
|
|
4 |
* This set of styles hides everything on the page except for what the plugin
|
5 |
* displays. This helps make the page look better in an iframe / modal.
|
6 |
*/
|
|
|
|
|
|
|
7 |
#adminmenumain,
|
|
|
8 |
#wpadminbar,
|
9 |
#wpfooter {
|
10 |
display: none;
|
11 |
}
|
|
|
12 |
#wpwrap {
|
13 |
position: absolute;
|
14 |
top: 0px;
|
15 |
left: 0px;
|
16 |
}
|
|
|
17 |
#wpwrap #wpcontent {
|
18 |
margin: 0px; !important;
|
19 |
padding-left: 10px; !important;
|
20 |
padding-right: 10px; !important;
|
21 |
}
|
|
|
22 |
#wpbody-content {
|
23 |
padding-bottom: 0px;
|
24 |
-
}
|
4 |
* This set of styles hides everything on the page except for what the plugin
|
5 |
* displays. This helps make the page look better in an iframe / modal.
|
6 |
*/
|
7 |
+
|
8 |
+
.boldgrid-backup-in-progress,
|
9 |
+
.update-nag,
|
10 |
#adminmenumain,
|
11 |
+
[id$="-tgmpa"],
|
12 |
#wpadminbar,
|
13 |
#wpfooter {
|
14 |
display: none;
|
15 |
}
|
16 |
+
|
17 |
#wpwrap {
|
18 |
position: absolute;
|
19 |
top: 0px;
|
20 |
left: 0px;
|
21 |
}
|
22 |
+
|
23 |
#wpwrap #wpcontent {
|
24 |
margin: 0px; !important;
|
25 |
padding-left: 10px; !important;
|
26 |
padding-right: 10px; !important;
|
27 |
}
|
28 |
+
|
29 |
#wpbody-content {
|
30 |
padding-bottom: 0px;
|
31 |
+
}
|
boldgrid-backup.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: BoldGrid Backup
|
17 |
* Plugin URI: https://www.boldgrid.com/boldgrid-backup/
|
18 |
* Description: BoldGrid Backup provides WordPress backup and restoration with update protection.
|
19 |
-
* Version: 1.7.
|
20 |
* Author: BoldGrid
|
21 |
* Author URI: https://www.boldgrid.com/
|
22 |
* License: GPL-2.0+
|
@@ -81,21 +81,16 @@ function run_boldgrid_backup() {
|
|
81 |
*
|
82 |
* @since 1.6.0
|
83 |
*
|
|
|
|
|
84 |
* @return bool
|
85 |
*/
|
86 |
function load_boldgrid_backup() {
|
87 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-support.php';
|
88 |
-
$support
|
89 |
-
|
90 |
-
if ( ! $support->has_composer_installed() ) {
|
91 |
-
$error = __( 'The vendor folder is missing. Please run "composer install", or contact your host for further assistance.', 'boldgrid-backup' );
|
92 |
-
$support->deactivate( $error );
|
93 |
-
return false;
|
94 |
-
}
|
95 |
|
96 |
-
if ( ! $
|
97 |
-
$error = __( 'The "build" folder is missing. Please run "yarn install" and "gulp", or contact your host for further assistance.', 'boldgrid-backup' );
|
98 |
-
$support->deactivate( $error );
|
99 |
return false;
|
100 |
}
|
101 |
|
@@ -131,12 +126,9 @@ function load_boldgrid_backup() {
|
|
131 |
* Run the plugin only if on a wp-admin page or when DOING_CRON.
|
132 |
*/
|
133 |
if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) || defined( 'WP_CLI' ) && WP_CLI ) {
|
134 |
-
|
135 |
// If we could not load boldgrid_backup (missing system requirements), abort.
|
136 |
-
if (
|
137 |
-
|
|
|
138 |
}
|
139 |
-
|
140 |
-
require_once BOLDGRID_BACKUP_PATH . '/includes/class-boldgrid-backup.php';
|
141 |
-
run_boldgrid_backup();
|
142 |
}
|
16 |
* Plugin Name: BoldGrid Backup
|
17 |
* Plugin URI: https://www.boldgrid.com/boldgrid-backup/
|
18 |
* Description: BoldGrid Backup provides WordPress backup and restoration with update protection.
|
19 |
+
* Version: 1.7.1
|
20 |
* Author: BoldGrid
|
21 |
* Author URI: https://www.boldgrid.com/
|
22 |
* License: GPL-2.0+
|
81 |
*
|
82 |
* @since 1.6.0
|
83 |
*
|
84 |
+
* @see Boldgrid_Backup_Admin_Support::run_tests()
|
85 |
+
*
|
86 |
* @return bool
|
87 |
*/
|
88 |
function load_boldgrid_backup() {
|
89 |
require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-support.php';
|
90 |
+
$support = new Boldgrid_Backup_Admin_Support();
|
91 |
+
$tests_passed = $support->run_tests();
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
+
if ( ! $tests_passed ) {
|
|
|
|
|
94 |
return false;
|
95 |
}
|
96 |
|
126 |
* Run the plugin only if on a wp-admin page or when DOING_CRON.
|
127 |
*/
|
128 |
if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) || defined( 'WP_CLI' ) && WP_CLI ) {
|
|
|
129 |
// If we could not load boldgrid_backup (missing system requirements), abort.
|
130 |
+
if ( load_boldgrid_backup() ) {
|
131 |
+
require_once BOLDGRID_BACKUP_PATH . '/includes/class-boldgrid-backup.php';
|
132 |
+
run_boldgrid_backup();
|
133 |
}
|
|
|
|
|
|
|
134 |
}
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: boldgrid, joemoto, imh_brad, rramo012, timph, bgnicolepaschen
|
3 |
Tags: boldgrid, backup, restore, migrate, migration
|
4 |
Requires at least: 4.4
|
5 |
-
Tested up to: 5.0.
|
6 |
Requires PHP: 5.4
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,7 +12,52 @@ BoldGrid Backup provides WordPress backup and restoration with update protection
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
== Installation ==
|
18 |
|
@@ -29,6 +74,13 @@ WordPress backup and restoration with update protection.
|
|
29 |
|
30 |
== Changelog ==
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
= 1.7.0 =
|
33 |
|
34 |
Release date: Dec 4th, 2018
|
@@ -295,32 +347,3 @@ Release Date: June 21st, 2016
|
|
295 |
* Initial public release.
|
296 |
|
297 |
== Upgrade Notice ==
|
298 |
-
|
299 |
-
|
300 |
-
== Technical Documentation ==
|
301 |
-
|
302 |
-
|
303 |
-
= Auto Updates & Rollback Settings =
|
304 |
-
|
305 |
-
#### Plugin Auto-Updates and Theme Auto-Updates
|
306 |
-
|
307 |
-
Taken from WordPress' [Configuring Automatic Background Updates](https://codex.wordpress.org/Configuring_Automatic_Background_Updates#Plugin_.26_Theme_Updates_via_Filter)
|
308 |
-
|
309 |
-
> By default, automatic background updates only happen for plugins and themes in special cases, as determined by the WordPress.org API response, which is controlled by the WordPress security team for patching critical vulnerabilities. To enable or disable updates in all cases, you can leverage the auto_update_$type filter, where $type would be replaced with "plugin" or "theme".
|
310 |
-
|
311 |
-
When these features are enabled, BoldGrid Backup will add *auto_update_plugin* and *auto_update_theme* filters so that *any plugin that has an update available* will update.
|
312 |
-
|
313 |
-
#### Auto Backup Before Updates
|
314 |
-
|
315 |
-
Before WordPress does any auto updates, it fires the [pre_auto_update](https://developer.wordpress.org/reference/hooks/pre_auto_update/) hook. If the user has the **Auto Backup Before Updates** option enabled, then a backup will occur before the auto update.
|
316 |
-
|
317 |
-
#### Auto Rollback
|
318 |
-
|
319 |
-
*Auto Rollback* is the feature within the BoldGrid Backup plugin that recommends making updates before performing any updates. If you disable this feature, then BoldGrid Backup will not recommend updates.
|
320 |
-
|
321 |
-
Example notice:
|
322 |
-
> BoldGrid Backup - Update Protection
|
323 |
-
>
|
324 |
-
> On this page you are able to update WordPress, Plugins, and Themes. It is recommended to backup your site before performing updates. If you perform a backup here, before performing updates, then an automatic rollback is possible.
|
325 |
-
>
|
326 |
-
> Update protection not available until you click Backup Site Now and a backup is created.
|
2 |
Contributors: boldgrid, joemoto, imh_brad, rramo012, timph, bgnicolepaschen
|
3 |
Tags: boldgrid, backup, restore, migrate, migration
|
4 |
Requires at least: 4.4
|
5 |
+
Tested up to: 5.0.2
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 1.7.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
The BoldGrid Backup Plugin will backup your entire WordPress site with just a couple of clicks right in your WordPress dashboard. Just select a time and day for backups to run automatically. Or manually create a backup at any time with a single click.
|
16 |
+
|
17 |
+
== Features ==
|
18 |
+
|
19 |
+
The following features are available, of which you can find additional info for in the screenshots section below:
|
20 |
+
* Schedule backups.
|
21 |
+
* Create backups automatically before WordPress updates.
|
22 |
+
* Store backups offsite.
|
23 |
+
* Customize which files and folders are backed up.
|
24 |
+
* Customize which tables are backed up.
|
25 |
+
* WordPress core automatic update control.
|
26 |
+
* Auto Rollback after WordPress, plugin, and theme updates.
|
27 |
+
* Progress bar showing how far along your backup is.
|
28 |
+
* Receive emails when backups are created and restored.
|
29 |
+
* View a list of all of your backups, both on your Web Server and FTP/SFTP server.
|
30 |
+
* One click to upload a backup to remote storage.
|
31 |
+
* Add titles and descriptions to your backups.
|
32 |
+
* Easily view the files in a backup using the Backup Browser.
|
33 |
+
* View the tables and the number of records per table contained in a backup.
|
34 |
+
* View all the details of a backup, including whether it is a scheduled backup or a backup triggered by a user.
|
35 |
+
* Configure retention settings (only keep X number of backups).
|
36 |
+
* Protect important backups by excluding them from retention settings.
|
37 |
+
* Download and Upload backups using protected links, which makes transferring a website from one host to another an much easier process.
|
38 |
+
|
39 |
+
== Screenshots ==
|
40 |
+
|
41 |
+
1. Easily schedule backups using Cron or WP Cron. Set a time of day, select the days of the week, and BoldGrid Backup will automate backups for you. You will receive an email after each backup has been completed.
|
42 |
+
2. Automatically perform a backup before WordPress auto updates itself. This feature hooks into the [pre_auto_update](https://developer.wordpress.org/reference/hooks/pre_auto_update/) action.
|
43 |
+
3. After a scheduled backup completes, you can have it uploaded automatically to an FTP / SFTP server. Users who upgrade to premium can also store backups on Amazon S3.
|
44 |
+
4. You can configure which files and folders and included in your backups. "Include" and "Exclude" filters are easy to set up, and you can click the "Preview" button to get a listing of which files and folders will actually be included in your backup.
|
45 |
+
5. Have tables you don't want to back up? Within the list of database tables, uncheck the tables you want excluded from backups, and they won't be included.
|
46 |
+
6. Take control of how WordPress automatically updates itself. Select whether to auto update for major updates, minor updates, development updates, and/or translation updates.
|
47 |
+
7. Select which of your plugins to have automatically updated when updates are available.
|
48 |
+
8. Select which of your themes to have automatically updated when updates are available.
|
49 |
+
9. Before upgrading WordPress, or any plugins or themes, backup your site. After the upgrade, test your site for any issues. If any issues are found, you can one-click restore your website or wait for the countdown to end and your site will automatically restore itself.
|
50 |
+
10. For large sites, backups can sometimes take a bit of time to complete. During backups, a progress bar is shown to keep you updated on the backup's status.
|
51 |
+
11. When backups are completed, or when a backup is restored, BoldGrid Backup will send you an email.
|
52 |
+
12. The Backup Archives page will list all of your backups, and show you where each backup is stored (Web Server, FTP/SFTP, etc).
|
53 |
+
13. When viewing the details of a backup, click the "Upload" button to easily upload the backup archive to one of your remote storage providers, such as a FTP server.
|
54 |
+
14. To help keep your backups organized, you can add titles and descriptions to each backup.
|
55 |
+
15. Use the Backup Browser to view what files are contained in each of your backups.
|
56 |
+
16. You can also use the Backup Browser to see which database tables are included in the backup, and compare the # records to your current database.
|
57 |
+
17. The right sidebar of the Backup Archive Details page shows information about a backup, including who made the backup, what was backed up, how long the backup took, and more.
|
58 |
+
18. You can configure retention settings (only keep X number of backups) so that disk space used by your Web Server and/or your FTP/SFTP to store backups does not grow out of control.
|
59 |
+
19. For backups you don't want deleted by your retention settings, you can configure them to be saved and not deleted when the retention process deletes backup.
|
60 |
+
20. Migrating websites from one host to another only takes a few steps. On the source server, generate a protected link for which a backup can be downloaded. Then, on the destination server, upload a backup using that protected link. All that's left is clicking restore!
|
61 |
|
62 |
== Installation ==
|
63 |
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 1.7.1 =
|
78 |
+
|
79 |
+
Release date: Dec 18th, 2018
|
80 |
+
|
81 |
+
* Update: Added PHP version to compatibility checks.
|
82 |
+
* Bug fix: Hide certain update notices in storage configuration modal.
|
83 |
+
|
84 |
= 1.7.0 =
|
85 |
|
86 |
Release date: Dec 4th, 2018
|
347 |
* Initial public release.
|
348 |
|
349 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 ComposerAutoloaderInita6df5ba1202853e2f5d815b67bc99335::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 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit26ac8f21c7de312bcc7b8f89cd106a20
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit26ac8f21c7de312bcc7b8f89cd106a20
|
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
-
$includeFiles = Composer\Autoload\
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
-
function
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInita6df5ba1202853e2f5d815b67bc99335
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInita6df5ba1202853e2f5d815b67bc99335', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInita6df5ba1202853e2f5d815b67bc99335', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInita6df5ba1202853e2f5d815b67bc99335::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
+
$includeFiles = Composer\Autoload\ComposerStaticInita6df5ba1202853e2f5d815b67bc99335::$files;
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
+
composerRequirea6df5ba1202853e2f5d815b67bc99335($fileIdentifier, $file);
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
function composerRequirea6df5ba1202853e2f5d815b67bc99335($fileIdentifier, $file)
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
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 |
'f15d016d70663d5e96ccd2b863511eb8' => __DIR__ . '/..' . '/cbschuld/browser.php/lib/Browser.php',
|
@@ -91,9 +91,9 @@ class ComposerStaticInit26ac8f21c7de312bcc7b8f89cd106a20
|
|
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 ComposerStaticInita6df5ba1202853e2f5d815b67bc99335
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'f15d016d70663d5e96ccd2b863511eb8' => __DIR__ . '/..' . '/cbschuld/browser.php/lib/Browser.php',
|
91 |
public static function getInitializer(ClassLoader $loader)
|
92 |
{
|
93 |
return \Closure::bind(function () use ($loader) {
|
94 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInita6df5ba1202853e2f5d815b67bc99335::$prefixLengthsPsr4;
|
95 |
+
$loader->prefixDirsPsr4 = ComposerStaticInita6df5ba1202853e2f5d815b67bc99335::$prefixDirsPsr4;
|
96 |
+
$loader->classMap = ComposerStaticInita6df5ba1202853e2f5d815b67bc99335::$classMap;
|
97 |
|
98 |
}, null, ClassLoader::class);
|
99 |
}
|