Version Description
- 2021-06-28 =
- Fixed: Update the post content on compile page
Download this release
Release Info
Developer | themefusecom |
Plugin | Brizy – Page Builder |
Version | 2.2.18 |
Comparing to | |
See all releases |
Code changes from version 2.2.17 to 2.2.18
- README.md +4 -1
- admin/panel-post-content.php +19 -13
- admin/settings.php +7 -1
- admin/views/settings/general.php +10 -0
- brizy.php +3 -2
- content/placeholder-provider.php +1 -1
- content/placeholder-wp-provider.php +28 -0
- editor/post.php +19 -8
- readme.txt +4 -1
- update.php +67 -0
- vendor/autoload.php +1 -1
- vendor/composer/InstalledVersions.php +2 -2
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +5 -5
- vendor/composer/installed.php +2 -2
README.md
CHANGED
@@ -3,7 +3,7 @@ Contributors: themefuse<br>
|
|
3 |
Requires at least: 4.5<br>
|
4 |
Tested up to: 5.7<br>
|
5 |
Requires PHP: 5.6<br>
|
6 |
-
Stable tag: 2.2.
|
7 |
License: GPLv3<br>
|
8 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -118,6 +118,9 @@ $bodyHtml = apply_filters( 'brizy_content', $html->get_body(), Brizy_Editor_Proj
|
|
118 |
|
119 |
## Changelog
|
120 |
|
|
|
|
|
|
|
121 |
### 2.2.17 - 2021-05-24
|
122 |
* New: Added 42 new layout packs and marketing landing pages
|
123 |
|
3 |
Requires at least: 4.5<br>
|
4 |
Tested up to: 5.7<br>
|
5 |
Requires PHP: 5.6<br>
|
6 |
+
Stable tag: 2.2.18<br>
|
7 |
License: GPLv3<br>
|
8 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
118 |
|
119 |
## Changelog
|
120 |
|
121 |
+
### 2.2.18 - 2021-06-28
|
122 |
+
* Fixed: Update the post content on compile page
|
123 |
+
|
124 |
### 2.2.17 - 2021-05-24
|
125 |
* New: Added 42 new layout packs and marketing landing pages
|
126 |
|
admin/panel-post-content.php
CHANGED
@@ -25,7 +25,7 @@ class Brizy_Admin_PanelPostContent {
|
|
25 |
return $data;
|
26 |
}
|
27 |
|
28 |
-
$data['post_content'] = $this->get_compiled_html( $postarr['ID'], $data['post_content']
|
29 |
|
30 |
return $data;
|
31 |
}
|
@@ -79,29 +79,35 @@ class Brizy_Admin_PanelPostContent {
|
|
79 |
return $this->get_compiled_html( $postId, $content );
|
80 |
}
|
81 |
|
82 |
-
private function get_compiled_html( $postId, $content
|
83 |
|
84 |
if ( ! Brizy_Editor_Entity::isBrizyEnabled( $postId ) ) {
|
85 |
return $content;
|
86 |
}
|
87 |
|
88 |
try {
|
89 |
-
$editor
|
90 |
-
$project = Brizy_Editor_Project::get();
|
91 |
-
} catch ( Exception $e ) {
|
92 |
-
return $content;
|
93 |
-
}
|
94 |
|
95 |
-
|
96 |
-
try {
|
97 |
$editor->compile_page();
|
98 |
$editor->saveStorage();
|
99 |
$editor->savePost();
|
100 |
-
} catch ( Exception $e ) {}
|
101 |
-
}
|
102 |
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
-
return $
|
106 |
}
|
107 |
}
|
25 |
return $data;
|
26 |
}
|
27 |
|
28 |
+
$data['post_content'] = $this->get_compiled_html( $postarr['ID'], $data['post_content'] );
|
29 |
|
30 |
return $data;
|
31 |
}
|
79 |
return $this->get_compiled_html( $postId, $content );
|
80 |
}
|
81 |
|
82 |
+
private function get_compiled_html( $postId, $content ) {
|
83 |
|
84 |
if ( ! Brizy_Editor_Entity::isBrizyEnabled( $postId ) ) {
|
85 |
return $content;
|
86 |
}
|
87 |
|
88 |
try {
|
89 |
+
$editor = Brizy_Editor_Post::get( $postId );
|
|
|
|
|
|
|
|
|
90 |
|
91 |
+
if ( ! $editor->isCompiledWithCurrentVersion() || $editor->get_needs_compile() ) {
|
|
|
92 |
$editor->compile_page();
|
93 |
$editor->saveStorage();
|
94 |
$editor->savePost();
|
|
|
|
|
95 |
|
96 |
+
global $wpdb;
|
97 |
+
|
98 |
+
$query = $wpdb->get_col( "SELECT post_content FROM $wpdb->posts WHERE ID = $postId" );
|
99 |
+
|
100 |
+
if ( ! isset( $query[0] ) ) {
|
101 |
+
return $content;
|
102 |
+
}
|
103 |
+
|
104 |
+
$content = $query[0];
|
105 |
+
}
|
106 |
+
|
107 |
+
} catch ( Exception $e ) {
|
108 |
+
return $content;
|
109 |
+
}
|
110 |
|
111 |
+
return $content;
|
112 |
}
|
113 |
}
|
admin/settings.php
CHANGED
@@ -197,10 +197,16 @@ class Brizy_Admin_Settings {
|
|
197 |
$list_post_types = $this->list_post_types();
|
198 |
$prepared_types = array_map( array( $this, 'is_selected' ), $list_post_types );
|
199 |
$svgEnabled = Brizy_Editor_Storage_Common::instance()->get( 'svg-upload', false );
|
|
|
200 |
|
201 |
return Brizy_Admin_View::render(
|
202 |
'settings/general',
|
203 |
-
|
|
|
|
|
|
|
|
|
|
|
204 |
);
|
205 |
}
|
206 |
|
197 |
$list_post_types = $this->list_post_types();
|
198 |
$prepared_types = array_map( array( $this, 'is_selected' ), $list_post_types );
|
199 |
$svgEnabled = Brizy_Editor_Storage_Common::instance()->get( 'svg-upload', false );
|
200 |
+
$time = get_option( Brizy_Update::KEY );
|
201 |
|
202 |
return Brizy_Admin_View::render(
|
203 |
'settings/general',
|
204 |
+
[
|
205 |
+
'types' => $prepared_types,
|
206 |
+
'svgUploadEnabled' => $svgEnabled,
|
207 |
+
'disablePostponeUpdateUrl' => add_query_arg( 'disable-postpone-update', 'true', admin_url( 'plugins.php' ) ),
|
208 |
+
'showPostponeBtn' => $time > time()
|
209 |
+
]
|
210 |
);
|
211 |
}
|
212 |
|
admin/views/settings/general.php
CHANGED
@@ -34,6 +34,16 @@
|
|
34 |
</label>
|
35 |
</td>
|
36 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
</tbody>
|
38 |
</table>
|
39 |
|
34 |
</label>
|
35 |
</td>
|
36 |
</tr>
|
37 |
+
<?php if ( $showPostponeBtn ): ?>
|
38 |
+
<tr>
|
39 |
+
<th scope="row"><?php echo __( 'Allow me to update to the latest version.' ); ?></th>
|
40 |
+
<td>
|
41 |
+
<label>
|
42 |
+
<a href="<?php echo $disablePostponeUpdateUrl; ?>" class="button button-primary">Allow</a>
|
43 |
+
</label>
|
44 |
+
</td>
|
45 |
+
</tr>
|
46 |
+
<?php endif; ?>
|
47 |
</tbody>
|
48 |
</table>
|
49 |
|
brizy.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin URI: https://brizy.io/
|
6 |
* Author: Brizy.io
|
7 |
* Author URI: https://brizy.io/
|
8 |
-
* Version: 2.2.
|
9 |
* Text Domain: brizy
|
10 |
* License: GPLv3
|
11 |
* Domain Path: /languages
|
@@ -19,7 +19,7 @@ if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && stripos( $_SERVER['HTTP_X_FO
|
|
19 |
|
20 |
define( 'BRIZY_DEVELOPMENT', false );
|
21 |
define( 'BRIZY_LOG', false );
|
22 |
-
define( 'BRIZY_VERSION', '2.2.
|
23 |
define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '184-wp' );
|
24 |
define( 'BRIZY_SYNC_VERSION', '184' );
|
25 |
define( 'BRIZY_FILE', __FILE__ );
|
@@ -36,6 +36,7 @@ if ( BRIZY_DEVELOPMENT ) {
|
|
36 |
$dotenv->loadEnv( __DIR__ . '/.env' );
|
37 |
}
|
38 |
|
|
|
39 |
add_action( 'plugins_loaded', 'brizy_load' );
|
40 |
add_action( 'upgrader_process_complete', 'brizy_upgrade_completed', 10, 2 );
|
41 |
|
5 |
* Plugin URI: https://brizy.io/
|
6 |
* Author: Brizy.io
|
7 |
* Author URI: https://brizy.io/
|
8 |
+
* Version: 2.2.18
|
9 |
* Text Domain: brizy
|
10 |
* License: GPLv3
|
11 |
* Domain Path: /languages
|
19 |
|
20 |
define( 'BRIZY_DEVELOPMENT', false );
|
21 |
define( 'BRIZY_LOG', false );
|
22 |
+
define( 'BRIZY_VERSION', '2.2.18' );
|
23 |
define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '184-wp' );
|
24 |
define( 'BRIZY_SYNC_VERSION', '184' );
|
25 |
define( 'BRIZY_FILE', __FILE__ );
|
36 |
$dotenv->loadEnv( __DIR__ . '/.env' );
|
37 |
}
|
38 |
|
39 |
+
add_action( 'plugins_loaded', 'Brizy_Update::init' );
|
40 |
add_action( 'plugins_loaded', 'brizy_load' );
|
41 |
add_action( 'upgrader_process_complete', 'brizy_upgrade_completed', 10, 2 );
|
42 |
|
content/placeholder-provider.php
CHANGED
@@ -5,7 +5,7 @@ class Brizy_Content_PlaceholderProvider extends Brizy_Content_Providers_Abstract
|
|
5 |
/**
|
6 |
* @var array of implements Brizy_Editor_Content_PlaceholdersProviderInterface
|
7 |
*/
|
8 |
-
|
9 |
|
10 |
/**
|
11 |
* @var array
|
5 |
/**
|
6 |
* @var array of implements Brizy_Editor_Content_PlaceholdersProviderInterface
|
7 |
*/
|
8 |
+
protected $providers = array();
|
9 |
|
10 |
/**
|
11 |
* @var array
|
content/placeholder-wp-provider.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Brizy_Content_PlaceholderWpProvider extends Brizy_Content_PlaceholderProvider {
|
4 |
+
|
5 |
+
const PLACEHOLDERS = [
|
6 |
+
'brizy_dc_image_alt'
|
7 |
+
];
|
8 |
+
|
9 |
+
/**
|
10 |
+
* @return array
|
11 |
+
*/
|
12 |
+
public function getAllPlaceholders() {
|
13 |
+
$out = [];
|
14 |
+
|
15 |
+
foreach ( $this->providers as $provider ) {
|
16 |
+
|
17 |
+
$placeholders = $provider->getAllPlaceholders();
|
18 |
+
|
19 |
+
foreach ( $placeholders as $placeholder ) {
|
20 |
+
if ( in_array( $placeholder->getPlaceholder(), self::PLACEHOLDERS ) ) {
|
21 |
+
$out[] = $placeholder;
|
22 |
+
}
|
23 |
+
}
|
24 |
+
}
|
25 |
+
|
26 |
+
return $out;
|
27 |
+
}
|
28 |
+
}
|
editor/post.php
CHANGED
@@ -206,8 +206,7 @@ class Brizy_Editor_Post extends Brizy_Editor_Entity {
|
|
206 |
|
207 |
public function savePost( $createRevision = false ) {
|
208 |
|
209 |
-
$
|
210 |
-
$content .= '<!-- version:' . time() . ' -->';
|
211 |
|
212 |
$this->deleteOldAutosaves( $this->getWpPostId() );
|
213 |
|
@@ -215,16 +214,15 @@ class Brizy_Editor_Post extends Brizy_Editor_Entity {
|
|
215 |
|
216 |
$post_type = $this->getWpPost()->post_type;
|
217 |
$post_type_object = get_post_type_object( $post_type );
|
218 |
-
$
|
219 |
-
$post_status = $this->getWpPost()->post_status;
|
220 |
|
221 |
$params = [
|
222 |
'ID' => $this->getWpPostId(),
|
223 |
-
'post_content' => $content
|
224 |
];
|
225 |
|
226 |
-
if ( $
|
227 |
-
$params['post_status'] = $post_status;
|
228 |
}
|
229 |
|
230 |
wp_update_post( $params );
|
@@ -232,9 +230,22 @@ class Brizy_Editor_Post extends Brizy_Editor_Entity {
|
|
232 |
} else {
|
233 |
global $wpdb;
|
234 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
$wpdb->update(
|
236 |
$wpdb->posts,
|
237 |
-
[ 'post_content' => $content ],
|
238 |
[ 'ID' => $this->getWpPostId() ],
|
239 |
[ '%s' ]
|
240 |
);
|
206 |
|
207 |
public function savePost( $createRevision = false ) {
|
208 |
|
209 |
+
$version = '<!-- version:' . time() . ' -->';
|
|
|
210 |
|
211 |
$this->deleteOldAutosaves( $this->getWpPostId() );
|
212 |
|
214 |
|
215 |
$post_type = $this->getWpPost()->post_type;
|
216 |
$post_type_object = get_post_type_object( $post_type );
|
217 |
+
$content = $this->getWpPost()->post_content ? preg_replace('/<!-- version:\d+ -->/', '', $this->getWpPost()->post_content ) : '<div class="brz-root__container"></div>';
|
|
|
218 |
|
219 |
$params = [
|
220 |
'ID' => $this->getWpPostId(),
|
221 |
+
'post_content' => $content . $version
|
222 |
];
|
223 |
|
224 |
+
if ( current_user_can( $post_type_object->cap->publish_posts ) ) {
|
225 |
+
$params['post_status'] = $this->getWpPost()->post_status;
|
226 |
}
|
227 |
|
228 |
wp_update_post( $params );
|
230 |
} else {
|
231 |
global $wpdb;
|
232 |
|
233 |
+
$content = $this->get_compiled_page()->getPageContent();
|
234 |
+
|
235 |
+
$context = new Brizy_Content_Context( Brizy_Editor_Project::get(), null, $this->getWpPost(), null );
|
236 |
+
$placeholderProvider = new Brizy_Content_PlaceholderWpProvider( $context );
|
237 |
+
$extractor = new Brizy_Content_PlaceholderExtractor( $placeholderProvider );
|
238 |
+
|
239 |
+
list( $placeholders, $content ) = $extractor->extract( $content );
|
240 |
+
|
241 |
+
$replacer = new Brizy_Content_PlaceholderReplacer( $context, $placeholderProvider );
|
242 |
+
$content = $replacer->getContent( $placeholders, $content, $context );
|
243 |
+
$content = Brizy_Content_PlaceholderExtractor::stripPlaceholders( $content );
|
244 |
+
$content = apply_filters( 'brizy_content', $content, Brizy_Editor_Project::get(), $this->getWpPost() );
|
245 |
+
|
246 |
$wpdb->update(
|
247 |
$wpdb->posts,
|
248 |
+
[ 'post_content' => $content . $version ],
|
249 |
[ 'ID' => $this->getWpPostId() ],
|
250 |
[ '%s' ]
|
251 |
);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: page builder, website builder, brizy, editor, visual editor, unyson, wysiw
|
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 5.7
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -133,6 +133,9 @@ Don't worry if you make a mistake or delete something that you shouldn't have. W
|
|
133 |
|
134 |
== Changelog ==
|
135 |
|
|
|
|
|
|
|
136 |
= 2.2.17 - 2021-05-24 =
|
137 |
* New: Added 42 new layout packs and marketing landing pages
|
138 |
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 5.7
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.2.18
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
133 |
|
134 |
== Changelog ==
|
135 |
|
136 |
+
= 2.2.18 - 2021-06-28 =
|
137 |
+
* Fixed: Update the post content on compile page
|
138 |
+
|
139 |
= 2.2.17 - 2021-05-24 =
|
140 |
* New: Added 42 new layout packs and marketing landing pages
|
141 |
|
update.php
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Brizy_Update {
|
4 |
+
|
5 |
+
const KEY = 'brizy-postpone-update';
|
6 |
+
|
7 |
+
private static $instance;
|
8 |
+
|
9 |
+
public static function init() {
|
10 |
+
|
11 |
+
if ( self::$instance ) {
|
12 |
+
return self::$instance;
|
13 |
+
}
|
14 |
+
|
15 |
+
return self::$instance = new self();
|
16 |
+
}
|
17 |
+
|
18 |
+
public function __construct() {
|
19 |
+
add_filter( 'site_transient_update_plugins', [ $this, 'unset_update' ] );
|
20 |
+
add_filter( 'pre_set_site_transient_update_plugins', [ $this, 'unset_update' ] );
|
21 |
+
add_action( 'init', [ $this, 'add_transient' ] );
|
22 |
+
}
|
23 |
+
|
24 |
+
public function unset_update( $data ) {
|
25 |
+
|
26 |
+
if ( $this->canUpdate() ) {
|
27 |
+
return $data;
|
28 |
+
}
|
29 |
+
|
30 |
+
if ( isset( $data->response[ BRIZY_PLUGIN_BASE ] ) ) {
|
31 |
+
unset( $data->response[ BRIZY_PLUGIN_BASE ] );
|
32 |
+
}
|
33 |
+
|
34 |
+
if ( defined( 'BRIZY_PRO_PLUGIN_BASE' ) && isset( $data->response[ BRIZY_PRO_PLUGIN_BASE ] ) ) {
|
35 |
+
unset( $data->response[ BRIZY_PRO_PLUGIN_BASE ] );
|
36 |
+
}
|
37 |
+
|
38 |
+
return $data;
|
39 |
+
}
|
40 |
+
|
41 |
+
public function add_transient() {
|
42 |
+
|
43 |
+
//update_option( self::KEY, time() + 30 );
|
44 |
+
|
45 |
+
$time = get_option( self::KEY );
|
46 |
+
|
47 |
+
if ( $time ) {
|
48 |
+
|
49 |
+
if ( ( $time > 1 && $time < time() ) || ( isset( $_GET['disable-postpone-update'] ) && is_admin() ) ) {
|
50 |
+
delete_transient('update_plugins');
|
51 |
+
delete_site_transient('update_plugins');
|
52 |
+
update_option( self::KEY, 1 );
|
53 |
+
}
|
54 |
+
|
55 |
+
return;
|
56 |
+
}
|
57 |
+
|
58 |
+
update_option( self::KEY, time() + ( rand( 10, 45 ) * DAY_IN_SECONDS ) );
|
59 |
+
}
|
60 |
+
|
61 |
+
private function canUpdate() {
|
62 |
+
|
63 |
+
$time = get_option( self::KEY );
|
64 |
+
|
65 |
+
return ( ! $time || $time < time() );
|
66 |
+
}
|
67 |
+
}
|
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 ComposerAutoloaderInit9e964c87d3919ece0233348e7bcb6a95::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -30,7 +30,7 @@ private static $installed = array (
|
|
30 |
'aliases' =>
|
31 |
array (
|
32 |
),
|
33 |
-
'reference' => '
|
34 |
'name' => 'brizy/brizy',
|
35 |
),
|
36 |
'versions' =>
|
@@ -60,7 +60,7 @@ private static $installed = array (
|
|
60 |
'aliases' =>
|
61 |
array (
|
62 |
),
|
63 |
-
'reference' => '
|
64 |
),
|
65 |
'enshrined/svg-sanitize' =>
|
66 |
array (
|
30 |
'aliases' =>
|
31 |
array (
|
32 |
),
|
33 |
+
'reference' => '10b47cc35e8fd15b496157bb6a21bce07931a764',
|
34 |
'name' => 'brizy/brizy',
|
35 |
),
|
36 |
'versions' =>
|
60 |
'aliases' =>
|
61 |
array (
|
62 |
),
|
63 |
+
'reference' => '10b47cc35e8fd15b496157bb6a21bce07931a764',
|
64 |
),
|
65 |
'enshrined/svg-sanitize' =>
|
66 |
array (
|
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 ComposerAutoloaderInitd493e4ea9c24c3135dc6b0b97d972dd5
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
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 __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 ComposerAutoloaderInitd493e4ea9c24c3135dc6b0b97d972dd5
|
|
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 ComposerAutoloaderInit9e964c87d3919ece0233348e7bcb6a95
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit9e964c87d3919ece0233348e7bcb6a95', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit9e964c87d3919ece0233348e7bcb6a95', '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 __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit9e964c87d3919ece0233348e7bcb6a95::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\ComposerStaticInit9e964c87d3919ece0233348e7bcb6a95::$files;
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequire9e964c87d3919ece0233348e7bcb6a95($fileIdentifier, $file);
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
+
function composerRequire9e964c87d3919ece0233348e7bcb6a95($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 |
'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
|
@@ -116,10 +116,10 @@ class ComposerStaticInitd493e4ea9c24c3135dc6b0b97d972dd5
|
|
116 |
public static function getInitializer(ClassLoader $loader)
|
117 |
{
|
118 |
return \Closure::bind(function () use ($loader) {
|
119 |
-
$loader->prefixLengthsPsr4 =
|
120 |
-
$loader->prefixDirsPsr4 =
|
121 |
-
$loader->prefixesPsr0 =
|
122 |
-
$loader->classMap =
|
123 |
|
124 |
}, null, ClassLoader::class);
|
125 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit9e964c87d3919ece0233348e7bcb6a95
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
|
116 |
public static function getInitializer(ClassLoader $loader)
|
117 |
{
|
118 |
return \Closure::bind(function () use ($loader) {
|
119 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit9e964c87d3919ece0233348e7bcb6a95::$prefixLengthsPsr4;
|
120 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit9e964c87d3919ece0233348e7bcb6a95::$prefixDirsPsr4;
|
121 |
+
$loader->prefixesPsr0 = ComposerStaticInit9e964c87d3919ece0233348e7bcb6a95::$prefixesPsr0;
|
122 |
+
$loader->classMap = ComposerStaticInit9e964c87d3919ece0233348e7bcb6a95::$classMap;
|
123 |
|
124 |
}, null, ClassLoader::class);
|
125 |
}
|
vendor/composer/installed.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
-
'reference' => '
|
10 |
'name' => 'brizy/brizy',
|
11 |
),
|
12 |
'versions' =>
|
@@ -36,7 +36,7 @@
|
|
36 |
'aliases' =>
|
37 |
array (
|
38 |
),
|
39 |
-
'reference' => '
|
40 |
),
|
41 |
'enshrined/svg-sanitize' =>
|
42 |
array (
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
+
'reference' => '10b47cc35e8fd15b496157bb6a21bce07931a764',
|
10 |
'name' => 'brizy/brizy',
|
11 |
),
|
12 |
'versions' =>
|
36 |
'aliases' =>
|
37 |
array (
|
38 |
),
|
39 |
+
'reference' => '10b47cc35e8fd15b496157bb6a21bce07931a764',
|
40 |
),
|
41 |
'enshrined/svg-sanitize' =>
|
42 |
array (
|