Brizy – Page Builder - Version 2.3.24

Version Description

  • 2021-12-13 =
  • Fixed: Included all composer files
Download this release

Release Info

Developer themefusecom
Plugin Icon 128x128 Brizy – Page Builder
Version 2.3.24
Comparing to
See all releases

Code changes from version 2.3.23 to 2.3.24

README.md CHANGED
@@ -3,7 +3,7 @@ Contributors: themefuse<br>
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.8.2<br>
5
  Requires PHP: 5.6.20<br>
6
- Stable tag: 2.3.23<br>
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.3.23 - 2021-12-13
122
  * Fixed: Switching weights on custom uploaded fonts
123
  * Fixed: Select dropdown width on Countdown
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.8.2<br>
5
  Requires PHP: 5.6.20<br>
6
+ Stable tag: 2.3.24<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
118
 
119
  ## Changelog
120
 
121
+ ### 2.3.24 - 2021-12-13
122
+ * Fixed: Included all composer files
123
+
124
  ### 2.3.23 - 2021-12-13
125
  * Fixed: Switching weights on custom uploaded fonts
126
  * Fixed: Select dropdown width on Countdown
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.3.23
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.3.23' );
23
  define( 'BRIZY_MINIMUM_PRO_VERSION', '2.3.0' );
24
  define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '212-wp' );
25
  define( 'BRIZY_SYNC_VERSION', '212' );
5
  * Plugin URI: https://brizy.io/
6
  * Author: Brizy.io
7
  * Author URI: https://brizy.io/
8
+ * Version: 2.3.24
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.3.24' );
23
  define( 'BRIZY_MINIMUM_PRO_VERSION', '2.3.0' );
24
  define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '212-wp' );
25
  define( 'BRIZY_SYNC_VERSION', '212' );
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.8.2
6
  Requires PHP: 5.6.20
7
- Stable tag: 2.3.23
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.3.23 - 2021-12-13 =
137
  * Fixed: Switching weights on custom uploaded fonts
138
  * Fixed: Select dropdown width on Countdown
4
  Requires at least: 4.5
5
  Tested up to: 5.8.2
6
  Requires PHP: 5.6.20
7
+ Stable tag: 2.3.24
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
133
 
134
  == Changelog ==
135
 
136
+ = 2.3.24 - 2021-12-13 =
137
+ * Fixed: Included all composer files
138
+
139
  = 2.3.23 - 2021-12-13 =
140
  * Fixed: Switching weights on custom uploaded fonts
141
  * Fixed: Select dropdown width on Countdown
