updated plugin W3 Total Cache
version 2.3.3
This commit is contained in:
27
wp-content/plugins/w3-total-cache/vendor/guzzlehttp/guzzle/build/packager.php
vendored
Normal file
27
wp-content/plugins/w3-total-cache/vendor/guzzlehttp/guzzle/build/packager.php
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
require __DIR__ . '/Burgomaster.php';
|
||||
|
||||
$stageDirectory = __DIR__ . '/artifacts/staging';
|
||||
$projectRoot = __DIR__ . '/../';
|
||||
$packager = new \Burgomaster($stageDirectory, $projectRoot);
|
||||
|
||||
// Copy basic files to the stage directory. Note that we have chdir'd onto
|
||||
// the $projectRoot directory, so use relative paths.
|
||||
foreach (['README.md', 'LICENSE'] as $file) {
|
||||
$packager->deepCopy($file, $file);
|
||||
}
|
||||
|
||||
// Copy each dependency to the staging directory. Copy *.php and *.pem files.
|
||||
$packager->recursiveCopy('src', 'GuzzleHttp', ['php']);
|
||||
$packager->recursiveCopy('vendor/guzzlehttp/promises/src', 'GuzzleHttp/Promise');
|
||||
$packager->recursiveCopy('vendor/guzzlehttp/psr7/src', 'GuzzleHttp/Psr7');
|
||||
$packager->recursiveCopy('vendor/psr/http-message/src', 'Psr/Http/Message');
|
||||
|
||||
$packager->createAutoloader([
|
||||
'GuzzleHttp/functions_include.php',
|
||||
'GuzzleHttp/Psr7/functions_include.php',
|
||||
'GuzzleHttp/Promise/functions_include.php',
|
||||
]);
|
||||
|
||||
$packager->createPhar(__DIR__ . '/artifacts/guzzle.phar');
|
||||
$packager->createZip(__DIR__ . '/artifacts/guzzle.zip');
|
Reference in New Issue
Block a user