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0-beta.1 3.2.2 6.3.0-rc.1 3.2.3 6.3.0-rc.2 3.2.4 6.3.1 3.2.5 6.3.2 3.2.6 6.4.0 3.3.0 6.4.0-beta.1 3.3.1 6.4.0-rc.1 3.3.2 6.4.1 3.3.2-rc.1 6.4.2 3.3.3 6.5.0 3.3.4 6.5.0-beta.1 3.3.5 6.5.0-rc.1 3.3.6 6.5.0-rc.2 3.4.0 6.5.1 3.4.0-beta.1 6.5.2 3.4.0-rc.2 6.6.0 3.4.1 6.6.0-beta.1 3.4.2 6.6.0-rc.1 3.4.3 6.6.0-rc.2 3.4.4 6.6.1 3.4.5 6.6.2 3.4.6 6.7.0 3.4.7 6.7.0-beta.1 3.4.8 6.7.0-beta.2 3.5.0 6.7.0-rc.1 3.5.0-beta.1 6.7.1 3.5.0-rc.1 6.8.0 3.5.0-rc.2 6.8.0-beta.1 3.5.1 6.8.0-beta.2 3.5.10 6.8.0-rc.1 3.5.2 6.8.1 3.5.3 6.8.2 3.5.4 6.8.3 3.5.5 6.9.0 3.5.6 6.9.0-beta.1 3.5.7 6.9.0-beta.2 3.5.8 6.9.0-rc.1 3.5.9 6.9.1 3.6.0 6.9.2 3.6.0-beta.1 6.9.3 3.6.0-rc.1 6.9.4 3.6.0-rc.2 6.9.5 3.6.0-rc.3 7.0.0 3.6.1 7.0.0-beta.1 3.6.2 7.0.0-beta.2 3.6.3 7.0.0-beta.3 3.6.4 7.0.0-rc.1 3.6.5 7.0.0-rc.2 3.6.6 7.0.1 3.6.7 7.0.2 3.7.0 7.1.0 3.7.0-beta.1 7.1.0-beta.1 3.7.0-rc.1 7.1.0-beta.2 3.7.0-rc.2 7.1.0-rc.1 3.7.1 7.1.0-rc.2 3.7.2 7.1.1
woocommerce / vendor / autoload_packages.php
woocommerce / vendor Last commit date
automattic 6 years ago composer 5 years ago maxmind-db 6 years ago pelago 6 years ago symfony 6 years ago autoload.php 5 years ago autoload_packages.php 5 years ago
autoload_packages.php
207 lines
1 <?php
2 /**
3 * This file `autoload_packages.php`was generated by automattic/jetpack-autoloader.
4 *
5 * From your plugin include this file with:
6 * require_once . plugin_dir_path( __FILE__ ) . '/vendor/autoload_packages.php';
7 *
8 * @package automattic/jetpack-autoloader
9 */
10
11 // phpcs:disable PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound
12 // phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_namespaceFound
13 // phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_ns_cFound
14
15 namespace Automattic\Jetpack\Autoloader;
16
17 if ( ! function_exists( __NAMESPACE__ . '\enqueue_package_class' ) ) {
18 global $jetpack_packages_classes;
19
20 if ( ! is_array( $jetpack_packages_classes ) ) {
21 $jetpack_packages_classes = array();
22 }
23 /**
24 * Adds the version of a package to the $jetpack_packages global array so that
25 * the autoloader is able to find it.
26 *
27 * @param string $class_name Name of the class that you want to autoload.
28 * @param string $version Version of the class.
29 * @param string $path Absolute path to the class so that we can load it.
30 */
31 function enqueue_package_class( $class_name, $version, $path ) {
32 global $jetpack_packages_classes;
33
34 if ( ! isset( $jetpack_packages_classes[ $class_name ] ) ) {
35 $jetpack_packages_classes[ $class_name ] = array(
36 'version' => $version,
37 'path' => $path,
38 );
39
40 return;
41 }
42 // If we have a @dev version set always use that one!
43 if ( 'dev-' === substr( $jetpack_packages_classes[ $class_name ]['version'], 0, 4 ) ) {
44 return;
45 }
46
47 // Always favour the @dev version. Since that version is the same as bleeding edge.
48 // We need to make sure that we don't do this in production!
49 if ( 'dev-' === substr( $version, 0, 4 ) ) {
50 $jetpack_packages_classes[ $class_name ] = array(
51 'version' => $version,
52 'path' => $path,
53 );
54
55 return;
56 }
57 // Set the latest version!
58 if ( version_compare( $jetpack_packages_classes[ $class_name ]['version'], $version, '<' ) ) {
59 $jetpack_packages_classes[ $class_name ] = array(
60 'version' => $version,
61 'path' => $path,
62 );
63 }
64 }
65 }
66
67 if ( ! function_exists( __NAMESPACE__ . '\enqueue_package_file' ) ) {
68 global $jetpack_packages_files;
69
70 if ( ! is_array( $jetpack_packages_files ) ) {
71 $jetpack_packages_files = array();
72 }
73 /**
74 * Adds the version of a package file to the $jetpack_packages_files global array so that
75 * we can load the most recent version after 'plugins_loaded'.
76 *
77 * @param string $file_identifier Unique id to file assigned by composer based on package name and filename.
78 * @param string $version Version of the file.
79 * @param string $path Absolute path to the file so that we can load it.
80 */
81 function enqueue_package_file( $file_identifier, $version, $path ) {
82 global $jetpack_packages_files;
83
84 if ( ! isset( $jetpack_packages_files[ $file_identifier ] ) ) {
85 $jetpack_packages_files[ $file_identifier ] = array(
86 'version' => $version,
87 'path' => $path,
88 );
89
90 return;
91 }
92 // If we have a @dev version set always use that one!
93 if ( 'dev-' === substr( $jetpack_packages_files[ $file_identifier ]['version'], 0, 4 ) ) {
94 return;
95 }
96
97 // Always favour the @dev version. Since that version is the same as bleeding edge.
98 // We need to make sure that we don't do this in production!
99 if ( 'dev-' === substr( $version, 0, 4 ) ) {
100 $jetpack_packages_files[ $file_identifier ] = array(
101 'version' => $version,
102 'path' => $path,
103 );
104
105 return;
106 }
107 // Set the latest version!
108 if ( version_compare( $jetpack_packages_files[ $file_identifier ]['version'], $version, '<' ) ) {
109 $jetpack_packages_files[ $file_identifier ] = array(
110 'version' => $version,
111 'path' => $path,
112 );
113 }
114 }
115 }
116
117 if ( ! function_exists( __NAMESPACE__ . '\file_loader' ) ) {
118 /**
119 * Include latest version of all enqueued files. Should be called after all plugins are loaded.
120 */
121 function file_loader() {
122 global $jetpack_packages_files;
123 foreach ( $jetpack_packages_files as $file_identifier => $file_data ) {
124 if ( empty( $GLOBALS['__composer_autoload_files'][ $file_identifier ] ) ) {
125 require $file_data['path'];
126
127 $GLOBALS['__composer_autoload_files'][ $file_identifier ] = true;
128 }
129 }
130 }
131 }
132
133 if ( ! function_exists( __NAMESPACE__ . '\autoloader' ) ) {
134 /**
135 * Used for autoloading jetpack packages.
136 *
137 * @param string $class_name Class Name to load.
138 */
139 function autoloader( $class_name ) {
140 global $jetpack_packages_classes;
141
142 if ( isset( $jetpack_packages_classes[ $class_name ] ) ) {
143 if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
144 // TODO ideally we shouldn't skip any of these, see: https://github.com/Automattic/jetpack/pull/12646.
145 $ignore = in_array(
146 $class_name,
147 array(
148 'Automattic\Jetpack\Connection\Manager',
149 'Jetpack_Options',
150 ),
151 true
152 );
153
154 if ( ! $ignore && function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) ) {
155 _doing_it_wrong(
156 esc_html( $class_name ),
157 sprintf(
158 /* translators: %s Name of a PHP Class */
159 esc_html__( 'Not all plugins have loaded yet but we requested the class %s', 'jetpack' ),
160 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
161 $class_name
162 ),
163 esc_html( $jetpack_packages_classes[ $class_name ]['version'] )
164 );
165 }
166 }
167
168 require_once $jetpack_packages_classes[ $class_name ]['path'];
169
170 return true;
171 }
172
173 return false;
174 }
175
176 // Add the jetpack autoloader.
177 spl_autoload_register( __NAMESPACE__ . '\autoloader' );
178 }
179 /**
180 * Prepare all the classes for autoloading.
181 */
182 function enqueue_packages_038fdca706ad935d5189f44fddcae24c() {
183 $class_map = require_once dirname( __FILE__ ) . '/composer/autoload_classmap_package.php';
184 foreach ( $class_map as $class_name => $class_info ) {
185 enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] );
186 }
187
188 $autoload_file = __DIR__ . '/composer/autoload_files_package.php';
189
190 $includeFiles = file_exists( $autoload_file )
191 ? require $autoload_file
192 : array();
193
194 foreach ( $includeFiles as $fileIdentifier => $file_data ) {
195 enqueue_package_file( $fileIdentifier, $file_data[ 'version' ], $file_data[ 'path' ] );
196 }
197
198 if ( function_exists( 'has_action') && function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) && false === has_action( 'plugins_loaded', __NAMESPACE__ . '\file_loader' ) ) {
199 // Add action if it has not been added and has not happened yet.
200 // Priority -10 to load files as early as possible in case plugins try to use them during `plugins_loaded`.
201 add_action( 'plugins_loaded', __NAMESPACE__ . '\file_loader', 0, -10 );
202 } elseif( ! function_exists( 'did_action' ) || did_action( 'plugins_loaded' ) ) {
203 file_loader(); // Either WordPress is not loaded or plugin is doing it wrong. Either way we'll load the files so nothing breaks.
204 }
205 }
206 enqueue_packages_038fdca706ad935d5189f44fddcae24c();
207