vendor/autoload.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload.php @generated by Composer
4
+
5
+ require_once __DIR__ . '/composer/autoload_real.php';
6
+
7
+ return ComposerAutoloaderInit9c6d7289fed7a6c39cdb0ecd3e257297::getLoader();
vendor/bagrinsergiu/brizy-merge-page-assets/lib/AssetAggregator.php ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace BrizyMerge;
4
+
5
+
6
+ use BrizyMerge\Assets\Asset;
7
+ use BrizyMerge\Assets\AssetFont;
8
+ use BrizyMerge\Assets\AssetGroup;
9
+ use BrizyMerge\Assets\AssetLib;
10
+
11
+ class AssetAggregator
12
+ {
13
+ const FONT_TYPE_GOOGLE = 'google-font';
14
+ const FONT_TYPE_UPLOADED = 'uploaded-font';
15
+
16
+ /**
17
+ * @var AssetGroup[] $groups ;
18
+ */
19
+ private $groups;
20
+
21
+ /**
22
+ * AssetAggregator constructor.
23
+ *
24
+ * @param $assets
25
+ */
26
+ public function __construct($assets = [])
27
+ {
28
+ $this->groups = $assets;
29
+ }
30
+
31
+ /**
32
+ * @param $group
33
+ */
34
+ public function addAssetGroup(AssetGroup $group)
35
+ {
36
+ $this->groups[] = $group;
37
+ }
38
+
39
+ /**
40
+ * @param AssetGroup[] $groups
41
+ */
42
+ public function setAssetGroups($groups)
43
+ {
44
+ $this->groups[] = $groups;
45
+ }
46
+
47
+
48
+ /**
49
+ * This will return a list of assets ready to be included in page
50
+ *
51
+ * @return Asset[]
52
+ */
53
+ public function getAssetList()
54
+ {
55
+ $assets = $this->getAggregatedAssets($this->groups);
56
+
57
+ list($freeLibMap, $proLibMap) = $this->getLibMaps($this->groups);
58
+
59
+ $assets = $this->normalizeAssets($assets, $freeLibMap, $proLibMap);
60
+
61
+ return $this->sortAssets($assets);
62
+ }
63
+
64
+ private function getLibMaps($groups)
65
+ {
66
+ $pro = null;
67
+ $free = null;
68
+ foreach ($groups as $group) {
69
+ /**
70
+ * @var AssetGroup $group ;
71
+ */
72
+ if ($group->getMain() && $group->getMain()->isPro()) {
73
+ $pro = $group->getLibsMap();
74
+ } else {
75
+ $free = $group->getLibsMap();
76
+ }
77
+
78
+ if ($pro && $free) {
79
+ return [$free, $pro];
80
+ }
81
+ }
82
+
83
+ return [$free, $pro];
84
+ }
85
+
86
+ private function getAggregatedAssets($groups)
87
+ {
88
+ $assets = [];
89
+ $mainAsset = null;
90
+
91
+ foreach ($groups as $group) {
92
+
93
+ /**
94
+ * @var AssetGroup $group ;
95
+ */
96
+ // set main asset and override if there are pro main assets
97
+ if ( ! $mainAsset || $group->getMain()->isPro()) {
98
+ $mainAsset = $group->getMain();
99
+ }
100
+
101
+ foreach ($group->getGeneric() as $asset) {
102
+ $assets[] = $asset;
103
+ }
104
+ foreach ($group->getPageFonts() as $font) {
105
+ $assets[] = $font;
106
+ }
107
+ foreach ($group->getPageStyles() as $style) {
108
+ $assets[] = $style;
109
+ }
110
+
111
+ $selectors = $group->getLibsSelectors();
112
+ $selectorsCount = count($selectors);
113
+
114
+ if ($selectorsCount != 0) {
115
+ $selectedLib = array_reduce(
116
+ $group->getLibsMap(),
117
+ function ($lib, $alib) use ($selectors, $selectorsCount) {
118
+ if ($lib) {
119
+ return $lib;
120
+ }
121
+
122
+ return count(
123
+ array_intersect($alib->getSelectors(), $selectors)
124
+ ) == $selectorsCount ? $alib : null;
125
+ }
126
+ );
127
+
128
+ if ($selectedLib) {
129
+ $assets[] = $selectedLib;
130
+ }
131
+ }
132
+
133
+ $assets = array_filter(
134
+ $assets,
135
+ function ($a) {
136
+ return ! is_null($a);
137
+ }
138
+ );
139
+ }
140
+
141
+ // include main asset
142
+ if ($mainAsset) {
143
+ $assets[] = $mainAsset;
144
+ }
145
+
146
+ return $assets;
147
+ }
148
+
149
+ private function normalizeAssets($assets, $freeLibMap, $proLibMap)
150
+ {
151
+ // remove duplicates
152
+ $duplicateKeys = [];
153
+ $tmp = [];
154
+
155
+ foreach ($assets as $key => $val) {
156
+ if ( ! in_array($val, $tmp)) {
157
+ $tmp[] = $val;
158
+ } else {
159
+ $duplicateKeys[] = $key;
160
+ }
161
+ }
162
+
163
+ foreach ($duplicateKeys as $key) {
164
+ unset($assets[$key]);
165
+ }
166
+
167
+ // find libs and check if cannot be replace with a bigger lib to save requests
168
+ $freeLibsFoundKeys = [];
169
+ $freeLibsSelectorsFound = [];
170
+ $proLibsFoundKeys = [];
171
+ $proLibsSelectorsFound = [];
172
+
173
+ foreach ($assets as $key => $lib) {
174
+ if ($lib instanceof AssetLib && ! $lib->isPro()) {
175
+ $freeLibsFoundKeys[] = $key;
176
+ $freeLibsSelectorsFound = array_merge($freeLibsSelectorsFound, $lib->getSelectors());
177
+ }
178
+
179
+ if ($lib instanceof AssetLib && $lib->isPro()) {
180
+ $proLibsFoundKeys[] = $key;
181
+ $proLibsSelectorsFound = array_merge($proLibsSelectorsFound, $lib->getSelectors());
182
+ }
183
+ }
184
+
185
+ $assets = $this->groupLibs($assets, $freeLibMap, $freeLibsSelectorsFound, $freeLibsFoundKeys);
186
+ $assets = $this->groupLibs($assets, $proLibMap, $proLibsSelectorsFound, $proLibsFoundKeys);
187
+
188
+ $assets = $this->groupGoogleFonts($assets);
189
+ $assets = $this->groupUploadedFonts($assets);
190
+
191
+ return array_values($assets);
192
+ }
193
+
194
+ private function groupLibs($assets, $libMap, $selectorsFound, $foundLibPositions)
195
+ {
196
+ if (count($foundLibPositions) != 0) {
197
+ // try to find a lib containing all found selectors
198
+ $libsSelectorsFound = array_unique($selectorsFound);
199
+ $libsSelectorsFoundCount = count($libsSelectorsFound);
200
+
201
+ foreach ($libMap as $alib) {
202
+ if (count(array_intersect($alib->getSelectors(), $libsSelectorsFound)) == $libsSelectorsFoundCount) {
203
+
204
+ foreach ($foundLibPositions as $key) {
205
+ unset($assets[$key]);
206
+ }
207
+
208
+ $assets[] = $alib;
209
+ break;
210
+ }
211
+ }
212
+ }
213
+
214
+ return $assets;
215
+ }
216
+
217
+ private function groupGoogleFonts($assets)
218
+ {
219
+ return $this->groupFonts(
220
+ $assets,
221
+ self::FONT_TYPE_GOOGLE,
222
+ "/\?family=(.*?)(&|\")/",
223
+ function ($value,$matchTermination) {
224
+ return "?family={$value}{$matchTermination}";
225
+ }
226
+ );
227
+ }
228
+
229
+ private function groupUploadedFonts($assets)
230
+ {
231
+ return $this->groupFonts(
232
+ $assets,
233
+ self::FONT_TYPE_UPLOADED,
234
+ "/-font=(.*?)(&|\"|$)/",
235
+ function ($value,$matchTermination) {
236
+ return "-font={$value}{$matchTermination}";
237
+ }
238
+ );
239
+ }
240
+
241
+ private function groupFonts($assets, $fontType, $extractRegex, $replaceRegex)
242
+ {
243
+ // extract google fonts
244
+ $fonts = [];
245
+ $sampleFont = null;
246
+ $matchTermination = "";
247
+ foreach ($assets as $i => $asset) {
248
+ /**
249
+ * @var AssetFont $asset ;
250
+ */
251
+ if ($asset instanceof AssetFont && $asset->getFontType() === $fontType) {
252
+
253
+ // obtain a font copy
254
+ if ( ! $sampleFont) {
255
+ $sampleFont = $asset;
256
+ }
257
+ $matches = [];
258
+ preg_match($extractRegex, $asset->getContentByType(), $matches);
259
+
260
+ if (isset($matches[1]) ) {
261
+ $fontString = urldecode($matches[1]);
262
+ $fontSets = explode('|', $fontString);
263
+
264
+ foreach ($fontSets as $set) {
265
+ list($family, $weights) = explode(':', $set);
266
+ $weights = explode(',', $weights);
267
+
268
+ if ( ! isset($fonts[$family])) {
269
+ $fonts[$family] = [];
270
+ }
271
+
272
+ $fonts[$family] = array_merge($fonts[$family], $weights);
273
+ }
274
+ }
275
+
276
+ unset($assets[$i]);
277
+
278
+ if(isset($matches[2]))
279
+ {
280
+ $matchTermination = $matches[2];
281
+ }
282
+ }
283
+ }
284
+
285
+ // generate font query value
286
+ if ( ! $sampleFont) {
287
+ return $assets;
288
+ }
289
+
290
+ $f = [];
291
+ foreach ($fonts as $family => $weight) {
292
+ $weight = array_unique($weight);
293
+ $f[] = $family.':'.implode(',', $weight);
294
+ }
295
+ $fontQueryValue = implode('|', $f);
296
+
297
+ $replaceValue = $replaceRegex($fontQueryValue, $matchTermination);
298
+
299
+ $sampleFont->setUrl(
300
+ preg_replace($extractRegex, $replaceValue, $sampleFont->getUrl())
301
+ );
302
+
303
+ $assets[] = $sampleFont;
304
+
305
+ return array_values($assets);
306
+ }
307
+
308
+ private function sortAssets($assets)
309
+ {
310
+ // sort asset list by score
311
+ usort(
312
+ $assets,
313
+ function ($as1, $as2) {
314
+ if ($as1->getScore() === $as2->getScore()) {
315
+ return 0;
316
+ }
317
+
318
+ return ($as1->getScore() < $as2->getScore()) ? -1 : 1;
319
+ }
320
+ );
321
+
322
+ return $assets;
323
+ }
324
+
325
+ }
vendor/bagrinsergiu/brizy-merge-page-assets/lib/Assets/Asset.php ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ namespace BrizyMerge\Assets;
5
+
6
+
7
+ class Asset
8
+ {
9
+ const TYPE_INLINE = 'inline';
10
+ const TYPE_CODE = 'code';
11
+ const TYPE_FILE = 'file';
12
+
13
+ /**
14
+ * @var string
15
+ */
16
+ protected $name;
17
+
18
+ /**
19
+ * @var int
20
+ */
21
+ protected $score;
22
+
23
+ /**
24
+ * @var string
25
+ */
26
+ protected $type;
27
+
28
+ /**
29
+ * @var string
30
+ */
31
+ protected $content;
32
+
33
+ /**
34
+ * @var string
35
+ */
36
+ protected $url;
37
+
38
+ /**
39
+ * @var string[]
40
+ */
41
+ protected $attrs;
42
+
43
+ /**
44
+ * @var bool
45
+ */
46
+ protected $pro;
47
+
48
+ /**
49
+ * @param $data
50
+ */
51
+ static function instanceFromJsonData($data)
52
+ {
53
+ $assetKeys = array_keys($data);
54
+
55
+ $allowedKeys = ['name', 'score', 'content', 'pro'];
56
+ if (count($keyDiff = array_diff($assetKeys, $allowedKeys)) !== 0) {
57
+ throw new \Exception('Invalid Asset fields provided: ' . json_encode($keyDiff));
58
+ }
59
+
60
+ if (count($keyDiff = array_diff($allowedKeys, $assetKeys)) !== 0) {
61
+ throw new \Exception('Missing Asset field: ' . json_encode($keyDiff));
62
+ }
63
+
64
+ return new self(
65
+ $data['name'],
66
+ $data['score'],
67
+ isset($data['content']['content']) ? $data['content']['content'] : null,
68
+ isset($data['content']['url']) ? $data['content']['url'] : null,
69
+ isset($data['content']['type']) ? $data['content']['type'] : null,
70
+ isset($data['content']['attr']) ? $data['content']['attr'] : [],
71
+ $data['pro']
72
+ );
73
+ }
74
+
75
+ /**
76
+ * Asset constructor.
77
+ *
78
+ * @param string $name
79
+ * @param int $score
80
+ * @param string $content
81
+ * @param false $pro
82
+ */
83
+ public function __construct($name = '', $score = 0, $content = null, $url = '', $type = '', $attrs = [], $pro = false)
84
+ {
85
+ $this->name = $name;
86
+ $this->score = (int)$score;
87
+ $this->type = $type;
88
+ $this->content = $content;
89
+ $this->url = $url;
90
+ $this->attrs = $attrs;
91
+ $this->pro = $pro;
92
+ }
93
+
94
+ /**
95
+ * @return string
96
+ */
97
+ public function getName()
98
+ {
99
+ return $this->name;
100
+ }
101
+
102
+ /**
103
+ * @param string $name
104
+ *
105
+ * @return Asset
106
+ */
107
+ public function setName($name)
108
+ {
109
+ $this->name = $name;
110
+
111
+ return $this;
112
+ }
113
+
114
+ /**
115
+ * @return int
116
+ */
117
+ public function getScore()
118
+ {
119
+ return (int)$this->score;
120
+ }
121
+
122
+ /**
123
+ * @param int $score
124
+ *
125
+ * @return Asset
126
+ */
127
+ public function setScore($score)
128
+ {
129
+ $this->score = (int)$score;
130
+
131
+ return $this;
132
+ }
133
+
134
+ /**
135
+ * @return string
136
+ */
137
+ public function getContent()
138
+ {
139
+ return $this->content;
140
+ }
141
+
142
+ /**
143
+ * @param string $content
144
+ *
145
+ * @return Asset
146
+ */
147
+ public function setContent($content)
148
+ {
149
+ $this->content = $content;
150
+
151
+ return $this;
152
+ }
153
+
154
+ /**
155
+ * @return bool
156
+ */
157
+ public function isPro()
158
+ {
159
+ return $this->pro;
160
+ }
161
+
162
+ /**
163
+ * @param bool $pro
164
+ *
165
+ * @return Asset
166
+ */
167
+ public function setPro($pro)
168
+ {
169
+ $this->pro = $pro;
170
+
171
+ return $this;
172
+ }
173
+
174
+ /**
175
+ * @return string
176
+ */
177
+ public function getType()
178
+ {
179
+ return $this->type;
180
+ }
181
+
182
+ /**
183
+ * @param string $type
184
+ * @return Asset
185
+ */
186
+ public function setType($type)
187
+ {
188
+ $this->type = $type;
189
+ return $this;
190
+ }
191
+
192
+ /**
193
+ * @return string
194
+ */
195
+ public function getUrl()
196
+ {
197
+ return $this->url;
198
+ }
199
+
200
+ /**
201
+ * @param string $url
202
+ * @return Asset
203
+ */
204
+ public function setUrl($url)
205
+ {
206
+ $this->url = $url;
207
+ return $this;
208
+ }
209
+
210
+ /**
211
+ * @return string[]
212
+ */
213
+ public function getAttrs()
214
+ {
215
+ return $this->attrs;
216
+ }
217
+
218
+ /**
219
+ * @param string[] $attrs
220
+ * @return Asset
221
+ */
222
+ public function setAttrs($attrs)
223
+ {
224
+ $this->attrs = $attrs;
225
+ return $this;
226
+ }
227
+ }
vendor/bagrinsergiu/brizy-merge-page-assets/lib/Assets/AssetFont.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ namespace BrizyMerge\Assets;
5
+
6
+
7
+ class AssetFont extends Asset
8
+ {
9
+ /**
10
+ * @var string
11
+ */
12
+ protected $fontType;
13
+
14
+ /**
15
+ * @param $data
16
+ */
17
+ static function instanceFromJsonData($data)
18
+ {
19
+ $assetKeys = array_keys($data);
20
+
21
+ $allowedKeys = ['name', 'score', 'content', 'pro', 'type'];
22
+ if (count($keyDiff = array_diff($assetKeys, $allowedKeys)) !== 0) {
23
+ throw new \Exception('Invalid AssetFont fields provided: ' . json_encode($keyDiff));
24
+ }
25
+
26
+ if (count($keyDiff = array_diff($allowedKeys, $assetKeys)) !== 0) {
27
+ throw new \Exception('Missing AssetFont field: ' . json_encode($keyDiff));
28
+ }
29
+
30
+
31
+ return new self($data['name'],
32
+ $data['score'],
33
+ isset($data['content']['content']) ? $data['content']['content'] : '',
34
+ isset($data['content']['url']) ? $data['content']['url'] : '',
35
+ isset($data['content']['type']) ? $data['content']['type'] : '',
36
+ isset($data['content']['attr']) ? $data['content']['attr'] : [],
37
+ $data['pro'],
38
+ $data['type']);
39
+ }
40
+
41
+ /**
42
+ * AssetLib constructor.
43
+ *
44
+ * @param string $name
45
+ * @param int $score
46
+ * @param string $content
47
+ * @param false $pro
48
+ * @param array $selectors
49
+ */
50
+ public function __construct($name = '', $score = 0, $content = '', $url = '', $assetType = '', $attrs = [], $pro = false, $fontType = [])
51
+ {
52
+ parent::__construct($name, $score, $content, $url, $assetType, $attrs, $pro);
53
+
54
+ $this->fontType = $fontType;
55
+ }
56
+
57
+ /**
58
+ * @return string
59
+ */
60
+ public function getFontType()
61
+ {
62
+ return $this->fontType;
63
+ }
64
+
65
+ /**
66
+ * @param string $type
67
+ *
68
+ * @return AssetFont
69
+ */
70
+ public function setFontType($type)
71
+ {
72
+ $this->fontType = $type;
73
+
74
+ return $this;
75
+ }
76
+ /**
77
+ * @return string
78
+ */
79
+ public function getContentByType()
80
+ {
81
+ switch ($this->getType()) {
82
+ case self::TYPE_INLINE:
83
+ case self::TYPE_CODE:
84
+ return $this->getContent();
85
+ case self::TYPE_FILE:
86
+ return $this->getUrl();
87
+ }
88
+ }
89
+ }
vendor/bagrinsergiu/brizy-merge-page-assets/lib/Assets/AssetGroup.php ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ namespace BrizyMerge\Assets;
5
+
6
+
7
+ class AssetGroup
8
+ {
9
+ /**
10
+ * @var Asset
11
+ */
12
+ private $main;
13
+
14
+ /**
15
+ * @var Asset[]
16
+ */
17
+ private $generic;
18
+
19
+ /**
20
+ * @var AssetLib[]
21
+ */
22
+ private $libsMap;
23
+
24
+ /**
25
+ * @var string[]
26
+ */
27
+ private $libsSelectors;
28
+
29
+ /**
30
+ * @var AssetFont[]
31
+ */
32
+ private $pageFonts;
33
+
34
+ /**
35
+ * @var Asset
36
+ */
37
+ private $pageStyles;
38
+
39
+ /**
40
+ * @param $data
41
+ */
42
+ static function instanceFromJsonData($data)
43
+ {
44
+ $assetKeys = array_keys($data);
45
+
46
+ $allowedKeys = ['main', 'generic', 'libsMap', 'libsSelectors'];
47
+ if ($keyDiff = array_diff($assetKeys, $allowedKeys)) {
48
+ if ($keyDiff2 = array_diff(['pageFonts', 'pageStyles'], $keyDiff)) {
49
+ if (count($keyDiff2) != 0) {
50
+ throw new \Exception('Invalid AssetGroup fields provided: '.json_encode($keyDiff2));
51
+ }
52
+ }
53
+ }
54
+
55
+ // create main assets
56
+ $main = Asset::instanceFromJsonData($data['main']);
57
+
58
+ // create generic assets
59
+ $generic = [];
60
+ foreach ($data['generic'] as $entry) {
61
+ $generic[] = Asset::instanceFromJsonData($entry);
62
+ }
63
+
64
+ // create libsMap assets
65
+ $libsMap = [];
66
+ foreach ($data['libsMap'] as $entry) {
67
+ $libsMap[] = AssetLib::instanceFromJsonData($entry);
68
+ }
69
+
70
+ // create libsSelectors assets
71
+ $libsSelectors = [];
72
+ foreach ($data['libsSelectors'] as $entry) {
73
+ $libsSelectors[] = (string)$entry;
74
+ }
75
+
76
+ // create pageFonts assets
77
+ $pageFonts = [];
78
+ if (isset($data['pageFonts'])) {
79
+ foreach ($data['pageFonts'] as $entry) {
80
+ $pageFonts[] = AssetFont::instanceFromJsonData($entry);
81
+ }
82
+ }
83
+
84
+ // create pageStyles assets
85
+ $pageStyles = [];
86
+ if (isset($data['pageStyles'])) {
87
+ foreach ($data['pageStyles'] as $entry) {
88
+ $pageStyles[] = Asset::instanceFromJsonData($entry);
89
+ }
90
+ }
91
+
92
+ return new self($main, $generic, $libsMap, $libsSelectors, $pageFonts, $pageStyles);
93
+ }
94
+
95
+ /**
96
+ * AssetGroup constructor.
97
+ *
98
+ * @param array $main
99
+ * @param array $generic
100
+ * @param array $libsMap
101
+ * @param array $libsSelectors
102
+ * @param array $pageFonts
103
+ * @param array $pageStyles
104
+ */
105
+ public function __construct(
106
+ $main = null,
107
+ $generic = [],
108
+ $libsMap = [],
109
+ $libsSelectors = [],
110
+ $pageFonts = [],
111
+ $pageStyles = []
112
+ ) {
113
+ $this->main = $main;
114
+ $this->generic = $generic;
115
+ $this->libsMap = $libsMap;
116
+ $this->libsSelectors = $libsSelectors;
117
+ $this->pageFonts = $pageFonts;
118
+ $this->pageStyles = $pageStyles;
119
+ }
120
+
121
+ /**
122
+ * @return Asset[]
123
+ */
124
+ public function getMain()
125
+ {
126
+ return $this->main;
127
+ }
128
+
129
+ /**
130
+ * @param Asset[] $main
131
+ *
132
+ * @return AssetGroup
133
+ */
134
+ public function setMain($main)
135
+ {
136
+ $this->main = $main;
137
+
138
+ return $this;
139
+ }
140
+
141
+ /**
142
+ * @return Asset[]
143
+ */
144
+ public function getGeneric()
145
+ {
146
+ return $this->generic;
147
+ }
148
+
149
+ /**
150
+ * @param Asset[] $generic
151
+ *
152
+ * @return AssetGroup
153
+ */
154
+ public function setGeneric($generic)
155
+ {
156
+ $this->generic = $generic;
157
+
158
+ return $this;
159
+ }
160
+
161
+ /**
162
+ * @return AssetLib[]
163
+ */
164
+ public function getLibsMap()
165
+ {
166
+ return $this->libsMap;
167
+ }
168
+
169
+ /**
170
+ * @param AssetLib[] $libsMap
171
+ *
172
+ * @return AssetGroup
173
+ */
174
+ public function setLibsMap($libsMap)
175
+ {
176
+ $this->libsMap = $libsMap;
177
+
178
+ return $this;
179
+ }
180
+
181
+ /**
182
+ * @return string[]
183
+ */
184
+ public function getLibsSelectors()
185
+ {
186
+ return $this->libsSelectors;
187
+ }
188
+
189
+ /**
190
+ * @param string[] $libsSelectors
191
+ *
192
+ * @return AssetGroup
193
+ */
194
+ public function setLibsSelectors($libsSelectors)
195
+ {
196
+ $this->libsSelectors = $libsSelectors;
197
+
198
+ return $this;
199
+ }
200
+
201
+ /**
202
+ * @return AssetFont[]
203
+ */
204
+ public function getPageFonts()
205
+ {
206
+ return $this->pageFonts;
207
+ }
208
+
209
+ /**
210
+ * @param AssetFont[] $pageFonts
211
+ *
212
+ * @return AssetGroup
213
+ */
214
+ public function setPageFonts($pageFonts)
215
+ {
216
+ $this->pageFonts = $pageFonts;
217
+
218
+ return $this;
219
+ }
220
+
221
+ /**
222
+ * @return Asset
223
+ */
224
+ public function getPageStyles()
225
+ {
226
+ return $this->pageStyles;
227
+ }
228
+
229
+ /**
230
+ * @param Asset $pageStyles
231
+ *
232
+ * @return AssetGroup
233
+ */
234
+ public function setPageStyles($pageStyles)
235
+ {
236
+ $this->pageStyles = $pageStyles;
237
+
238
+ return $this;
239
+ }
240
+
241
+
242
+ }
vendor/bagrinsergiu/brizy-merge-page-assets/lib/Assets/AssetLib.php ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ namespace BrizyMerge\Assets;
5
+
6
+
7
+ class AssetLib extends Asset
8
+ {
9
+ /**
10
+ * @var string[]
11
+ */
12
+ protected $selectors;
13
+
14
+ /**
15
+ * @param $data
16
+ */
17
+ static function instanceFromJsonData($data)
18
+ {
19
+ $assetKeys = array_keys($data);
20
+
21
+ $allowedKeys = ['name', 'score', 'content', 'pro', 'selectors'];
22
+ if (count($keyDiff = array_diff($assetKeys, $allowedKeys)) !== 0) {
23
+ throw new \Exception('Invalid AssetLib fields provided: ' . json_encode($keyDiff));
24
+ }
25
+
26
+ if (count($keyDiff = array_diff($allowedKeys, $assetKeys)) !== 0) {
27
+ throw new \Exception('Missing AssetLib field: ' . json_encode($keyDiff));
28
+ }
29
+
30
+ return new self(
31
+ $data['name'],
32
+ $data['score'],
33
+ isset($data['content']['content'])?$data['content']['content']:'',
34
+ isset($data['content']['url'])?$data['content']['url']:'',
35
+ isset($data['content']['type'])?$data['content']['type']:'',
36
+ isset($data['content']['attr'])?$data['content']['attr']:[],
37
+ $data['pro'],
38
+ $data['selectors']);
39
+ }
40
+
41
+ /**
42
+ * AssetLib constructor.
43
+ *
44
+ * @param string $name
45
+ * @param int $score
46
+ * @param string $content
47
+ * @param false $pro
48
+ * @param array $selectors
49
+ */
50
+ public function __construct($name = '', $score = 0, $content = null, $url = '', $type = '', $attrs = [], $pro = false, $selectors = [])
51
+ {
52
+ parent::__construct($name, $score, $content, $url, $type, $attrs, $pro);
53
+
54
+ $this->selectors = $selectors;
55
+ }
56
+
57
+ /**
58
+ * @return string[]
59
+ */
60
+ public function getSelectors()
61
+ {
62
+ return $this->selectors;
63
+ }
64
+
65
+ /**
66
+ * @param string[] $selectors
67
+ *
68
+ * @return AssetLib
69
+ */
70
+ public function setSelectors($selectors)
71
+ {
72
+ $this->selectors = $selectors;
73
+
74
+ return $this;
75
+ }
76
+
77
+
78
+ }
vendor/bagrinsergiu/brizy-merge-page-assets/lib/CompiledPageAssetsInterface.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ namespace BrizyMerge;
5
+
6
+
7
+ interface CompiledPageAssetsInterface
8
+ {
9
+ public function getHeadAssetList();
10
+
11
+ public function getBodyAssetList();
12
+
13
+ public function getHeadAssetAsHtml();
14
+
15
+ public function getBodyAssetAsHtml();
16
+
17
+ }
vendor/composer/ClassLoader.php ADDED
@@ -0,0 +1,477 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of Composer.
5
+ *
6
+ * (c) Nils Adermann <naderman@naderman.de>
7
+ * Jordi Boggiano <j.boggiano@seld.be>
8
+ *
9
+ * For the full copyright and license information, please view the LICENSE
10
+ * file that was distributed with this source code.
11
+ */
12
+
13
+ namespace Composer\Autoload;
14
+
15
+ /**
16
+ * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
17
+ *
18
+ * $loader = new \Composer\Autoload\ClassLoader();
19
+ *
20
+ * // register classes with namespaces
21
+ * $loader->add('Symfony\Component', __DIR__.'/component');
22
+ * $loader->add('Symfony', __DIR__.'/framework');
23
+ *
24
+ * // activate the autoloader
25
+ * $loader->register();
26
+ *
27
+ * // to enable searching the include path (eg. for PEAR packages)
28
+ * $loader->setUseIncludePath(true);
29
+ *
30
+ * In this example, if you try to use a class in the Symfony\Component
31
+ * namespace or one of its children (Symfony\Component\Console for instance),
32
+ * the autoloader will first look for the class under the component/
33
+ * directory, and it will then fallback to the framework/ directory if not
34
+ * found before giving up.
35
+ *
36
+ * This class is loosely based on the Symfony UniversalClassLoader.
37
+ *
38
+ * @author Fabien Potencier <fabien@symfony.com>
39
+ * @author Jordi Boggiano <j.boggiano@seld.be>
40
+ * @see https://www.php-fig.org/psr/psr-0/
41
+ * @see https://www.php-fig.org/psr/psr-4/
42
+ */
43
+ class ClassLoader
44
+ {
45
+ private $vendorDir;
46
+
47
+ // PSR-4
48
+ private $prefixLengthsPsr4 = array();
49
+ private $prefixDirsPsr4 = array();
50
+ private $fallbackDirsPsr4 = array();
51
+
52
+ // PSR-0
53
+ private $prefixesPsr0 = array();
54
+ private $fallbackDirsPsr0 = array();
55
+
56
+ private $useIncludePath = false;
57
+ private $classMap = array();
58
+ private $classMapAuthoritative = false;
59
+ private $missingClasses = array();
60
+ private $apcuPrefix;
61
+
62
+ private static $registeredLoaders = array();
63
+
64
+ public function __construct($vendorDir = null)
65
+ {
66
+ $this->vendorDir = $vendorDir;
67
+ }
68
+
69
+ public function getPrefixes()
70
+ {
71
+ if (!empty($this->prefixesPsr0)) {
72
+ return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
73
+ }
74
+
75
+ return array();
76
+ }
77
+
78
+ public function getPrefixesPsr4()
79
+ {
80
+ return $this->prefixDirsPsr4;
81
+ }
82
+
83
+ public function getFallbackDirs()
84
+ {
85
+ return $this->fallbackDirsPsr0;
86
+ }
87
+
88
+ public function getFallbackDirsPsr4()
89
+ {
90
+ return $this->fallbackDirsPsr4;
91
+ }
92
+
93
+ public function getClassMap()
94
+ {
95
+ return $this->classMap;
96
+ }
97
+
98
+ /**
99
+ * @param array $classMap Class to filename map
100
+ */
101
+ public function addClassMap(array $classMap)
102
+ {
103
+ if ($this->classMap) {
104
+ $this->classMap = array_merge($this->classMap, $classMap);
105
+ } else {
106
+ $this->classMap = $classMap;
107
+ }
108
+ }
109
+
110
+ /**
111
+ * Registers a set of PSR-0 directories for a given prefix, either
112
+ * appending or prepending to the ones previously set for this prefix.
113
+ *
114
+ * @param string $prefix The prefix
115
+ * @param array|string $paths The PSR-0 root directories
116
+ * @param bool $prepend Whether to prepend the directories
117
+ */
118
+ public function add($prefix, $paths, $prepend = false)
119
+ {
120
+ if (!$prefix) {
121
+ if ($prepend) {
122
+ $this->fallbackDirsPsr0 = array_merge(
123
+ (array) $paths,
124
+ $this->fallbackDirsPsr0
125
+ );
126
+ } else {
127
+ $this->fallbackDirsPsr0 = array_merge(
128
+ $this->fallbackDirsPsr0,
129
+ (array) $paths
130
+ );
131
+ }
132
+
133
+ return;
134
+ }
135
+
136
+ $first = $prefix[0];
137
+ if (!isset($this->prefixesPsr0[$first][$prefix])) {
138
+ $this->prefixesPsr0[$first][$prefix] = (array) $paths;
139
+
140
+ return;
141
+ }
142
+ if ($prepend) {
143
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
144
+ (array) $paths,
145
+ $this->prefixesPsr0[$first][$prefix]
146
+ );
147
+ } else {
148
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
149
+ $this->prefixesPsr0[$first][$prefix],
150
+ (array) $paths
151
+ );
152
+ }
153
+ }
154
+
155
+ /**
156
+ * Registers a set of PSR-4 directories for a given namespace, either
157
+ * appending or prepending to the ones previously set for this namespace.
158
+ *
159
+ * @param string $prefix The prefix/namespace, with trailing '\\'
160
+ * @param array|string $paths The PSR-4 base directories
161
+ * @param bool $prepend Whether to prepend the directories
162
+ *
163
+ * @throws \InvalidArgumentException
164
+ */
165
+ public function addPsr4($prefix, $paths, $prepend = false)
166
+ {
167
+ if (!$prefix) {
168
+ // Register directories for the root namespace.
169
+ if ($prepend) {
170
+ $this->fallbackDirsPsr4 = array_merge(
171
+ (array) $paths,
172
+ $this->fallbackDirsPsr4
173
+ );
174
+ } else {
175
+ $this->fallbackDirsPsr4 = array_merge(
176
+ $this->fallbackDirsPsr4,
177
+ (array) $paths
178
+ );
179
+ }
180
+ } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
181
+ // Register directories for a new namespace.
182
+ $length = strlen($prefix);
183
+ if ('\\' !== $prefix[$length - 1]) {
184
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
185
+ }
186
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
187
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
188
+ } elseif ($prepend) {
189
+ // Prepend directories for an already registered namespace.
190
+ $this->prefixDirsPsr4[$prefix] = array_merge(
191
+ (array) $paths,
192
+ $this->prefixDirsPsr4[$prefix]
193
+ );
194
+ } else {
195
+ // Append directories for an already registered namespace.
196
+ $this->prefixDirsPsr4[$prefix] = array_merge(
197
+ $this->prefixDirsPsr4[$prefix],
198
+ (array) $paths
199
+ );
200
+ }
201
+ }
202
+
203
+ /**
204
+ * Registers a set of PSR-0 directories for a given prefix,
205
+ * replacing any others previously set for this prefix.
206
+ *
207
+ * @param string $prefix The prefix
208
+ * @param array|string $paths The PSR-0 base directories
209
+ */
210
+ public function set($prefix, $paths)
211
+ {
212
+ if (!$prefix) {
213
+ $this->fallbackDirsPsr0 = (array) $paths;
214
+ } else {
215
+ $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
216
+ }
217
+ }
218
+
219
+ /**
220
+ * Registers a set of PSR-4 directories for a given namespace,
221
+ * replacing any others previously set for this namespace.
222
+ *
223
+ * @param string $prefix The prefix/namespace, with trailing '\\'
224
+ * @param array|string $paths The PSR-4 base directories
225
+ *
226
+ * @throws \InvalidArgumentException
227
+ */
228
+ public function setPsr4($prefix, $paths)
229
+ {
230
+ if (!$prefix) {
231
+ $this->fallbackDirsPsr4 = (array) $paths;
232
+ } else {
233
+ $length = strlen($prefix);
234
+ if ('\\' !== $prefix[$length - 1]) {
235
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
236
+ }
237
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
238
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
239
+ }
240
+ }
241
+
242
+ /**
243
+ * Turns on searching the include path for class files.
244
+ *
245
+ * @param bool $useIncludePath
246
+ */
247
+ public function setUseIncludePath($useIncludePath)
248
+ {
249
+ $this->useIncludePath = $useIncludePath;
250
+ }
251
+
252
+ /**
253
+ * Can be used to check if the autoloader uses the include path to check
254
+ * for classes.
255
+ *
256
+ * @return bool
257
+ */
258
+ public function getUseIncludePath()
259
+ {
260
+ return $this->useIncludePath;
261
+ }
262
+
263
+ /**
264
+ * Turns off searching the prefix and fallback directories for classes
265
+ * that have not been registered with the class map.
266
+ *
267
+ * @param bool $classMapAuthoritative
268
+ */
269
+ public function setClassMapAuthoritative($classMapAuthoritative)
270
+ {
271
+ $this->classMapAuthoritative = $classMapAuthoritative;
272
+ }
273
+
274
+ /**
275
+ * Should class lookup fail if not found in the current class map?
276
+ *
277
+ * @return bool
278
+ */
279
+ public function isClassMapAuthoritative()
280
+ {
281
+ return $this->classMapAuthoritative;
282
+ }
283
+
284
+ /**
285
+ * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
286
+ *
287
+ * @param string|null $apcuPrefix
288
+ */
289
+ public function setApcuPrefix($apcuPrefix)
290
+ {
291
+ $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
292
+ }
293
+
294
+ /**
295
+ * The APCu prefix in use, or null if APCu caching is not enabled.
296
+ *
297
+ * @return string|null
298
+ */
299
+ public function getApcuPrefix()
300
+ {
301
+ return $this->apcuPrefix;
302
+ }
303
+
304
+ /**
305
+ * Registers this instance as an autoloader.
306
+ *
307
+ * @param bool $prepend Whether to prepend the autoloader or not
308
+ */
309
+ public function register($prepend = false)
310
+ {
311
+ spl_autoload_register(array($this, 'loadClass'), true, $prepend);
312
+
313
+ if (null === $this->vendorDir) {
314
+ //no-op
315
+ } elseif ($prepend) {
316
+ self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
317
+ } else {
318
+ unset(self::$registeredLoaders[$this->vendorDir]);
319
+ self::$registeredLoaders[$this->vendorDir] = $this;
320
+ }
321
+ }
322
+
323
+ /**
324
+ * Unregisters this instance as an autoloader.
325
+ */
326
+ public function unregister()
327
+ {
328
+ spl_autoload_unregister(array($this, 'loadClass'));
329
+
330
+ if (null !== $this->vendorDir) {
331
+ unset(self::$registeredLoaders[$this->vendorDir]);
332
+ }
333
+ }
334
+
335
+ /**
336
+ * Loads the given class or interface.
337
+ *
338
+ * @param string $class The name of the class
339
+ * @return bool|null True if loaded, null otherwise
340
+ */
341
+ public function loadClass($class)
342
+ {
343
+ if ($file = $this->findFile($class)) {
344
+ includeFile($file);
345
+
346
+ return true;
347
+ }
348
+ }
349
+
350
+ /**
351
+ * Finds the path to the file where the class is defined.
352
+ *
353
+ * @param string $class The name of the class
354
+ *
355
+ * @return string|false The path if found, false otherwise
356
+ */
357
+ public function findFile($class)
358
+ {
359
+ // class map lookup
360
+ if (isset($this->classMap[$class])) {
361
+ return $this->classMap[$class];
362
+ }
363
+ if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
364
+ return false;
365
+ }
366
+ if (null !== $this->apcuPrefix) {
367
+ $file = apcu_fetch($this->apcuPrefix.$class, $hit);
368
+ if ($hit) {
369
+ return $file;
370
+ }
371
+ }
372
+
373
+ $file = $this->findFileWithExtension($class, '.php');
374
+
375
+ // Search for Hack files if we are running on HHVM
376
+ if (false === $file && defined('HHVM_VERSION')) {
377
+ $file = $this->findFileWithExtension($class, '.hh');
378
+ }
379
+
380
+ if (null !== $this->apcuPrefix) {
381
+ apcu_add($this->apcuPrefix.$class, $file);
382
+ }
383
+
384
+ if (false === $file) {
385
+ // Remember that this class does not exist.
386
+ $this->missingClasses[$class] = true;
387
+ }
388
+
389
+ return $file;
390
+ }
391
+
392
+ /**
393
+ * Returns the currently registered loaders indexed by their corresponding vendor directories.
394
+ *
395
+ * @return self[]
396
+ */
397
+ public static function getRegisteredLoaders()
398
+ {
399
+ return self::$registeredLoaders;
400
+ }
401
+
402
+ private function findFileWithExtension($class, $ext)
403
+ {
404
+ // PSR-4 lookup
405
+ $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
406
+
407
+ $first = $class[0];
408
+ if (isset($this->prefixLengthsPsr4[$first])) {
409
+ $subPath = $class;
410
+ while (false !== $lastPos = strrpos($subPath, '\\')) {
411
+ $subPath = substr($subPath, 0, $lastPos);
412
+ $search = $subPath . '\\';
413
+ if (isset($this->prefixDirsPsr4[$search])) {
414
+ $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
415
+ foreach ($this->prefixDirsPsr4[$search] as $dir) {
416
+ if (file_exists($file = $dir . $pathEnd)) {
417
+ return $file;
418
+ }
419
+ }
420
+ }
421
+ }
422
+ }
423
+
424
+ // PSR-4 fallback dirs
425
+ foreach ($this->fallbackDirsPsr4 as $dir) {
426
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
427
+ return $file;
428
+ }
429
+ }
430
+
431
+ // PSR-0 lookup
432
+ if (false !== $pos = strrpos($class, '\\')) {
433
+ // namespaced class name
434
+ $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
435
+ . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
436
+ } else {
437
+ // PEAR-like class name
438
+ $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
439
+ }
440
+
441
+ if (isset($this->prefixesPsr0[$first])) {
442
+ foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
443
+ if (0 === strpos($class, $prefix)) {
444
+ foreach ($dirs as $dir) {
445
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
446
+ return $file;
447
+ }
448
+ }
449
+ }
450
+ }
451
+ }
452
+
453
+ // PSR-0 fallback dirs
454
+ foreach ($this->fallbackDirsPsr0 as $dir) {
455
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
456
+ return $file;
457
+ }
458
+ }
459
+
460
+ // PSR-0 include paths.
461
+ if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
462
+ return $file;
463
+ }
464
+
465
+ return false;
466
+ }
467
+ }
468
+
469
+ /**
470
+ * Scope isolated include.
471
+ *
472
+ * Prevents access to $this/self from included files.
473
+ */
474
+ function includeFile($file)
475
+ {
476
+ include $file;
477
+ }
vendor/composer/InstalledVersions.php CHANGED
@@ -30,17 +30,20 @@ private static $installed = array (
30
  'aliases' =>
31
  array (
32
  ),
33
- 'reference' => '71cd0debdf5743ab0a4181c900d6528fc8581100',
34
  'name' => 'brizy/brizy',
35
  ),
