Version Description
- Fix detection and removal of unregistered clients by changing the internal resource name this plugin uses to enqueue its resource. Change it to something unlikely to be used by other themes or plugins.
Download this release
Release Info
Developer | mlwilkerson |
Plugin | Font Awesome Icons |
Version | 4.0.0-rc7 |
Comparing to | |
See all releases |
Code changes from version 4.0.0-rc6 to 4.0.0-rc7
- font-awesome.php +1 -1
- includes/class-fontawesome-release-provider.php +29 -29
- includes/class-fontawesome-resource.php +6 -6
- includes/class-fontawesome-v3mapper.php +4 -4
- includes/class-fontawesome.php +8 -8
- readme.txt +8 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +3 -3
font-awesome.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Font Awesome
|
4 |
* Plugin URI: https://fontawesome.com/how-to-use/on-the-web/using-with/wordpress
|
5 |
* Description: Adds Font Awesome 5 icons to your WordPress site. Supports Font Awesome Pro. Resolves conflicts across many plugins or themes that use Font Awesome.
|
6 |
-
* Version: 4.0.0-
|
7 |
* Author: Font Awesome
|
8 |
* Author URI: https://fontawesome.com/
|
9 |
* License: GPLv2 (or later)
|
3 |
* Plugin Name: Font Awesome
|
4 |
* Plugin URI: https://fontawesome.com/how-to-use/on-the-web/using-with/wordpress
|
5 |
* Description: Adds Font Awesome 5 icons to your WordPress site. Supports Font Awesome Pro. Resolves conflicts across many plugins or themes that use Font Awesome.
|
6 |
+
* Version: 4.0.0-rc7
|
7 |
* Author: Font Awesome
|
8 |
* Author URI: https://fontawesome.com/
|
9 |
* License: GPLv2 (or later)
|
includes/class-fontawesome-release-provider.php
CHANGED
@@ -43,38 +43,38 @@ class FontAwesome_Release_Provider {
|
|
43 |
/**
|
44 |
* @ignore
|
45 |
*/
|
46 |
-
protected $
|
47 |
|
48 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
49 |
/**
|
50 |
* @ignore
|
51 |
*/
|
52 |
-
protected $
|
53 |
|
54 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
55 |
/**
|
56 |
* @ignore
|
57 |
*/
|
58 |
-
protected $
|
59 |
|
60 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
61 |
/**
|
62 |
* @ignore
|
63 |
*/
|
64 |
-
protected static $
|
65 |
|
66 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
67 |
/**
|
68 |
* @ignore
|
69 |
*/
|
70 |
-
protected static $
|
71 |
|
72 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
73 |
/**
|
74 |
* @ignore
|
75 |
*/
|
76 |
public static function set_handler( $handler ) {
|
77 |
-
self::$
|
78 |
}
|
79 |
|
80 |
/**
|
@@ -83,10 +83,10 @@ class FontAwesome_Release_Provider {
|
|
83 |
* @return FontAwesome_Release_Provider
|
84 |
*/
|
85 |
public static function instance() {
|
86 |
-
if ( is_null( self::$
|
87 |
-
self::$
|
88 |
}
|
89 |
-
return self::$
|
90 |
}
|
91 |
|
92 |
/**
|
@@ -96,7 +96,7 @@ class FontAwesome_Release_Provider {
|
|
96 |
* @return FontAwesome_Release_Provider
|
97 |
*/
|
98 |
public static function reset() {
|
99 |
-
self::$
|
100 |
return self::instance();
|
101 |
}
|
102 |
|
@@ -121,7 +121,7 @@ class FontAwesome_Release_Provider {
|
|
121 |
* @return array|null
|
122 |
*/
|
123 |
public function get_status() {
|
124 |
-
return $this->
|
125 |
}
|
126 |
|
127 |
/**
|
@@ -136,15 +136,15 @@ class FontAwesome_Release_Provider {
|
|
136 |
// You can set any number of default request options.
|
137 |
'timeout' => 2.0,
|
138 |
);
|
139 |
-
if ( self::$
|
140 |
-
$client_params['handler'] = self::$
|
141 |
}
|
142 |
-
$this->
|
143 |
|
144 |
$cached_releases = get_transient( self::RELEASES_TRANSIENT );
|
145 |
|
146 |
if ( $cached_releases ) {
|
147 |
-
$this->
|
148 |
}
|
149 |
}
|
150 |
|
@@ -175,9 +175,9 @@ class FontAwesome_Release_Provider {
|
|
175 |
);
|
176 |
|
177 |
try {
|
178 |
-
$response = $this->
|
179 |
|
180 |
-
$this->
|
181 |
$init_status,
|
182 |
array(
|
183 |
'code' => $response->getStatusCode(),
|
@@ -207,9 +207,9 @@ class FontAwesome_Release_Provider {
|
|
207 |
throw new Exception();
|
208 |
}
|
209 |
|
210 |
-
$this->
|
211 |
} catch ( GuzzleHttp\Exception\ConnectException $e ) {
|
212 |
-
$this->
|
213 |
$init_status,
|
214 |
array(
|
215 |
'code' => $e->getCode(),
|
@@ -219,7 +219,7 @@ class FontAwesome_Release_Provider {
|
|
219 |
)
|
220 |
);
|
221 |
} catch ( GuzzleHttp\Exception\ServerException $e ) {
|
222 |
-
$this->
|
223 |
$init_status,
|
224 |
array(
|
225 |
'code' => $e->getCode(),
|
@@ -228,7 +228,7 @@ class FontAwesome_Release_Provider {
|
|
228 |
)
|
229 |
);
|
230 |
} catch ( GuzzleHttp\Exception\ClientException $e ) {
|
231 |
-
$this->
|
232 |
$init_status,
|
233 |
array(
|
234 |
'code' => $e->getCode(),
|
@@ -236,7 +236,7 @@ class FontAwesome_Release_Provider {
|
|
236 |
)
|
237 |
);
|
238 |
} catch ( Exception $e ) {
|
239 |
-
$this->
|
240 |
$init_status,
|
241 |
array(
|
242 |
'code' => 0,
|
@@ -244,7 +244,7 @@ class FontAwesome_Release_Provider {
|
|
244 |
)
|
245 |
);
|
246 |
} catch ( \Error $e ) {
|
247 |
-
$this->
|
248 |
$init_status,
|
249 |
array(
|
250 |
'code' => 0,
|
@@ -301,24 +301,24 @@ class FontAwesome_Release_Provider {
|
|
301 |
* @return array
|
302 |
*/
|
303 |
protected function releases() {
|
304 |
-
if ( $this->
|
305 |
-
return $this->
|
306 |
} else {
|
307 |
$cached_releases = get_transient( self::RELEASES_TRANSIENT );
|
308 |
|
309 |
if ( $cached_releases ) {
|
310 |
return $cached_releases;
|
311 |
-
} elseif ( is_null( $this->
|
312 |
$this->load_releases();
|
313 |
|
314 |
// TODO: consider adding retry logic for loading Font Awesome releases.
|
315 |
-
if ( is_null( $this->
|
316 |
throw new FontAwesome_NoReleasesException();
|
317 |
} else {
|
318 |
-
return $this->
|
319 |
}
|
320 |
} else {
|
321 |
-
return $this->
|
322 |
}
|
323 |
}
|
324 |
}
|
43 |
/**
|
44 |
* @ignore
|
45 |
*/
|
46 |
+
protected $releases = null;
|
47 |
|
48 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
49 |
/**
|
50 |
* @ignore
|
51 |
*/
|
52 |
+
protected $status = null;
|
53 |
|
54 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
55 |
/**
|
56 |
* @ignore
|
57 |
*/
|
58 |
+
protected $api_client = null;
|
59 |
|
60 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
61 |
/**
|
62 |
* @ignore
|
63 |
*/
|
64 |
+
protected static $instance = null;
|
65 |
|
66 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
67 |
/**
|
68 |
* @ignore
|
69 |
*/
|
70 |
+
protected static $handler = null;
|
71 |
|
72 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
73 |
/**
|
74 |
* @ignore
|
75 |
*/
|
76 |
public static function set_handler( $handler ) {
|
77 |
+
self::$handler = $handler;
|
78 |
}
|
79 |
|
80 |
/**
|
83 |
* @return FontAwesome_Release_Provider
|
84 |
*/
|
85 |
public static function instance() {
|
86 |
+
if ( is_null( self::$instance ) ) {
|
87 |
+
self::$instance = new self();
|
88 |
}
|
89 |
+
return self::$instance;
|
90 |
}
|
91 |
|
92 |
/**
|
96 |
* @return FontAwesome_Release_Provider
|
97 |
*/
|
98 |
public static function reset() {
|
99 |
+
self::$instance = null;
|
100 |
return self::instance();
|
101 |
}
|
102 |
|
121 |
* @return array|null
|
122 |
*/
|
123 |
public function get_status() {
|
124 |
+
return $this->status;
|
125 |
}
|
126 |
|
127 |
/**
|
136 |
// You can set any number of default request options.
|
137 |
'timeout' => 2.0,
|
138 |
);
|
139 |
+
if ( self::$handler ) {
|
140 |
+
$client_params['handler'] = self::$handler;
|
141 |
}
|
142 |
+
$this->api_client = new Client( $client_params );
|
143 |
|
144 |
$cached_releases = get_transient( self::RELEASES_TRANSIENT );
|
145 |
|
146 |
if ( $cached_releases ) {
|
147 |
+
$this->releases = $cached_releases;
|
148 |
}
|
149 |
}
|
150 |
|
175 |
);
|
176 |
|
177 |
try {
|
178 |
+
$response = $this->api_client->get( 'api/releases' );
|
179 |
|
180 |
+
$this->status = array_merge(
|
181 |
$init_status,
|
182 |
array(
|
183 |
'code' => $response->getStatusCode(),
|
207 |
throw new Exception();
|
208 |
}
|
209 |
|
210 |
+
$this->releases = $releases;
|
211 |
} catch ( GuzzleHttp\Exception\ConnectException $e ) {
|
212 |
+
$this->status = array_merge(
|
213 |
$init_status,
|
214 |
array(
|
215 |
'code' => $e->getCode(),
|
219 |
)
|
220 |
);
|
221 |
} catch ( GuzzleHttp\Exception\ServerException $e ) {
|
222 |
+
$this->status = array_merge(
|
223 |
$init_status,
|
224 |
array(
|
225 |
'code' => $e->getCode(),
|
228 |
)
|
229 |
);
|
230 |
} catch ( GuzzleHttp\Exception\ClientException $e ) {
|
231 |
+
$this->status = array_merge(
|
232 |
$init_status,
|
233 |
array(
|
234 |
'code' => $e->getCode(),
|
236 |
)
|
237 |
);
|
238 |
} catch ( Exception $e ) {
|
239 |
+
$this->status = array_merge(
|
240 |
$init_status,
|
241 |
array(
|
242 |
'code' => 0,
|
244 |
)
|
245 |
);
|
246 |
} catch ( \Error $e ) {
|
247 |
+
$this->status = array_merge(
|
248 |
$init_status,
|
249 |
array(
|
250 |
'code' => 0,
|
301 |
* @return array
|
302 |
*/
|
303 |
protected function releases() {
|
304 |
+
if ( $this->releases ) {
|
305 |
+
return $this->releases;
|
306 |
} else {
|
307 |
$cached_releases = get_transient( self::RELEASES_TRANSIENT );
|
308 |
|
309 |
if ( $cached_releases ) {
|
310 |
return $cached_releases;
|
311 |
+
} elseif ( is_null( $this->releases ) ) {
|
312 |
$this->load_releases();
|
313 |
|
314 |
// TODO: consider adding retry logic for loading Font Awesome releases.
|
315 |
+
if ( is_null( $this->releases ) ) {
|
316 |
throw new FontAwesome_NoReleasesException();
|
317 |
} else {
|
318 |
+
return $this->releases;
|
319 |
}
|
320 |
} else {
|
321 |
+
return $this->releases;
|
322 |
}
|
323 |
}
|
324 |
}
|
includes/class-fontawesome-resource.php
CHANGED
@@ -6,17 +6,17 @@ if ( ! class_exists( 'FontAwesome_Resource' ) ) :
|
|
6 |
* to be used when enqueuing a script or style resource.
|
7 |
*/
|
8 |
class FontAwesome_Resource {
|
9 |
-
protected $
|
10 |
-
protected $
|
11 |
|
12 |
public function __construct( $source, $integrity_key ) {
|
13 |
-
$this->
|
14 |
-
$this->
|
15 |
}
|
16 |
|
17 |
public function source() {
|
18 |
-
return $this->
|
19 |
public function integrity_key() {
|
20 |
-
return $this->
|
21 |
}
|
22 |
endif; // !class_exists
|
6 |
* to be used when enqueuing a script or style resource.
|
7 |
*/
|
8 |
class FontAwesome_Resource {
|
9 |
+
protected $source;
|
10 |
+
protected $integrity_key;
|
11 |
|
12 |
public function __construct( $source, $integrity_key ) {
|
13 |
+
$this->source = $source;
|
14 |
+
$this->integrity_key = $integrity_key;
|
15 |
}
|
16 |
|
17 |
public function source() {
|
18 |
+
return $this->source; }
|
19 |
public function integrity_key() {
|
20 |
+
return $this->integrity_key; }
|
21 |
}
|
22 |
endif; // !class_exists
|
includes/class-fontawesome-v3mapper.php
CHANGED
@@ -31,7 +31,7 @@ if ( ! class_exists( 'FontAwesome_V3Mapper' ) ) :
|
|
31 |
/**
|
32 |
* @ignore
|
33 |
*/
|
34 |
-
private static $
|
35 |
|
36 |
/**
|
37 |
* Returns the singleton instance of this class.
|
@@ -43,10 +43,10 @@ if ( ! class_exists( 'FontAwesome_V3Mapper' ) ) :
|
|
43 |
* @ignore
|
44 |
*/
|
45 |
public static function instance() {
|
46 |
-
if ( is_null( self::$
|
47 |
-
self::$
|
48 |
}
|
49 |
-
return self::$
|
50 |
}
|
51 |
|
52 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
31 |
/**
|
32 |
* @ignore
|
33 |
*/
|
34 |
+
private static $instance = null;
|
35 |
|
36 |
/**
|
37 |
* Returns the singleton instance of this class.
|
43 |
* @ignore
|
44 |
*/
|
45 |
public static function instance() {
|
46 |
+
if ( is_null( self::$instance ) ) {
|
47 |
+
self::$instance = new self();
|
48 |
}
|
49 |
+
return self::$instance;
|
50 |
}
|
51 |
|
52 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
includes/class-fontawesome.php
CHANGED
@@ -101,7 +101,7 @@ if ( ! class_exists( 'FontAwesome' ) ) :
|
|
101 |
/**
|
102 |
* The version of this WordPress plugin.
|
103 |
*/
|
104 |
-
const PLUGIN_VERSION = '4.0.0-
|
105 |
/**
|
106 |
* The version of this plugin's REST API.
|
107 |
*
|
@@ -126,7 +126,7 @@ if ( ! class_exists( 'FontAwesome' ) ) :
|
|
126 |
*
|
127 |
* @since 4.0.0
|
128 |
*/
|
129 |
-
const RESOURCE_HANDLE = 'font-awesome';
|
130 |
/**
|
131 |
* The handle used when enqueuing the v4shim, when it is included in the load specification.
|
132 |
*
|
@@ -134,7 +134,7 @@ if ( ! class_exists( 'FontAwesome' ) ) :
|
|
134 |
*
|
135 |
* @see FontAwesome::load_spec()
|
136 |
*/
|
137 |
-
const RESOURCE_HANDLE_V4SHIM = 'font-awesome-v4shim';
|
138 |
|
139 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
140 |
/**
|
@@ -167,7 +167,7 @@ if ( ! class_exists( 'FontAwesome' ) ) :
|
|
167 |
/**
|
168 |
* @ignore
|
169 |
*/
|
170 |
-
protected static $
|
171 |
|
172 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
173 |
/**
|
@@ -214,10 +214,10 @@ if ( ! class_exists( 'FontAwesome' ) ) :
|
|
214 |
* @return FontAwesome
|
215 |
*/
|
216 |
public static function instance() {
|
217 |
-
if ( is_null( self::$
|
218 |
-
self::$
|
219 |
}
|
220 |
-
return self::$
|
221 |
}
|
222 |
|
223 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
@@ -654,7 +654,7 @@ if ( ! class_exists( 'FontAwesome' ) ) :
|
|
654 |
* @return FontAwesome
|
655 |
*/
|
656 |
public static function reset() {
|
657 |
-
self::$
|
658 |
return fa();
|
659 |
}
|
660 |
|
101 |
/**
|
102 |
* The version of this WordPress plugin.
|
103 |
*/
|
104 |
+
const PLUGIN_VERSION = '4.0.0-rc7';
|
105 |
/**
|
106 |
* The version of this plugin's REST API.
|
107 |
*
|
126 |
*
|
127 |
* @since 4.0.0
|
128 |
*/
|
129 |
+
const RESOURCE_HANDLE = 'font-awesome-official';
|
130 |
/**
|
131 |
* The handle used when enqueuing the v4shim, when it is included in the load specification.
|
132 |
*
|
134 |
*
|
135 |
* @see FontAwesome::load_spec()
|
136 |
*/
|
137 |
+
const RESOURCE_HANDLE_V4SHIM = 'font-awesome-official-v4shim';
|
138 |
|
139 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
140 |
/**
|
167 |
/**
|
168 |
* @ignore
|
169 |
*/
|
170 |
+
protected static $instance = null;
|
171 |
|
172 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
173 |
/**
|
214 |
* @return FontAwesome
|
215 |
*/
|
216 |
public static function instance() {
|
217 |
+
if ( is_null( self::$instance ) ) {
|
218 |
+
self::$instance = new self();
|
219 |
}
|
220 |
+
return self::$instance;
|
221 |
}
|
222 |
|
223 |
// phpcs:ignore Generic.Commenting.DocComment.MissingShort
|
654 |
* @return FontAwesome
|
655 |
*/
|
656 |
public static function reset() {
|
657 |
+
self::$instance = null;
|
658 |
return fa();
|
659 |
}
|
660 |
|
readme.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
=== Font Awesome ===
|
2 |
Contributors: fontawesome, mlwilkerson, robmadole, rachelbaker
|
3 |
-
Stable tag: 4.0.0-
|
4 |
Tags: font, awesome, fontawesome, font-awesome, icon, svg, webfont
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 5.0
|
@@ -144,6 +144,8 @@ If you've been a user of previous versions of this plugin, you'll eventually nee
|
|
144 |
|
145 |
We've tried to smooth the upgrade path for you by keeping that shortcode compatible with Font Awesome 3 names you're used to, while magically transforming them into their Font Awesome 5 equivalents on the fly. You'll still need to change your icon shortcodes in pages, posts, and templates. But our upgrade magic gives you some cushion to take a more leisurely pace. We plan to remove version 3 naming support, and the magic, from this plugin in upcoming releases, though, so don't wait too long!
|
146 |
|
|
|
|
|
147 |
== See Also ==
|
148 |
|
149 |
The [README](https://github.com/FortAwesome/wordpress-fontawesome/blob/master/README.md) on GitHub has some more details for WordPress site owners and developers.
|
@@ -184,6 +186,11 @@ Find the Font Awesome admin settings page either under the "Settings" menu on th
|
|
184 |
|
185 |
== Changelog ==
|
186 |
|
|
|
|
|
|
|
|
|
|
|
187 |
= 4.0.0-rc6 =
|
188 |
|
189 |
* Fix error when updating options on admin page: handle null releaseProviderStatus in cases where the release provider
|
1 |
=== Font Awesome ===
|
2 |
Contributors: fontawesome, mlwilkerson, robmadole, rachelbaker
|
3 |
+
Stable tag: 4.0.0-rc7
|
4 |
Tags: font, awesome, fontawesome, font-awesome, icon, svg, webfont
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 5.0
|
144 |
|
145 |
We've tried to smooth the upgrade path for you by keeping that shortcode compatible with Font Awesome 3 names you're used to, while magically transforming them into their Font Awesome 5 equivalents on the fly. You'll still need to change your icon shortcodes in pages, posts, and templates. But our upgrade magic gives you some cushion to take a more leisurely pace. We plan to remove version 3 naming support, and the magic, from this plugin in upcoming releases, though, so don't wait too long!
|
146 |
|
147 |
+
Note that this automatic translation of version 3 icon names to version 5 icon names will only occur where you've used the `[icon]` shortcode. If you've directly used `<i>` tags to reference version 3 icons, like `<i class="icon-calendar"></i>`, you'll need to manually revise those to use version 5 names.
|
148 |
+
|
149 |
== See Also ==
|
150 |
|
151 |
The [README](https://github.com/FortAwesome/wordpress-fontawesome/blob/master/README.md) on GitHub has some more details for WordPress site owners and developers.
|
186 |
|
187 |
== Changelog ==
|
188 |
|
189 |
+
= 4.0.0-rc7 =
|
190 |
+
|
191 |
+
* Fix detection and removal of unregistered clients by changing the internal resource name this plugin uses to enqueue its resource.
|
192 |
+
Change it to something unlikely to be used by other themes or plugins.
|
193 |
+
|
194 |
= 4.0.0-rc6 =
|
195 |
|
196 |
* Fix error when updating options on admin page: handle null releaseProviderStatus in cases where the release provider
|
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 ComposerAutoloaderInit3c340d592ca6051a5ca9dbdef3ff7269::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 ComposerAutoloaderInit0fa3a45264fc9be9601c708429dbb707
|
|
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 ComposerAutoloaderInit0fa3a45264fc9be9601c708429dbb707
|
|
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 ComposerAutoloaderInit3c340d592ca6051a5ca9dbdef3ff7269
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit3c340d592ca6051a5ca9dbdef3ff7269', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit3c340d592ca6051a5ca9dbdef3ff7269', '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\ComposerStaticInit3c340d592ca6051a5ca9dbdef3ff7269::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\ComposerStaticInit3c340d592ca6051a5ca9dbdef3ff7269::$files;
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
+
composerRequire3c340d592ca6051a5ca9dbdef3ff7269($fileIdentifier, $file);
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
function composerRequire3c340d592ca6051a5ca9dbdef3ff7269($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 |
'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php',
|
@@ -56,8 +56,8 @@ class ComposerStaticInit0fa3a45264fc9be9601c708429dbb707
|
|
56 |
public static function getInitializer(ClassLoader $loader)
|
57 |
{
|
58 |
return \Closure::bind(function () use ($loader) {
|
59 |
-
$loader->prefixLengthsPsr4 =
|
60 |
-
$loader->prefixDirsPsr4 =
|
61 |
|
62 |
}, null, ClassLoader::class);
|
63 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit3c340d592ca6051a5ca9dbdef3ff7269
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php',
|
56 |
public static function getInitializer(ClassLoader $loader)
|
57 |
{
|
58 |
return \Closure::bind(function () use ($loader) {
|
59 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit3c340d592ca6051a5ca9dbdef3ff7269::$prefixLengthsPsr4;
|
60 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit3c340d592ca6051a5ca9dbdef3ff7269::$prefixDirsPsr4;
|
61 |
|
62 |
}, null, ClassLoader::class);
|
63 |
}
|