36
  'versions' =>
37
  array (
38
  'bagrinsergiu/brizy-merge-page-assets' =>
39
  array (
 
 
40
  'aliases' =>
41
  array (
42
  0 => '9999999-dev',
43
  ),
 
44
  ),
45
  'bagrinsergiu/brizy-migration-utils' =>
46
  array (
@@ -67,7 +70,7 @@ private static $installed = array (
67
  'aliases' =>
68
  array (
69
  ),
70
- 'reference' => '71cd0debdf5743ab0a4181c900d6528fc8581100',
71
  ),
72
  'enshrined/svg-sanitize' =>
73
  array (
30
  'aliases' =>
31
  array (
32
  ),
33
+ 'reference' => 'a06840d7847709574978087cceb4894e30ad16ca',
34
  'name' => 'brizy/brizy',
35
  ),
36
  'versions' =>
37
  array (
38
  'bagrinsergiu/brizy-merge-page-assets' =>
39
  array (
40
+ 'pretty_version' => 'dev-master',
41
+ 'version' => 'dev-master',
42
  'aliases' =>
43
  array (
44
  0 => '9999999-dev',
45
  ),
46
+ 'reference' => '883490c9302aa2da9ccfd71b74c4e216ce1cd6f2',
47
  ),
48
  'bagrinsergiu/brizy-migration-utils' =>
49
  array (
70
  'aliases' =>
71
  array (
72
  ),
73
+ 'reference' => 'a06840d7847709574978087cceb4894e30ad16ca',
74
  ),
75
  'enshrined/svg-sanitize' =>
76
  array (
vendor/composer/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Copyright (c) Nils Adermann, Jordi Boggiano
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is furnished
9
+ to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ THE SOFTWARE.
21
+
vendor/composer/autoload_classmap.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_classmap.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
10
+ 'pQuery' => $vendorDir . '/tburry/pquery/pQuery.php',
11
+ 'pQuery\\AspEmbeddedNode' => $vendorDir . '/tburry/pquery/gan_node_html.php',
12
+ 'pQuery\\CSSQueryTokenizer' => $vendorDir . '/tburry/pquery/gan_selector_html.php',
13
+ 'pQuery\\CdataNode' => $vendorDir . '/tburry/pquery/gan_node_html.php',
14
+ 'pQuery\\CommentNode' => $vendorDir . '/tburry/pquery/gan_node_html.php',
15
+ 'pQuery\\ConditionalTagNode' => $vendorDir . '/tburry/pquery/gan_node_html.php',
16
+ 'pQuery\\DoctypeNode' => $vendorDir . '/tburry/pquery/gan_node_html.php',
17
+ 'pQuery\\DomNode' => $vendorDir . '/tburry/pquery/gan_node_html.php',
18
+ 'pQuery\\EmbeddedNode' => $vendorDir . '/tburry/pquery/gan_node_html.php',
19
+ 'pQuery\\Html5Parser' => $vendorDir . '/tburry/pquery/gan_parser_html.php',
20
+ 'pQuery\\HtmlFormatter' => $vendorDir . '/tburry/pquery/gan_formatter.php',
21
+ 'pQuery\\HtmlParser' => $vendorDir . '/tburry/pquery/gan_parser_html.php',
22
+ 'pQuery\\HtmlParserBase' => $vendorDir . '/tburry/pquery/gan_parser_html.php',
23
+ 'pQuery\\HtmlSelector' => $vendorDir . '/tburry/pquery/gan_selector_html.php',
24
+ 'pQuery\\IQuery' => $vendorDir . '/tburry/pquery/IQuery.php',
25
+ 'pQuery\\TextNode' => $vendorDir . '/tburry/pquery/gan_node_html.php',
26
+ 'pQuery\\TokenizerBase' => $vendorDir . '/tburry/pquery/gan_tokenizer.php',
27
+ 'pQuery\\XML2ArrayParser' => $vendorDir . '/tburry/pquery/gan_xml2array.php',
28
+ 'pQuery\\XmlNode' => $vendorDir . '/tburry/pquery/gan_node_html.php',
29
+ );
vendor/composer/autoload_files.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_files.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php',
10
+ '320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
11
+ '8ec4222c68e580a23520eef4abe4380f' => $vendorDir . '/shortpixel/shortpixel-php/lib/ShortPixel.php',
12
+ 'c93afce03290e70ec0d051b69a50edb0' => $vendorDir . '/shortpixel/shortpixel-php/lib/ShortPixel/Exception.php',
13
+ );
vendor/composer/autoload_namespaces.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_namespaces.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ 'Twig_' => array($vendorDir . '/twig/twig/lib'),
10
+ 'Gaufrette' => array($vendorDir . '/knplabs/gaufrette/src'),
11
+ 'Brizy' => array($vendorDir . '/bagrinsergiu/brizy-migration-utils/src'),
12
+ );
vendor/composer/autoload_psr4.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_psr4.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ 'enshrined\\svgSanitize\\' => array($vendorDir . '/enshrined/svg-sanitize/src'),
10
+ 'Twig\\' => array($vendorDir . '/twig/twig/src'),
11
+ 'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
12
+ 'Symfony\\Component\\Dotenv\\' => array($vendorDir . '/symfony/dotenv'),
13
+ 'ShortPixel\\' => array($vendorDir . '/shortpixel/shortpixel-php/lib/ShortPixel'),
14
+ 'BrizyPlaceholders\\' => array($vendorDir . '/bagrinsergiu/content-placeholder/lib'),
15
+ 'BrizyPlaceholdersTests\\' => array($vendorDir . '/bagrinsergiu/content-placeholder/tests'),
16
+ 'BrizyMerge\\' => array($vendorDir . '/bagrinsergiu/brizy-merge-page-assets/lib'),
17
+ 'BrizyMergeTests\\' => array($vendorDir . '/bagrinsergiu/brizy-merge-page-assets/tests'),
18
+ );
vendor/composer/autoload_real.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_real.php @generated by Composer
4
+
5
+ class ComposerAutoloaderInit9c6d7289fed7a6c39cdb0ecd3e257297
6
+ {
7
+ private static $loader;
8
+
9
+ public static function loadClassLoader($class)
10
+ {
11
+ if ('Composer\Autoload\ClassLoader' === $class) {
12
+ require __DIR__ . '/ClassLoader.php';
13
+ }
14
+ }
15
+
16
+ /**
17
+ * @return \Composer\Autoload\ClassLoader
18
+ */
19
+ public static function getLoader()
20
+ {
21
+ if (null !== self::$loader) {
22
+ return self::$loader;
23
+ }
24
+
25
+ spl_autoload_register(array('ComposerAutoloaderInit9c6d7289fed7a6c39cdb0ecd3e257297', 'loadClassLoader'), true, true);
26
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit9c6d7289fed7a6c39cdb0ecd3e257297', '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\ComposerStaticInit9c6d7289fed7a6c39cdb0ecd3e257297::getInitializer($loader));
34
+ } else {
35
+ $map = require __DIR__ . '/autoload_namespaces.php';
36
+ foreach ($map as $namespace => $path) {
37
+ $loader->set($namespace, $path);
38
+ }
39
+
40
+ $map = require __DIR__ . '/autoload_psr4.php';
41
+ foreach ($map as $namespace => $path) {
42
+ $loader->setPsr4($namespace, $path);
43
+ }
44
+
45
+ $classMap = require __DIR__ . '/autoload_classmap.php';
46
+ if ($classMap) {
47
+ $loader->addClassMap($classMap);
48
+ }
49
+ }
50
+
51
+ $loader->register(true);
52
+
53
+ if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInit9c6d7289fed7a6c39cdb0ecd3e257297::$files;
55
+ } else {
56
+ $includeFiles = require __DIR__ . '/autoload_files.php';
57
+ }
58
+ foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire9c6d7289fed7a6c39cdb0ecd3e257297($fileIdentifier, $file);
60
+ }
61
+
62
+ return $loader;
63
+ }
64
+ }
65
+
66
+ function composerRequire9c6d7289fed7a6c39cdb0ecd3e257297($fileIdentifier, $file)
67
+ {
68
+ if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
+ require $file;
70
+
71
+ $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
72
+ }
73
+ }
vendor/composer/autoload_static.php ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_static.php @generated by Composer
4
+
5
+ namespace Composer\Autoload;
6
+
7
+ class ComposerStaticInit9c6d7289fed7a6c39cdb0ecd3e257297
8
+ {
9
+ public static $files = array (
10
+ '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
11
+ '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
12
+ '8ec4222c68e580a23520eef4abe4380f' => __DIR__ . '/..' . '/shortpixel/shortpixel-php/lib/ShortPixel.php',
13
+ 'c93afce03290e70ec0d051b69a50edb0' => __DIR__ . '/..' . '/shortpixel/shortpixel-php/lib/ShortPixel/Exception.php',
14
+ );
15
+
16
+ public static $prefixLengthsPsr4 = array (
17
+ 'e' =>
18
+ array (
19
+ 'enshrined\\svgSanitize\\' => 22,
20
+ ),
21
+ 'T' =>
22
+ array (
23
+ 'Twig\\' => 5,
24
+ ),
25
+ 'S' =>
26
+ array (
27
+ 'Symfony\\Polyfill\\Ctype\\' => 23,
28
+ 'Symfony\\Component\\Dotenv\\' => 25,
29
+ 'ShortPixel\\' => 11,
30
+ ),
31
+ 'B' =>
32
+ array (
33
+ 'BrizyPlaceholders\\' => 18,
34
+ 'BrizyPlaceholdersTests\\' => 23,
35
+ 'BrizyMerge\\' => 11,
36
+ 'BrizyMergeTests\\' => 16,
37
+ ),
38
+ );
39
+
40
+ public static $prefixDirsPsr4 = array (
41
+ 'enshrined\\svgSanitize\\' =>
42
+ array (
43
+ 0 => __DIR__ . '/..' . '/enshrined/svg-sanitize/src',
44
+ ),
45
+ 'Twig\\' =>
46
+ array (
47
+ 0 => __DIR__ . '/..' . '/twig/twig/src',
48
+ ),
49
+ 'Symfony\\Polyfill\\Ctype\\' =>
50
+ array (
51
+ 0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
52
+ ),
53
+ 'Symfony\\Component\\Dotenv\\' =>
54
+ array (
55
+ 0 => __DIR__ . '/..' . '/symfony/dotenv',
56
+ ),
57
+ 'ShortPixel\\' =>
58
+ array (
59
+ 0 => __DIR__ . '/..' . '/shortpixel/shortpixel-php/lib/ShortPixel',
60
+ ),
61
+ 'BrizyPlaceholders\\' =>
62
+ array (
63
+ 0 => __DIR__ . '/..' . '/bagrinsergiu/content-placeholder/lib',
64
+ ),
65
+ 'BrizyPlaceholdersTests\\' =>
66
+ array (
67
+ 0 => __DIR__ . '/..' . '/bagrinsergiu/content-placeholder/tests',
68
+ ),
69
+ 'BrizyMerge\\' =>
70
+ array (
71
+ 0 => __DIR__ . '/..' . '/bagrinsergiu/brizy-merge-page-assets/lib',
72
+ ),
73
+ 'BrizyMergeTests\\' =>
74
+ array (
75
+ 0 => __DIR__ . '/..' . '/bagrinsergiu/brizy-merge-page-assets/tests',
76
+ ),
77
+ );
78
+
79
+ public static $prefixesPsr0 = array (
80
+ 'T' =>
81
+ array (
82
+ 'Twig_' =>
83
+ array (
84
+ 0 => __DIR__ . '/..' . '/twig/twig/lib',
85
+ ),
86
+ ),
87
+ 'G' =>
88
+ array (
89
+ 'Gaufrette' =>
90
+ array (
91
+ 0 => __DIR__ . '/..' . '/knplabs/gaufrette/src',
92
+ ),
93
+ ),
94
+ 'B' =>
95
+ array (
96
+ 'Brizy' =>
97
+ array (
98
+ 0 => __DIR__ . '/..' . '/bagrinsergiu/brizy-migration-utils/src',
99
+ ),
100
+ ),
101
+ );
102
+
103
+ public static $classMap = array (
104
+ 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
105
+ 'pQuery' => __DIR__ . '/..' . '/tburry/pquery/pQuery.php',
106
+ 'pQuery\\AspEmbeddedNode' => __DIR__ . '/..' . '/tburry/pquery/gan_node_html.php',
107
+ 'pQuery\\CSSQueryTokenizer' => __DIR__ . '/..' . '/tburry/pquery/gan_selector_html.php',
108
+ 'pQuery\\CdataNode' => __DIR__ . '/..' . '/tburry/pquery/gan_node_html.php',
109
+ 'pQuery\\CommentNode' => __DIR__ . '/..' . '/tburry/pquery/gan_node_html.php',
110
+ 'pQuery\\ConditionalTagNode' => __DIR__ . '/..' . '/tburry/pquery/gan_node_html.php',
111
+ 'pQuery\\DoctypeNode' => __DIR__ . '/..' . '/tburry/pquery/gan_node_html.php',
112
+ 'pQuery\\DomNode' => __DIR__ . '/..' . '/tburry/pquery/gan_node_html.php',
113
+ 'pQuery\\EmbeddedNode' => __DIR__ . '/..' . '/tburry/pquery/gan_node_html.php',
114
+ 'pQuery\\Html5Parser' => __DIR__ . '/..' . '/tburry/pquery/gan_parser_html.php',
115
+ 'pQuery\\HtmlFormatter' => __DIR__ . '/..' . '/tburry/pquery/gan_formatter.php',
116
+ 'pQuery\\HtmlParser' => __DIR__ . '/..' . '/tburry/pquery/gan_parser_html.php',
117
+ 'pQuery\\HtmlParserBase' => __DIR__ . '/..' . '/tburry/pquery/gan_parser_html.php',
118
+ 'pQuery\\HtmlSelector' => __DIR__ . '/..' . '/tburry/pquery/gan_selector_html.php',
119
+ 'pQuery\\IQuery' => __DIR__ . '/..' . '/tburry/pquery/IQuery.php',
120
+ 'pQuery\\TextNode' => __DIR__ . '/..' . '/tburry/pquery/gan_node_html.php',
121
+ 'pQuery\\TokenizerBase' => __DIR__ . '/..' . '/tburry/pquery/gan_tokenizer.php',
122
+ 'pQuery\\XML2ArrayParser' => __DIR__ . '/..' . '/tburry/pquery/gan_xml2array.php',
123
+ 'pQuery\\XmlNode' => __DIR__ . '/..' . '/tburry/pquery/gan_node_html.php',
124
+ );
125
+
126
+ public static function getInitializer(ClassLoader $loader)
127
+ {
128
+ return \Closure::bind(function () use ($loader) {
129
+ $loader->prefixLengthsPsr4 = ComposerStaticInit9c6d7289fed7a6c39cdb0ecd3e257297::$prefixLengthsPsr4;
130
+ $loader->prefixDirsPsr4 = ComposerStaticInit9c6d7289fed7a6c39cdb0ecd3e257297::$prefixDirsPsr4;
131
+ $loader->prefixesPsr0 = ComposerStaticInit9c6d7289fed7a6c39cdb0ecd3e257297::$prefixesPsr0;
132
+ $loader->classMap = ComposerStaticInit9c6d7289fed7a6c39cdb0ecd3e257297::$classMap;
133
+
134
+ }, null, ClassLoader::class);
135
+ }
136
+ }
vendor/composer/installed.php CHANGED
@@ -6,17 +6,20 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '71cd0debdf5743ab0a4181c900d6528fc8581100',
10
  'name' => 'brizy/brizy',
11
  ),
12
  'versions' =>
13
  array (
14
  'bagrinsergiu/brizy-merge-page-assets' =>
15
  array (
 
 
16
  'aliases' =>
17
  array (
18
  0 => '9999999-dev',
19
  ),
 
20
  ),
21
  'bagrinsergiu/brizy-migration-utils' =>
22
  array (
@@ -43,7 +46,7 @@
43
  'aliases' =>
44
  array (
45
  ),
46
- 'reference' => '71cd0debdf5743ab0a4181c900d6528fc8581100',
47
  ),
48
  'enshrined/svg-sanitize' =>
49
  array (
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => 'a06840d7847709574978087cceb4894e30ad16ca',
10
  'name' => 'brizy/brizy',
11
  ),
12
  'versions' =>
13
  array (
14
  'bagrinsergiu/brizy-merge-page-assets' =>
15
  array (
16
+ 'pretty_version' => 'dev-master',
17
+ 'version' => 'dev-master',
18
  'aliases' =>
19
  array (
20
  0 => '9999999-dev',
21
  ),
22
+ 'reference' => '883490c9302aa2da9ccfd71b74c4e216ce1cd6f2',
23
  ),
24
  'bagrinsergiu/brizy-migration-utils' =>
25
  array (
46
  'aliases' =>
47
  array (
48
  ),
49
+ 'reference' => 'a06840d7847709574978087cceb4894e30ad16ca',
50
  ),
51
  'enshrined/svg-sanitize' =>
52
  array (