From ccfa29a86d7deb5b001c3de1ad321e524176f0be Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Fri, 7 Feb 2020 10:57:00 -0800 Subject: [PATCH] Adding /vendor directory to release --- vendor/autoload.php | 7 + vendor/autoload_packages.php | 125 +++ .../automattic/jetpack-autoloader/README.md | 44 + .../jetpack-autoloader/composer.json | 28 + .../src/AutoloadGenerator.php | 286 ++++++ .../src/CustomAutoloaderPlugin.php | 90 ++ .../jetpack-autoloader/src/autoload.php | 102 ++ vendor/composer/ClassLoader.php | 445 +++++++++ vendor/composer/LICENSE | 21 + vendor/composer/autoload_classmap.php | 9 + vendor/composer/autoload_classmap_package.php | 930 ++++++++++++++++++ vendor/composer/autoload_namespaces.php | 9 + vendor/composer/autoload_psr4.php | 12 + vendor/composer/autoload_real.php | 52 + vendor/composer/autoload_static.php | 44 + vendor/composer/installed.json | 164 +++ vendor/composer/installers/LICENSE | 19 + vendor/composer/installers/composer.json | 107 ++ .../src/Composer/Installers/AglInstaller.php | 21 + .../Composer/Installers/AimeosInstaller.php | 9 + .../Installers/AnnotateCmsInstaller.php | 11 + .../Composer/Installers/AsgardInstaller.php | 49 + .../Composer/Installers/AttogramInstaller.php | 9 + .../src/Composer/Installers/BaseInstaller.php | 136 +++ .../Composer/Installers/BitrixInstaller.php | 126 +++ .../Composer/Installers/BonefishInstaller.php | 9 + .../Composer/Installers/CakePHPInstaller.php | 82 ++ .../src/Composer/Installers/ChefInstaller.php | 11 + .../Composer/Installers/CiviCrmInstaller.php | 9 + .../Installers/ClanCatsFrameworkInstaller.php | 10 + .../Composer/Installers/CockpitInstaller.php | 34 + .../Installers/CodeIgniterInstaller.php | 11 + .../Installers/Concrete5Installer.php | 13 + .../Composer/Installers/CraftInstaller.php | 35 + .../Composer/Installers/CroogoInstaller.php | 21 + .../Composer/Installers/DecibelInstaller.php | 10 + .../Composer/Installers/DframeInstaller.php | 10 + .../Composer/Installers/DokuWikiInstaller.php | 50 + .../Composer/Installers/DolibarrInstaller.php | 16 + .../Composer/Installers/DrupalInstaller.php | 20 + .../src/Composer/Installers/ElggInstaller.php | 9 + .../Composer/Installers/EliasisInstaller.php | 12 + .../Installers/ExpressionEngineInstaller.php | 29 + .../Installers/EzPlatformInstaller.php | 10 + .../src/Composer/Installers/FuelInstaller.php | 11 + .../Composer/Installers/FuelphpInstaller.php | 9 + .../src/Composer/Installers/GravInstaller.php | 30 + .../Composer/Installers/HuradInstaller.php | 25 + .../Composer/Installers/ImageCMSInstaller.php | 11 + .../src/Composer/Installers/Installer.php | 278 ++++++ .../src/Composer/Installers/ItopInstaller.php | 9 + .../Composer/Installers/JoomlaInstaller.php | 15 + .../Composer/Installers/KanboardInstaller.php | 18 + .../Composer/Installers/KirbyInstaller.php | 11 + .../Composer/Installers/KnownInstaller.php | 11 + .../Composer/Installers/KodiCMSInstaller.php | 10 + .../Composer/Installers/KohanaInstaller.php | 9 + .../LanManagementSystemInstaller.php | 27 + .../Composer/Installers/LaravelInstaller.php | 9 + .../Composer/Installers/LavaLiteInstaller.php | 10 + .../Composer/Installers/LithiumInstaller.php | 10 + .../Installers/MODULEWorkInstaller.php | 9 + .../Composer/Installers/MODXEvoInstaller.php | 16 + .../Composer/Installers/MagentoInstaller.php | 11 + .../Composer/Installers/MajimaInstaller.php | 37 + .../src/Composer/Installers/MakoInstaller.php | 9 + .../Composer/Installers/MauticInstaller.php | 25 + .../src/Composer/Installers/MayaInstaller.php | 33 + .../Installers/MediaWikiInstaller.php | 51 + .../Installers/MicroweberInstaller.php | 119 +++ .../src/Composer/Installers/ModxInstaller.php | 12 + .../Composer/Installers/MoodleInstaller.php | 58 ++ .../Composer/Installers/OctoberInstaller.php | 47 + .../Composer/Installers/OntoWikiInstaller.php | 24 + .../Composer/Installers/OsclassInstaller.php | 14 + .../src/Composer/Installers/OxidInstaller.php | 59 ++ .../src/Composer/Installers/PPIInstaller.php | 9 + .../Composer/Installers/PhiftyInstaller.php | 11 + .../Composer/Installers/PhpBBInstaller.php | 11 + .../Composer/Installers/PimcoreInstaller.php | 21 + .../Composer/Installers/PiwikInstaller.php | 32 + .../Installers/PlentymarketsInstaller.php | 29 + .../src/Composer/Installers/Plugin.php | 17 + .../Composer/Installers/PortoInstaller.php | 9 + .../Installers/PrestashopInstaller.php | 10 + .../Composer/Installers/PuppetInstaller.php | 11 + .../Composer/Installers/PxcmsInstaller.php | 63 ++ .../Composer/Installers/RadPHPInstaller.php | 24 + .../Composer/Installers/ReIndexInstaller.php | 10 + .../Composer/Installers/Redaxo5Installer.php | 10 + .../Composer/Installers/RedaxoInstaller.php | 10 + .../Installers/RoundcubeInstaller.php | 22 + .../src/Composer/Installers/SMFInstaller.php | 10 + .../Composer/Installers/ShopwareInstaller.php | 60 ++ .../Installers/SilverStripeInstaller.php | 35 + .../Installers/SiteDirectInstaller.php | 25 + .../Composer/Installers/SyDESInstaller.php | 49 + .../Composer/Installers/Symfony1Installer.php | 26 + .../Composer/Installers/TYPO3CmsInstaller.php | 16 + .../Installers/TYPO3FlowInstaller.php | 38 + .../src/Composer/Installers/TaoInstaller.php | 12 + .../Composer/Installers/TheliaInstaller.php | 12 + .../src/Composer/Installers/TuskInstaller.php | 14 + .../Installers/UserFrostingInstaller.php | 9 + .../Composer/Installers/VanillaInstaller.php | 10 + .../Composer/Installers/VgmcpInstaller.php | 49 + .../Composer/Installers/WHMCSInstaller.php | 21 + .../Composer/Installers/WolfCMSInstaller.php | 9 + .../Installers/WordPressInstaller.php | 12 + .../Composer/Installers/YawikInstaller.php | 32 + .../src/Composer/Installers/ZendInstaller.php | 11 + .../Composer/Installers/ZikulaInstaller.php | 10 + vendor/composer/installers/src/bootstrap.php | 13 + 113 files changed, 5055 insertions(+) create mode 100644 vendor/autoload.php create mode 100644 vendor/autoload_packages.php create mode 100644 vendor/automattic/jetpack-autoloader/README.md create mode 100644 vendor/automattic/jetpack-autoloader/composer.json create mode 100644 vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php create mode 100644 vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php create mode 100644 vendor/automattic/jetpack-autoloader/src/autoload.php create mode 100644 vendor/composer/ClassLoader.php create mode 100644 vendor/composer/LICENSE create mode 100644 vendor/composer/autoload_classmap.php create mode 100644 vendor/composer/autoload_classmap_package.php create mode 100644 vendor/composer/autoload_namespaces.php create mode 100644 vendor/composer/autoload_psr4.php create mode 100644 vendor/composer/autoload_real.php create mode 100644 vendor/composer/autoload_static.php create mode 100644 vendor/composer/installed.json create mode 100644 vendor/composer/installers/LICENSE create mode 100644 vendor/composer/installers/composer.json create mode 100644 vendor/composer/installers/src/Composer/Installers/AglInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/BaseInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/ChefInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php create mode 100644 vendor/composer/installers/src/Composer/Installers/CraftInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/DframeInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/ElggInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/FuelInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/GravInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/HuradInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/Installer.php create mode 100644 vendor/composer/installers/src/Composer/Installers/ItopInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/KnownInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/MakoInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/MauticInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/MayaInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/ModxInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/OxidInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/PPIInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/Plugin.php create mode 100644 vendor/composer/installers/src/Composer/Installers/PortoInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php create mode 100644 vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/SMFInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php create mode 100644 vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/TaoInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/TuskInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/YawikInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/ZendInstaller.php create mode 100644 vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php create mode 100644 vendor/composer/installers/src/bootstrap.php diff --git a/vendor/autoload.php b/vendor/autoload.php new file mode 100644 index 00000000000..1a5d16bb4f3 --- /dev/null +++ b/vendor/autoload.php @@ -0,0 +1,7 @@ + $version, + 'path' => $path, + ); + } + // If we have a @dev version set always use that one! + if ( 'dev-' === substr( $jetpack_packages_classes[ $class_name ]['version'], 0, 4 ) ) { + return; + } + + // Always favour the @dev version. Since that version is the same as bleeding edge. + // We need to make sure that we don't do this in production! + if ( 'dev-' === substr( $version, 0, 4 ) ) { + $jetpack_packages_classes[ $class_name ] = array( + 'version' => $version, + 'path' => $path, + ); + + return; + } + // Set the latest version! + if ( version_compare( $jetpack_packages_classes[ $class_name ]['version'], $version, '<' ) ) { + $jetpack_packages_classes[ $class_name ] = array( + 'version' => $version, + 'path' => $path, + ); + } + } +} + +if ( ! function_exists( __NAMESPACE__ . '\autoloader' ) ) { + /** + * Used for autoloading jetpack packages. + * + * @param string $class_name Class Name to load. + */ + function autoloader( $class_name ) { + global $jetpack_packages_classes; + + if ( isset( $jetpack_packages_classes[ $class_name ] ) ) { + if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { + if ( function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) ) { + _doing_it_wrong( + esc_html( $class_name ), + sprintf( + /* translators: %s Name of a PHP Class */ + esc_html__( 'Not all plugins have loaded yet but we requested the class %s', 'jetpack' ), + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + $class_name + ), + esc_html( $jetpack_packages_classes[ $class_name ]['version'] ) + ); + } + } + + if ( file_exists( $jetpack_packages_classes[ $class_name ]['path'] ) ) { + require_once $jetpack_packages_classes[ $class_name ]['path']; + + return true; + } + } + + return false; + } + + // Add the jetpack autoloader. + spl_autoload_register( __NAMESPACE__ . '\autoloader' ); +} +/** + * Prepare all the classes for autoloading. + */ +function enqueue_packages_391d6e4434acf75f41618d6743408fb9() { + $class_map = require_once dirname( __FILE__ ) . '/composer/autoload_classmap_package.php'; + foreach ( $class_map as $class_name => $class_info ) { + enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] ); + } + + $autoload_file = __DIR__ . '/composer/autoload_files.php'; + $includeFiles = file_exists( $autoload_file ) + ? require $autoload_file + : array(); + + foreach ( $includeFiles as $fileIdentifier => $file ) { + if ( empty( $GLOBALS['__composer_autoload_files'][ $fileIdentifier ] ) ) { + require $file; + + $GLOBALS['__composer_autoload_files'][ $fileIdentifier ] = true; + } + } +} +enqueue_packages_391d6e4434acf75f41618d6743408fb9(); diff --git a/vendor/automattic/jetpack-autoloader/README.md b/vendor/automattic/jetpack-autoloader/README.md new file mode 100644 index 00000000000..ba9b8f3819a --- /dev/null +++ b/vendor/automattic/jetpack-autoloader/README.md @@ -0,0 +1,44 @@ +A custom autoloader for Composer +===================================== + +This is a custom autoloader generator that uses a classmap to always load the latest version of a class. + +The problem this autoloader is trying to solve is conflicts that arise when two or more plugins use the same package, but one of the plugins uses an older version of said package. + +This is solved by keeping an in memory map of all the different classes that can be loaded, and updating the map with the path to the latest version of the package for the autoloader to find when we instantiate the class. +This only works if we instantiate the class after all the plugins have loaded. That is why the class produces an error if the plugin calls a class but has not loaded all the plugins yet. + +It diverges from the default Composer autoloader setup in the following ways: + +* It creates an `autoload_classmap_package.php` file in the `vendor/composer` directory. +* This file includes the version numbers from each package that is used. +* The autoloader will only load the latest version of the library no matter what plugin loads the library. +* Only call the library classes after all the plugins have loaded and the `plugins_loaded` action has fired. + + +Usage +----- + +In your project's `composer.json`, add the following lines: + +```json +{ + "require-dev": { + "automattic/jetpack-autoloader": "^1" + } +} +``` + +After the next update/install, you will have a `vendor/autoload_packages.php` file. +Load the file in your plugin via main plugin file. + +In the main plugin you will also need to include the files like this. +```php +require_once . plugin_dir_path( __FILE__ ) . '/vendor/autoload_packages.php'; +``` + + +Current Limitations +----- + +We currently only support packages that autoload via psr-4 definition in their package. diff --git a/vendor/automattic/jetpack-autoloader/composer.json b/vendor/automattic/jetpack-autoloader/composer.json new file mode 100644 index 00000000000..82ea34b09f8 --- /dev/null +++ b/vendor/automattic/jetpack-autoloader/composer.json @@ -0,0 +1,28 @@ +{ + "name": "automattic/jetpack-autoloader", + "description": "Creates a custom autoloader for a plugin or theme.", + "type": "composer-plugin", + "license": "GPL-2.0-or-later", + "require": { + "composer-plugin-api": "^1.1" + }, + "require-dev": { + "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" + }, + "autoload": { + "psr-4": { + "Automattic\\Jetpack\\Autoloader\\": "src" + } + }, + "extra": { + "class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin" + }, + "scripts": { + "phpunit": [ + "@composer install", + "./vendor/phpunit/phpunit/phpunit --colors=always" + ] + }, + "minimum-stability": "dev", + "prefer-stable": true +} diff --git a/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php b/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php new file mode 100644 index 00000000000..9d99265534d --- /dev/null +++ b/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php @@ -0,0 +1,286 @@ +io = $io; + } + + /** + * Dump the autoloader. + * + * @param Config $config Config object. + * @param InstalledRepositoryInterface $localRepo Installed Reposetories object. + * @param PackageInterface $mainPackage Main Package object. + * @param InstallationManager $installationManager Manager for installing packages. + * @param string $targetDir Path to the current target directory. + * @param bool $scanPsr0Packages Whether to search for packages. Currently hard coded to always be false. + * @param string $suffix The autoloader suffix, ignored since we want our autoloader to only be included once. + */ + public function dump( + Config $config, + InstalledRepositoryInterface $localRepo, + PackageInterface $mainPackage, + InstallationManager $installationManager, + $targetDir, + $scanPsr0Packages = null, // Not used we always optimize. + $suffix = null + ) { + + $filesystem = new Filesystem(); + $filesystem->ensureDirectoryExists( $config->get( 'vendor-dir' ) ); + + $basePath = $filesystem->normalizePath( realpath( getcwd() ) ); + $vendorPath = $filesystem->normalizePath( realpath( $config->get( 'vendor-dir' ) ) ); + $targetDir = $vendorPath . '/' . $targetDir; + $filesystem->ensureDirectoryExists( $targetDir ); + + $packageMap = $this->buildPackageMap( $installationManager, $mainPackage, $localRepo->getCanonicalPackages() ); + $autoloads = $this->parseAutoloads( $packageMap, $mainPackage ); + + $classMap = $this->getClassMap( $autoloads, $filesystem, $vendorPath, $basePath ); + + // Generate the files. + file_put_contents( $targetDir . '/autoload_classmap_package.php', $this->getAutoloadClassmapPackagesFile( $classMap ) ); + $this->io->writeError( 'Generated ' . $targetDir . '/autoload_classmap_package.php', true ); + + file_put_contents( $vendorPath . '/autoload_packages.php', $this->getAutoloadPackageFile( $suffix ) ); + $this->io->writeError( 'Generated ' . $vendorPath . '/autoload_packages.php', true ); + + } + + /** + * This function differs from the composer parseAutoloadsType in that beside returning the path. + * It also return the path and the version of a package. + * + * Currently supports only psr-4 and clasmap parsing. + * + * @param array $packageMap Map of all the packages. + * @param string $type Type of autoloader to use, currently not used, since we only support psr-4. + * @param PackageInterface $mainPackage Instance of the Package Object. + * + * @return array + */ + protected function parseAutoloadsType( array $packageMap, $type, PackageInterface $mainPackage ) { + $autoloads = array(); + + if ( 'psr-4' !== $type && 'classmap' !== $type ) { + return parent::parseAutoloadsType( $packageMap, $type, $mainPackage ); + } + + foreach ( $packageMap as $item ) { + list($package, $installPath) = $item; + $autoload = $package->getAutoload(); + + if ( $package === $mainPackage ) { + $autoload = array_merge_recursive( $autoload, $package->getDevAutoload() ); + } + + if ( null !== $package->getTargetDir() && $package !== $mainPackage ) { + $installPath = substr( $installPath, 0, -strlen( '/' . $package->getTargetDir() ) ); + } + + if ( 'psr-4' === $type && isset( $autoload['psr-4'] ) && is_array( $autoload['psr-4'] ) ) { + foreach ( $autoload['psr-4'] as $namespace => $paths ) { + $paths = is_array( $paths ) ? $paths : array( $paths ); + foreach ( $paths as $path ) { + $relativePath = empty( $installPath ) ? ( empty( $path ) ? '.' : $path ) : $installPath . '/' . $path; + $autoloads[ $namespace ][] = array( + 'path' => $relativePath, + 'version' => $package->getVersion(), // Version of the class comes from the package - should we try to parse it? + ); + } + } + } + + if ( 'classmap' === $type && isset( $autoload['classmap'] ) && is_array( $autoload['classmap'] ) ) { + foreach ( $autoload['classmap'] as $paths ) { + $paths = is_array( $paths ) ? $paths : array( $paths ); + foreach ( $paths as $path ) { + $relativePath = empty( $installPath ) ? ( empty( $path ) ? '.' : $path ) : $installPath . '/' . $path; + $autoloads[] = array( + 'path' => $relativePath, + 'version' => $package->getVersion(), // Version of the class comes from the package - should we try to parse it? + ); + } + } + } + } + + return $autoloads; + } + + /** + * Take the autoloads array and return the classMap that contains the path and the version for each namespace. + * + * @param array $autoloads Array of autoload settings defined defined by the packages. + * @param Filesystem $filesystem Filesystem class instance. + * @param string $vendorPath Path to the vendor directory. + * @param string $basePath Base Path. + * + * @return array $classMap + */ + private function getClassMap( array $autoloads, Filesystem $filesystem, $vendorPath, $basePath ) { + $blacklist = null; + + if ( ! empty( $autoloads['exclude-from-classmap'] ) ) { + $blacklist = '{(' . implode( '|', $autoloads['exclude-from-classmap'] ) . ')}'; + } + + $classmapString = ''; + + // Scan the PSR-4 and classmap directories for class files, and add them to the class map. + foreach ( $autoloads['psr-4'] as $namespace => $packages_info ) { + foreach ( $packages_info as $package ) { + $dir = $filesystem->normalizePath( + $filesystem->isAbsolutePath( $package['path'] ) + ? $package['path'] + : $basePath . '/' . $package['path'] + ); + $namespace = empty( $namespace ) ? null : $namespace; + $map = ClassMapGenerator::createMap( $dir, $blacklist, $this->io, $namespace ); + + foreach ( $map as $class => $path ) { + $classCode = var_export( $class, true ); + $pathCode = $this->getPathCode( $filesystem, $basePath, $vendorPath, $path ); + $versionCode = var_export( $package['version'], true ); + $classmapString .= << array( + 'version' => $versionCode, + 'path' => $pathCode + ), +CLASS_CODE; + $classmapString .= PHP_EOL; + } + } + } + + foreach ( $autoloads['classmap'] as $package ) { + $dir = $filesystem->normalizePath( + $filesystem->isAbsolutePath( $package['path'] ) + ? $package['path'] + : $basePath . '/' . $package['path'] + ); + $map = ClassMapGenerator::createMap( $dir, $blacklist, $this->io, null ); + + foreach ( $map as $class => $path ) { + $classCode = var_export( $class, true ); + $pathCode = $this->getPathCode( $filesystem, $basePath, $vendorPath, $path ); + $versionCode = var_export( $package['version'], true ); + $classmapString .= << array( + 'version' => $versionCode, + 'path' => $pathCode + ), +CLASS_CODE; + $classmapString .= PHP_EOL; + } + } + + return 'array( ' . PHP_EOL . $classmapString . ');' . PHP_EOL; + } + + /** + * Generate the PHP that will be used in the autoload_classmap_package.php files. + * + * @param srting $classMap class map array string that is to be written out to the file. + * + * @return string + */ + private function getAutoloadClassmapPackagesFile( $classMap ) { + + return << \$class_info ) { + enqueue_package_class( \$class_name, \$class_info['version'], \$class_info['path'] ); + } + + \$autoload_file = __DIR__ . '/composer/autoload_files.php'; + \$includeFiles = file_exists( \$autoload_file ) + ? require \$autoload_file + : array(); + + foreach ( \$includeFiles as \$fileIdentifier => \$file ) { + if ( empty( \$GLOBALS['__composer_autoload_files'][ \$fileIdentifier ] ) ) { + require \$file; + + \$GLOBALS['__composer_autoload_files'][ \$fileIdentifier ] = true; + } + } +} +enqueue_packages_$suffix(); + +INCLUDE_FILES; + + return $file_contents; + } +} diff --git a/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php b/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php new file mode 100644 index 00000000000..7c184fc0ac6 --- /dev/null +++ b/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php @@ -0,0 +1,90 @@ +composer = $composer; + $this->io = $io; + } + + /** + * Tell composer to listen for events and do something with them. + * + * @return array List of succribed events. + */ + public static function getSubscribedEvents() { + return array( + ScriptEvents::POST_AUTOLOAD_DUMP => 'postAutoloadDump', + ); + } + + /** + * Generate the custom autolaoder. + * + * @param Event $event Script event object. + */ + public function postAutoloadDump( Event $event ) { + + $installationManager = $this->composer->getInstallationManager(); + $repoManager = $this->composer->getRepositoryManager(); + $localRepo = $repoManager->getLocalRepository(); + $package = $this->composer->getPackage(); + $config = $this->composer->getConfig(); + $optimize = true; + $suffix = $config->get( 'autoloader-suffix' ) + ? $config->get( 'autoloader-suffix' ) + : md5( uniqid( '', true ) ); + + $generator = new AutoloadGenerator( $this->io ); + + $generator->dump( $config, $localRepo, $package, $installationManager, 'composer', $optimize, $suffix ); + $this->generated = true; + } + +} diff --git a/vendor/automattic/jetpack-autoloader/src/autoload.php b/vendor/automattic/jetpack-autoloader/src/autoload.php new file mode 100644 index 00000000000..4fd9b34f4f7 --- /dev/null +++ b/vendor/automattic/jetpack-autoloader/src/autoload.php @@ -0,0 +1,102 @@ + $version, + 'path' => $path, + ); + } + // If we have a @dev version set always use that one! + if ( 'dev-' === substr( $jetpack_packages_classes[ $class_name ]['version'], 0, 4 ) ) { + return; + } + + // Always favour the @dev version. Since that version is the same as bleeding edge. + // We need to make sure that we don't do this in production! + if ( 'dev-' === substr( $version, 0, 4 ) ) { + $jetpack_packages_classes[ $class_name ] = array( + 'version' => $version, + 'path' => $path, + ); + + return; + } + // Set the latest version! + if ( version_compare( $jetpack_packages_classes[ $class_name ]['version'], $version, '<' ) ) { + $jetpack_packages_classes[ $class_name ] = array( + 'version' => $version, + 'path' => $path, + ); + } + } +} + +if ( ! function_exists( __NAMESPACE__ . '\autoloader' ) ) { + /** + * Used for autoloading jetpack packages. + * + * @param string $class_name Class Name to load. + */ + function autoloader( $class_name ) { + global $jetpack_packages_classes; + + if ( isset( $jetpack_packages_classes[ $class_name ] ) ) { + if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { + if ( function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) ) { + _doing_it_wrong( + esc_html( $class_name ), + sprintf( + /* translators: %s Name of a PHP Class */ + esc_html__( 'Not all plugins have loaded yet but we requested the class %s', 'jetpack' ), + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + $class_name + ), + esc_html( $jetpack_packages_classes[ $class_name ]['version'] ) + ); + } + } + + if ( file_exists( $jetpack_packages_classes[ $class_name ]['path'] ) ) { + require_once $jetpack_packages_classes[ $class_name ]['path']; + + return true; + } + } + + return false; + } + + // Add the jetpack autoloader. + spl_autoload_register( __NAMESPACE__ . '\autoloader' ); +} diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php new file mode 100644 index 00000000000..fce8549f078 --- /dev/null +++ b/vendor/composer/ClassLoader.php @@ -0,0 +1,445 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Autoload; + +/** + * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. + * + * $loader = new \Composer\Autoload\ClassLoader(); + * + * // register classes with namespaces + * $loader->add('Symfony\Component', __DIR__.'/component'); + * $loader->add('Symfony', __DIR__.'/framework'); + * + * // activate the autoloader + * $loader->register(); + * + * // to enable searching the include path (eg. for PEAR packages) + * $loader->setUseIncludePath(true); + * + * In this example, if you try to use a class in the Symfony\Component + * namespace or one of its children (Symfony\Component\Console for instance), + * the autoloader will first look for the class under the component/ + * directory, and it will then fallback to the framework/ directory if not + * found before giving up. + * + * This class is loosely based on the Symfony UniversalClassLoader. + * + * @author Fabien Potencier + * @author Jordi Boggiano + * @see http://www.php-fig.org/psr/psr-0/ + * @see http://www.php-fig.org/psr/psr-4/ + */ +class ClassLoader +{ + // PSR-4 + private $prefixLengthsPsr4 = array(); + private $prefixDirsPsr4 = array(); + private $fallbackDirsPsr4 = array(); + + // PSR-0 + private $prefixesPsr0 = array(); + private $fallbackDirsPsr0 = array(); + + private $useIncludePath = false; + private $classMap = array(); + private $classMapAuthoritative = false; + private $missingClasses = array(); + private $apcuPrefix; + + public function getPrefixes() + { + if (!empty($this->prefixesPsr0)) { + return call_user_func_array('array_merge', $this->prefixesPsr0); + } + + return array(); + } + + public function getPrefixesPsr4() + { + return $this->prefixDirsPsr4; + } + + public function getFallbackDirs() + { + return $this->fallbackDirsPsr0; + } + + public function getFallbackDirsPsr4() + { + return $this->fallbackDirsPsr4; + } + + public function getClassMap() + { + return $this->classMap; + } + + /** + * @param array $classMap Class to filename map + */ + public function addClassMap(array $classMap) + { + if ($this->classMap) { + $this->classMap = array_merge($this->classMap, $classMap); + } else { + $this->classMap = $classMap; + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, either + * appending or prepending to the ones previously set for this prefix. + * + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + */ + public function add($prefix, $paths, $prepend = false) + { + if (!$prefix) { + if ($prepend) { + $this->fallbackDirsPsr0 = array_merge( + (array) $paths, + $this->fallbackDirsPsr0 + ); + } else { + $this->fallbackDirsPsr0 = array_merge( + $this->fallbackDirsPsr0, + (array) $paths + ); + } + + return; + } + + $first = $prefix[0]; + if (!isset($this->prefixesPsr0[$first][$prefix])) { + $this->prefixesPsr0[$first][$prefix] = (array) $paths; + + return; + } + if ($prepend) { + $this->prefixesPsr0[$first][$prefix] = array_merge( + (array) $paths, + $this->prefixesPsr0[$first][$prefix] + ); + } else { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $this->prefixesPsr0[$first][$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, either + * appending or prepending to the ones previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories + * + * @throws \InvalidArgumentException + */ + public function addPsr4($prefix, $paths, $prepend = false) + { + if (!$prefix) { + // Register directories for the root namespace. + if ($prepend) { + $this->fallbackDirsPsr4 = array_merge( + (array) $paths, + $this->fallbackDirsPsr4 + ); + } else { + $this->fallbackDirsPsr4 = array_merge( + $this->fallbackDirsPsr4, + (array) $paths + ); + } + } elseif (!isset($this->prefixDirsPsr4[$prefix])) { + // Register directories for a new namespace. + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } elseif ($prepend) { + // Prepend directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + (array) $paths, + $this->prefixDirsPsr4[$prefix] + ); + } else { + // Append directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $this->prefixDirsPsr4[$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, + * replacing any others previously set for this prefix. + * + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 base directories + */ + public function set($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr0 = (array) $paths; + } else { + $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, + * replacing any others previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-4 base directories + * + * @throws \InvalidArgumentException + */ + public function setPsr4($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr4 = (array) $paths; + } else { + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } + } + + /** + * Turns on searching the include path for class files. + * + * @param bool $useIncludePath + */ + public function setUseIncludePath($useIncludePath) + { + $this->useIncludePath = $useIncludePath; + } + + /** + * Can be used to check if the autoloader uses the include path to check + * for classes. + * + * @return bool + */ + public function getUseIncludePath() + { + return $this->useIncludePath; + } + + /** + * Turns off searching the prefix and fallback directories for classes + * that have not been registered with the class map. + * + * @param bool $classMapAuthoritative + */ + public function setClassMapAuthoritative($classMapAuthoritative) + { + $this->classMapAuthoritative = $classMapAuthoritative; + } + + /** + * Should class lookup fail if not found in the current class map? + * + * @return bool + */ + public function isClassMapAuthoritative() + { + return $this->classMapAuthoritative; + } + + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + + /** + * Registers this instance as an autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not + */ + public function register($prepend = false) + { + spl_autoload_register(array($this, 'loadClass'), true, $prepend); + } + + /** + * Unregisters this instance as an autoloader. + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + } + + /** + * Loads the given class or interface. + * + * @param string $class The name of the class + * @return bool|null True if loaded, null otherwise + */ + public function loadClass($class) + { + if ($file = $this->findFile($class)) { + includeFile($file); + + return true; + } + } + + /** + * Finds the path to the file where the class is defined. + * + * @param string $class The name of the class + * + * @return string|false The path if found, false otherwise + */ + public function findFile($class) + { + // class map lookup + if (isset($this->classMap[$class])) { + return $this->classMap[$class]; + } + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { + return false; + } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } + + $file = $this->findFileWithExtension($class, '.php'); + + // Search for Hack files if we are running on HHVM + if (false === $file && defined('HHVM_VERSION')) { + $file = $this->findFileWithExtension($class, '.hh'); + } + + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { + // Remember that this class does not exist. + $this->missingClasses[$class] = true; + } + + return $file; + } + + private function findFileWithExtension($class, $ext) + { + // PSR-4 lookup + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; + + $first = $class[0]; + if (isset($this->prefixLengthsPsr4[$first])) { + $subPath = $class; + while (false !== $lastPos = strrpos($subPath, '\\')) { + $subPath = substr($subPath, 0, $lastPos); + $search = $subPath . '\\'; + if (isset($this->prefixDirsPsr4[$search])) { + $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); + foreach ($this->prefixDirsPsr4[$search] as $dir) { + if (file_exists($file = $dir . $pathEnd)) { + return $file; + } + } + } + } + } + + // PSR-4 fallback dirs + foreach ($this->fallbackDirsPsr4 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + return $file; + } + } + + // PSR-0 lookup + if (false !== $pos = strrpos($class, '\\')) { + // namespaced class name + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) + . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); + } else { + // PEAR-like class name + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; + } + + if (isset($this->prefixesPsr0[$first])) { + foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { + if (0 === strpos($class, $prefix)) { + foreach ($dirs as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + } + } + } + + // PSR-0 fallback dirs + foreach ($this->fallbackDirsPsr0 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + + // PSR-0 include paths. + if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { + return $file; + } + + return false; + } +} + +/** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + */ +function includeFile($file) +{ + include $file; +} diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE new file mode 100644 index 00000000000..f27399a042d --- /dev/null +++ b/vendor/composer/LICENSE @@ -0,0 +1,21 @@ + +Copyright (c) Nils Adermann, Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php new file mode 100644 index 00000000000..7a91153b0d8 --- /dev/null +++ b/vendor/composer/autoload_classmap.php @@ -0,0 +1,9 @@ + array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/GravInstaller.php' + ), + 'Composer\\Installers\\AttogramInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/AttogramInstaller.php' + ), + 'Composer\\Installers\\DrupalInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/DrupalInstaller.php' + ), + 'Composer\\Installers\\CraftInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/CraftInstaller.php' + ), + 'Composer\\Installers\\CiviCrmInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/CiviCrmInstaller.php' + ), + 'Composer\\Installers\\ItopInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/ItopInstaller.php' + ), + 'Composer\\Installers\\ReIndexInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php' + ), + 'Composer\\Installers\\TheliaInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/TheliaInstaller.php' + ), + 'Composer\\Installers\\SilverStripeInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php' + ), + 'Composer\\Installers\\ShopwareInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php' + ), + 'Composer\\Installers\\DokuWikiInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php' + ), + 'Composer\\Installers\\PPIInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/PPIInstaller.php' + ), + 'Composer\\Installers\\KirbyInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/KirbyInstaller.php' + ), + 'Composer\\Installers\\LaravelInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/LaravelInstaller.php' + ), + 'Composer\\Installers\\ElggInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/ElggInstaller.php' + ), + 'Composer\\Installers\\VanillaInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/VanillaInstaller.php' + ), + 'Composer\\Installers\\YawikInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/YawikInstaller.php' + ), + 'Composer\\Installers\\RoundcubeInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php' + ), + 'Composer\\Installers\\VgmcpInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php' + ), + 'Composer\\Installers\\UserFrostingInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/UserFrostingInstaller.php' + ), + 'Composer\\Installers\\RadPHPInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php' + ), + 'Composer\\Installers\\KnownInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/KnownInstaller.php' + ), + 'Composer\\Installers\\SMFInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/SMFInstaller.php' + ), + 'Composer\\Installers\\PhiftyInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php' + ), + 'Composer\\Installers\\MakoInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/MakoInstaller.php' + ), + 'Composer\\Installers\\TYPO3CmsInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php' + ), + 'Composer\\Installers\\CockpitInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/CockpitInstaller.php' + ), + 'Composer\\Installers\\CodeIgniterInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php' + ), + 'Composer\\Installers\\TaoInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/TaoInstaller.php' + ), + 'Composer\\Installers\\AimeosInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/AimeosInstaller.php' + ), + 'Composer\\Installers\\KohanaInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/KohanaInstaller.php' + ), + 'Composer\\Installers\\Plugin' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/Plugin.php' + ), + 'Composer\\Installers\\ExpressionEngineInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php' + ), + 'Composer\\Installers\\OctoberInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/OctoberInstaller.php' + ), + 'Composer\\Installers\\WolfCMSInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php' + ), + 'Composer\\Installers\\LithiumInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/LithiumInstaller.php' + ), + 'Composer\\Installers\\ZendInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/ZendInstaller.php' + ), + 'Composer\\Installers\\Symfony1Installer' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/Symfony1Installer.php' + ), + 'Composer\\Installers\\LavaLiteInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php' + ), + 'Composer\\Installers\\MoodleInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/MoodleInstaller.php' + ), + 'Composer\\Installers\\HuradInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/HuradInstaller.php' + ), + 'Composer\\Installers\\BaseInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/BaseInstaller.php' + ), + 'Composer\\Installers\\CakePHPInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php' + ), + 'Composer\\Installers\\RedaxoInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php' + ), + 'Composer\\Installers\\ModxInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/ModxInstaller.php' + ), + 'Composer\\Installers\\MauticInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/MauticInstaller.php' + ), + 'Composer\\Installers\\MagentoInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/MagentoInstaller.php' + ), + 'Composer\\Installers\\Concrete5Installer' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/Concrete5Installer.php' + ), + 'Composer\\Installers\\FuelphpInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php' + ), + 'Composer\\Installers\\FuelInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelInstaller.php' + ), + 'Composer\\Installers\\PrestashopInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php' + ), + 'Composer\\Installers\\OxidInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/OxidInstaller.php' + ), + 'Composer\\Installers\\TuskInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/TuskInstaller.php' + ), + 'Composer\\Installers\\TYPO3FlowInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php' + ), + 'Composer\\Installers\\PiwikInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/PiwikInstaller.php' + ), + 'Composer\\Installers\\PuppetInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/PuppetInstaller.php' + ), + 'Composer\\Installers\\AglInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/AglInstaller.php' + ), + 'Composer\\Installers\\PimcoreInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php' + ), + 'Composer\\Installers\\EliasisInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/EliasisInstaller.php' + ), + 'Composer\\Installers\\Redaxo5Installer' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/Redaxo5Installer.php' + ), + 'Composer\\Installers\\BitrixInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/BitrixInstaller.php' + ), + 'Composer\\Installers\\AsgardInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/AsgardInstaller.php' + ), + 'Composer\\Installers\\WHMCSInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php' + ), + 'Composer\\Installers\\KanboardInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/KanboardInstaller.php' + ), + 'Composer\\Installers\\WordPressInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/WordPressInstaller.php' + ), + 'Composer\\Installers\\MajimaInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/MajimaInstaller.php' + ), + 'Composer\\Installers\\DframeInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/DframeInstaller.php' + ), + 'Composer\\Installers\\PlentymarketsInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php' + ), + 'Composer\\Installers\\EzPlatformInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/EzPlatformInstaller.php' + ), + 'Composer\\Installers\\MODXEvoInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php' + ), + 'Composer\\Installers\\OntoWikiInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/OntoWikiInstaller.php' + ), + 'Composer\\Installers\\AnnotateCmsInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php' + ), + 'Composer\\Installers\\MODULEWorkInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php' + ), + 'Composer\\Installers\\OsclassInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/OsclassInstaller.php' + ), + 'Composer\\Installers\\ChefInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/ChefInstaller.php' + ), + 'Composer\\Installers\\JoomlaInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php' + ), + 'Composer\\Installers\\Installer' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/Installer.php' + ), + 'Composer\\Installers\\KodiCMSInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php' + ), + 'Composer\\Installers\\PhpBBInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php' + ), + 'Composer\\Installers\\MediaWikiInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php' + ), + 'Composer\\Installers\\ImageCMSInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php' + ), + 'Composer\\Installers\\PortoInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/PortoInstaller.php' + ), + 'Composer\\Installers\\DolibarrInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php' + ), + 'Composer\\Installers\\BonefishInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/BonefishInstaller.php' + ), + 'Composer\\Installers\\MayaInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/MayaInstaller.php' + ), + 'Composer\\Installers\\CroogoInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/CroogoInstaller.php' + ), + 'Composer\\Installers\\PxcmsInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php' + ), + 'Composer\\Installers\\DecibelInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/DecibelInstaller.php' + ), + 'Composer\\Installers\\SyDESInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/SyDESInstaller.php' + ), + 'Composer\\Installers\\LanManagementSystemInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php' + ), + 'Composer\\Installers\\ClanCatsFrameworkInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php' + ), + 'Composer\\Installers\\ZikulaInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php' + ), + 'Composer\\Installers\\SiteDirectInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php' + ), + 'Composer\\Installers\\MicroweberInstaller' => array( + 'version' => '1.7.0.0', + 'path' => $vendorDir . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php' + ), + 'Automattic\\WooCommerce\\Admin\\Overrides\\WPPostStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Overrides/WPPostStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\Overrides\\Order' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Overrides/Order.php' + ), + 'Automattic\\WooCommerce\\Admin\\Overrides\\ThemeUpgrader' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Overrides/ThemeUpgrader.php' + ), + 'Automattic\\WooCommerce\\Admin\\Overrides\\ThemeUpgraderSkin' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Overrides/ThemeUpgraderSkin.php' + ), + 'Automattic\\WooCommerce\\Admin\\Overrides\\OrderTraits' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Overrides/OrderTraits.php' + ), + 'Automattic\\WooCommerce\\Admin\\Overrides\\OrderRefund' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Overrides/OrderRefund.php' + ), + 'Automattic\\WooCommerce\\Admin\\Loader' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Loader.php' + ), + 'Automattic\\WooCommerce\\Admin\\ReportCSVEmail' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/ReportCSVEmail.php' + ), + 'Automattic\\WooCommerce\\Admin\\FeaturePlugin' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/FeaturePlugin.php' + ), + 'Automattic\\WooCommerce\\Admin\\ReportsSync' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/ReportsSync.php' + ), + 'Automattic\\WooCommerce\\Admin\\ReportCSVExporter' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/ReportCSVExporter.php' + ), + 'Automattic\\WooCommerce\\Admin\\Install' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Install.php' + ), + 'Automattic\\WooCommerce\\Admin\\CategoryLookup' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/CategoryLookup.php' + ), + 'Automattic\\WooCommerce\\Admin\\Package' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Package.php' + ), + 'Automattic\\WooCommerce\\Admin\\ReportExporter' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/ReportExporter.php' + ), + 'Automattic\\WooCommerce\\Admin\\Features\\OnboardingTasks' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Features/OnboardingTasks.php' + ), + 'Automattic\\WooCommerce\\Admin\\Features\\ActivityPanels' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Features/ActivityPanels.php' + ), + 'Automattic\\WooCommerce\\Admin\\Features\\Onboarding' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Features/Onboarding.php' + ), + 'Automattic\\WooCommerce\\Admin\\Features\\Analytics' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Features/Analytics.php' + ), + 'Automattic\\WooCommerce\\Admin\\Features\\AnalyticsDashboard' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Features/AnalyticsDashboard.php' + ), + 'Automattic\\WooCommerce\\Admin\\Events' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Events.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_New_Sales_Record' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_New_Sales_Record.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Historical_Data' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Historical_Data.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Tracking_Opt_In' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Tracking_Opt_In.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Giving_Feedback_Notes' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Giving_Feedback_Notes.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Order_Milestones' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Order_Milestones.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Onboarding_Email_Marketing' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Onboarding_Email_Marketing.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Onboarding_Profiler' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Onboarding_Profiler.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Mobile_App' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Mobile_App.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Woo_Subscriptions_Notes' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Woo_Subscriptions_Notes.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Facebook_Extension' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Facebook_Extension.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Onboarding' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Onboarding.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/NoteTraits.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Welcome_Message' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Welcome_Message.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Settings_Notes' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Settings_Notes.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes_Add_First_Product' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes_Add_First_Product.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Notes' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Notes.php' + ), + 'Automattic\\WooCommerce\\Admin\\Notes\\WC_Admin_Note' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Notes/WC_Admin_Note.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Taxes' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Taxes.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\ProductReviews' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/ProductReviews.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Init' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Init.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\OnboardingProfile' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/OnboardingProfile.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\OnboardingTasks' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/OnboardingTasks.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\DataDownloadIPs' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/DataDownloadIPs.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Themes' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Themes.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\SettingOptions' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/SettingOptions.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\NoteActions' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/NoteActions.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Notes' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Notes.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Coupons' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Coupons.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\ProductCategories' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/ProductCategories.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\ProductVariations' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/ProductVariations.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Leaderboards' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Leaderboards.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Data' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Data.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Options' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Options.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\OnboardingPlugins' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/OnboardingPlugins.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Products' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Products.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Customers' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Customers.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\OnboardingThemes' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/OnboardingThemes.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\DataCountries' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/DataCountries.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Orders' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Orders.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Customers/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Customers/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Customers/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\Stats\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Customers/Stats/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\Stats\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Customers/Stats/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Customers\\Stats\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Customers/Stats/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\DataStoreInterface' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/DataStoreInterface.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Products\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Products/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Products\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Products/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Products\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Products/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Products\\Stats\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Products/Stats/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Products\\Stats\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Products/Stats/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Products\\Stats\\Segmenter' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Products/Stats/Segmenter.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Products\\Stats\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Products/Stats/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\TimeInterval' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/TimeInterval.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\ExportableInterface' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/ExportableInterface.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Cache' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Cache.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Variations\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Variations/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Variations\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Variations/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Variations\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Variations/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\ExportableTraits' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/ExportableTraits.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Coupons\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Coupons/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Coupons\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Coupons/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Coupons\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Coupons/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Coupons\\Stats\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Coupons/Stats/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Coupons\\Stats\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Coupons/Stats/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Coupons\\Stats\\Segmenter' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Coupons/Stats/Segmenter.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Coupons\\Stats\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Coupons/Stats/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\ParameterException' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/ParameterException.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Segmenter' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Segmenter.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Taxes\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Taxes/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Taxes\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Taxes/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Taxes\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Taxes/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Taxes\\Stats\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Taxes/Stats/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Taxes\\Stats\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Taxes/Stats/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Taxes\\Stats\\Segmenter' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Taxes/Stats/Segmenter.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Taxes\\Stats\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Taxes/Stats/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\PerformanceIndicators\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/PerformanceIndicators/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Orders/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Orders/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Orders/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Orders/Stats/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Orders/Stats/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\Segmenter' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Orders/Stats/Segmenter.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Orders\\Stats\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Orders/Stats/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Export\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Export/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Stock\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Stock/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Stock\\Stats\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Stock/Stats/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Stock\\Stats\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Stock/Stats/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Stock\\Stats\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Stock/Stats/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Revenue\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Revenue/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Revenue\\Stats\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Revenue/Stats/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Import\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Import/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Downloads\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Downloads/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Downloads\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Downloads/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Downloads\\Files\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Downloads/Files/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Downloads\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Downloads/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Downloads\\Stats\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Downloads/Stats/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Downloads\\Stats\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Downloads/Stats/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Downloads\\Stats\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Downloads/Stats/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Categories\\Controller' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Categories/Controller.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Categories\\DataStore' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Categories/DataStore.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\Categories\\Query' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/Categories/Query.php' + ), + 'Automattic\\WooCommerce\\Admin\\API\\Reports\\SqlQuery' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/API/Reports/SqlQuery.php' + ), + 'Automattic\\WooCommerce\\Admin\\PageController' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/PageController.php' + ), + 'Automattic\\WooCommerce\\Admin\\Schedulers\\ImportScheduler' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Schedulers/ImportScheduler.php' + ), + 'Automattic\\WooCommerce\\Admin\\Schedulers\\OrdersScheduler' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Schedulers/OrdersScheduler.php' + ), + 'Automattic\\WooCommerce\\Admin\\Schedulers\\SchedulerTraits' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Schedulers/SchedulerTraits.php' + ), + 'Automattic\\WooCommerce\\Admin\\Schedulers\\ImportInterface' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Schedulers/ImportInterface.php' + ), + 'Automattic\\WooCommerce\\Admin\\Schedulers\\CustomersScheduler' => array( + 'version' => 'dev-release/0.25.1', + 'path' => $baseDir . '/src/Schedulers/CustomersScheduler.php' + ), + 'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array( + 'version' => '1.4.0.0', + 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php' + ), + 'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array( + 'version' => '1.4.0.0', + 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php' + ), +); + diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php new file mode 100644 index 00000000000..b7fc0125dbc --- /dev/null +++ b/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ + array($vendorDir . '/composer/installers/src/Composer/Installers'), + 'Automattic\\WooCommerce\\Admin\\' => array($baseDir . '/src'), + 'Automattic\\Jetpack\\Autoloader\\' => array($vendorDir . '/automattic/jetpack-autoloader/src'), +); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php new file mode 100644 index 00000000000..2cab49978ac --- /dev/null +++ b/vendor/composer/autoload_real.php @@ -0,0 +1,52 @@ += 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); + if ($useStaticLoader) { + require_once __DIR__ . '/autoload_static.php'; + + call_user_func(\Composer\Autoload\ComposerStaticInitfc14807bbec51b6e553ff476d14d61ad::getInitializer($loader)); + } else { + $map = require __DIR__ . '/autoload_namespaces.php'; + foreach ($map as $namespace => $path) { + $loader->set($namespace, $path); + } + + $map = require __DIR__ . '/autoload_psr4.php'; + foreach ($map as $namespace => $path) { + $loader->setPsr4($namespace, $path); + } + + $classMap = require __DIR__ . '/autoload_classmap.php'; + if ($classMap) { + $loader->addClassMap($classMap); + } + } + + $loader->register(true); + + return $loader; + } +} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php new file mode 100644 index 00000000000..6cd6fd79ae5 --- /dev/null +++ b/vendor/composer/autoload_static.php @@ -0,0 +1,44 @@ + + array ( + 'Composer\\Installers\\' => 20, + ), + 'A' => + array ( + 'Automattic\\WooCommerce\\Admin\\' => 29, + 'Automattic\\Jetpack\\Autoloader\\' => 30, + ), + ); + + public static $prefixDirsPsr4 = array ( + 'Composer\\Installers\\' => + array ( + 0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers', + ), + 'Automattic\\WooCommerce\\Admin\\' => + array ( + 0 => __DIR__ . '/../..' . '/src', + ), + 'Automattic\\Jetpack\\Autoloader\\' => + array ( + 0 => __DIR__ . '/..' . '/automattic/jetpack-autoloader/src', + ), + ); + + public static function getInitializer(ClassLoader $loader) + { + return \Closure::bind(function () use ($loader) { + $loader->prefixLengthsPsr4 = ComposerStaticInitfc14807bbec51b6e553ff476d14d61ad::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitfc14807bbec51b6e553ff476d14d61ad::$prefixDirsPsr4; + + }, null, ClassLoader::class); + } +} diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json new file mode 100644 index 00000000000..bbca837a93e --- /dev/null +++ b/vendor/composer/installed.json @@ -0,0 +1,164 @@ +[ + { + "name": "automattic/jetpack-autoloader", + "version": "v1.4.0", + "version_normalized": "1.4.0.0", + "source": { + "type": "git", + "url": "https://github.com/Automattic/jetpack-autoloader.git", + "reference": "3cb0ad8496d04a648435ebee7c2a652c80eaf550" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/3cb0ad8496d04a648435ebee7c2a652c80eaf550", + "reference": "3cb0ad8496d04a648435ebee7c2a652c80eaf550", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.1" + }, + "require-dev": { + "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5" + }, + "time": "2020-01-22T17:49:03+00:00", + "type": "composer-plugin", + "extra": { + "class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin" + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Automattic\\Jetpack\\Autoloader\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-2.0-or-later" + ], + "description": "Creates a custom autoloader for a plugin or theme." + }, + { + "name": "composer/installers", + "version": "v1.7.0", + "version_normalized": "1.7.0.0", + "source": { + "type": "git", + "url": "https://github.com/composer/installers.git", + "reference": "141b272484481432cda342727a427dc1e206bfa0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/installers/zipball/141b272484481432cda342727a427dc1e206bfa0", + "reference": "141b272484481432cda342727a427dc1e206bfa0", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0" + }, + "replace": { + "roundcube/plugin-installer": "*", + "shama/baton": "*" + }, + "require-dev": { + "composer/composer": "1.0.*@dev", + "phpunit/phpunit": "^4.8.36" + }, + "time": "2019-08-12T15:00:31+00:00", + "type": "composer-plugin", + "extra": { + "class": "Composer\\Installers\\Plugin", + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Composer\\Installers\\": "src/Composer/Installers" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kyle Robinson Young", + "email": "kyle@dontkry.com", + "homepage": "https://github.com/shama" + } + ], + "description": "A multi-framework Composer library installer", + "homepage": "https://composer.github.io/installers/", + "keywords": [ + "Craft", + "Dolibarr", + "Eliasis", + "Hurad", + "ImageCMS", + "Kanboard", + "Lan Management System", + "MODX Evo", + "Mautic", + "Maya", + "OXID", + "Plentymarkets", + "Porto", + "RadPHP", + "SMF", + "Thelia", + "Whmcs", + "WolfCMS", + "agl", + "aimeos", + "annotatecms", + "attogram", + "bitrix", + "cakephp", + "chef", + "cockpit", + "codeigniter", + "concrete5", + "croogo", + "dokuwiki", + "drupal", + "eZ Platform", + "elgg", + "expressionengine", + "fuelphp", + "grav", + "installer", + "itop", + "joomla", + "known", + "kohana", + "laravel", + "lavalite", + "lithium", + "magento", + "majima", + "mako", + "mediawiki", + "modulework", + "modx", + "moodle", + "osclass", + "phpbb", + "piwik", + "ppi", + "puppet", + "pxcms", + "reindex", + "roundcube", + "shopware", + "silverstripe", + "sydes", + "symfony", + "typo3", + "wordpress", + "yawik", + "zend", + "zikula" + ] + } +] diff --git a/vendor/composer/installers/LICENSE b/vendor/composer/installers/LICENSE new file mode 100644 index 00000000000..85f97fc7951 --- /dev/null +++ b/vendor/composer/installers/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2012 Kyle Robinson Young + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/vendor/composer/installers/composer.json b/vendor/composer/installers/composer.json new file mode 100644 index 00000000000..1f68e72a577 --- /dev/null +++ b/vendor/composer/installers/composer.json @@ -0,0 +1,107 @@ +{ + "name": "composer/installers", + "type": "composer-plugin", + "license": "MIT", + "description": "A multi-framework Composer library installer", + "keywords": [ + "installer", + "Aimeos", + "AGL", + "AnnotateCms", + "Attogram", + "Bitrix", + "CakePHP", + "Chef", + "Cockpit", + "CodeIgniter", + "concrete5", + "Craft", + "Croogo", + "DokuWiki", + "Dolibarr", + "Drupal", + "Elgg", + "Eliasis", + "ExpressionEngine", + "eZ Platform", + "FuelPHP", + "Grav", + "Hurad", + "ImageCMS", + "iTop", + "Joomla", + "Kanboard", + "Known", + "Kohana", + "Lan Management System", + "Laravel", + "Lavalite", + "Lithium", + "Magento", + "majima", + "Mako", + "Mautic", + "Maya", + "MODX", + "MODX Evo", + "MediaWiki", + "OXID", + "osclass", + "MODULEWork", + "Moodle", + "Piwik", + "pxcms", + "phpBB", + "Plentymarkets", + "PPI", + "Puppet", + "Porto", + "RadPHP", + "ReIndex", + "Roundcube", + "shopware", + "SilverStripe", + "SMF", + "SyDES", + "symfony", + "Thelia", + "TYPO3", + "WHMCS", + "WolfCMS", + "WordPress", + "YAWIK", + "Zend", + "Zikula" + ], + "homepage": "https://composer.github.io/installers/", + "authors": [ + { + "name": "Kyle Robinson Young", + "email": "kyle@dontkry.com", + "homepage": "https://github.com/shama" + } + ], + "autoload": { + "psr-4": { "Composer\\Installers\\": "src/Composer/Installers" } + }, + "extra": { + "class": "Composer\\Installers\\Plugin", + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "replace": { + "shama/baton": "*", + "roundcube/plugin-installer": "*" + }, + "require": { + "composer-plugin-api": "^1.0" + }, + "require-dev": { + "composer/composer": "1.0.*@dev", + "phpunit/phpunit": "^4.8.36" + }, + "scripts": { + "test": "phpunit" + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/AglInstaller.php b/vendor/composer/installers/src/Composer/Installers/AglInstaller.php new file mode 100644 index 00000000000..01b8a416592 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/AglInstaller.php @@ -0,0 +1,21 @@ + 'More/{$name}/', + ); + + /** + * Format package name to CamelCase + */ + public function inflectPackageVars($vars) + { + $vars['name'] = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) { + return strtoupper($matches[1]); + }, $vars['name']); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php b/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php new file mode 100644 index 00000000000..79a0e958fd4 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php @@ -0,0 +1,9 @@ + 'ext/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php b/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php new file mode 100644 index 00000000000..89d7ad9057d --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php @@ -0,0 +1,11 @@ + 'addons/modules/{$name}/', + 'component' => 'addons/components/{$name}/', + 'service' => 'addons/services/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php b/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php new file mode 100644 index 00000000000..22dad1b9a01 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php @@ -0,0 +1,49 @@ + 'Modules/{$name}/', + 'theme' => 'Themes/{$name}/' + ); + + /** + * Format package name. + * + * For package type asgard-module, cut off a trailing '-plugin' if present. + * + * For package type asgard-theme, cut off a trailing '-theme' if present. + * + */ + public function inflectPackageVars($vars) + { + if ($vars['type'] === 'asgard-module') { + return $this->inflectPluginVars($vars); + } + + if ($vars['type'] === 'asgard-theme') { + return $this->inflectThemeVars($vars); + } + + return $vars; + } + + protected function inflectPluginVars($vars) + { + $vars['name'] = preg_replace('/-module$/', '', $vars['name']); + $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } + + protected function inflectThemeVars($vars) + { + $vars['name'] = preg_replace('/-theme$/', '', $vars['name']); + $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php b/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php new file mode 100644 index 00000000000..d62fd8fd1e1 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php @@ -0,0 +1,9 @@ + 'modules/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php b/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php new file mode 100644 index 00000000000..7082bf2cb0b --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php @@ -0,0 +1,136 @@ +composer = $composer; + $this->package = $package; + $this->io = $io; + } + + /** + * Return the install path based on package type. + * + * @param PackageInterface $package + * @param string $frameworkType + * @return string + */ + public function getInstallPath(PackageInterface $package, $frameworkType = '') + { + $type = $this->package->getType(); + + $prettyName = $this->package->getPrettyName(); + if (strpos($prettyName, '/') !== false) { + list($vendor, $name) = explode('/', $prettyName); + } else { + $vendor = ''; + $name = $prettyName; + } + + $availableVars = $this->inflectPackageVars(compact('name', 'vendor', 'type')); + + $extra = $package->getExtra(); + if (!empty($extra['installer-name'])) { + $availableVars['name'] = $extra['installer-name']; + } + + if ($this->composer->getPackage()) { + $extra = $this->composer->getPackage()->getExtra(); + if (!empty($extra['installer-paths'])) { + $customPath = $this->mapCustomInstallPaths($extra['installer-paths'], $prettyName, $type, $vendor); + if ($customPath !== false) { + return $this->templatePath($customPath, $availableVars); + } + } + } + + $packageType = substr($type, strlen($frameworkType) + 1); + $locations = $this->getLocations(); + if (!isset($locations[$packageType])) { + throw new \InvalidArgumentException(sprintf('Package type "%s" is not supported', $type)); + } + + return $this->templatePath($locations[$packageType], $availableVars); + } + + /** + * For an installer to override to modify the vars per installer. + * + * @param array $vars + * @return array + */ + public function inflectPackageVars($vars) + { + return $vars; + } + + /** + * Gets the installer's locations + * + * @return array + */ + public function getLocations() + { + return $this->locations; + } + + /** + * Replace vars in a path + * + * @param string $path + * @param array $vars + * @return string + */ + protected function templatePath($path, array $vars = array()) + { + if (strpos($path, '{') !== false) { + extract($vars); + preg_match_all('@\{\$([A-Za-z0-9_]*)\}@i', $path, $matches); + if (!empty($matches[1])) { + foreach ($matches[1] as $var) { + $path = str_replace('{$' . $var . '}', $$var, $path); + } + } + } + + return $path; + } + + /** + * Search through a passed paths array for a custom install path. + * + * @param array $paths + * @param string $name + * @param string $type + * @param string $vendor = NULL + * @return string + */ + protected function mapCustomInstallPaths(array $paths, $name, $type, $vendor = NULL) + { + foreach ($paths as $path => $names) { + if (in_array($name, $names) || in_array('type:' . $type, $names) || in_array('vendor:' . $vendor, $names)) { + return $path; + } + } + + return false; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php b/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php new file mode 100644 index 00000000000..e80cd1e109f --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php @@ -0,0 +1,126 @@ +.`. + * - `bitrix-d7-component` — copy the component to directory `bitrix/components//`. + * - `bitrix-d7-template` — copy the template to directory `bitrix/templates/_`. + * + * You can set custom path to directory with Bitrix kernel in `composer.json`: + * + * ```json + * { + * "extra": { + * "bitrix-dir": "s1/bitrix" + * } + * } + * ``` + * + * @author Nik Samokhvalov + * @author Denis Kulichkin + */ +class BitrixInstaller extends BaseInstaller +{ + protected $locations = array( + 'module' => '{$bitrix_dir}/modules/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken) + 'component' => '{$bitrix_dir}/components/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken) + 'theme' => '{$bitrix_dir}/templates/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken) + 'd7-module' => '{$bitrix_dir}/modules/{$vendor}.{$name}/', + 'd7-component' => '{$bitrix_dir}/components/{$vendor}/{$name}/', + 'd7-template' => '{$bitrix_dir}/templates/{$vendor}_{$name}/', + ); + + /** + * @var array Storage for informations about duplicates at all the time of installation packages. + */ + private static $checkedDuplicates = array(); + + /** + * {@inheritdoc} + */ + public function inflectPackageVars($vars) + { + if ($this->composer->getPackage()) { + $extra = $this->composer->getPackage()->getExtra(); + + if (isset($extra['bitrix-dir'])) { + $vars['bitrix_dir'] = $extra['bitrix-dir']; + } + } + + if (!isset($vars['bitrix_dir'])) { + $vars['bitrix_dir'] = 'bitrix'; + } + + return parent::inflectPackageVars($vars); + } + + /** + * {@inheritdoc} + */ + protected function templatePath($path, array $vars = array()) + { + $templatePath = parent::templatePath($path, $vars); + $this->checkDuplicates($templatePath, $vars); + + return $templatePath; + } + + /** + * Duplicates search packages. + * + * @param string $path + * @param array $vars + */ + protected function checkDuplicates($path, array $vars = array()) + { + $packageType = substr($vars['type'], strlen('bitrix') + 1); + $localDir = explode('/', $vars['bitrix_dir']); + array_pop($localDir); + $localDir[] = 'local'; + $localDir = implode('/', $localDir); + + $oldPath = str_replace( + array('{$bitrix_dir}', '{$name}'), + array($localDir, $vars['name']), + $this->locations[$packageType] + ); + + if (in_array($oldPath, static::$checkedDuplicates)) { + return; + } + + if ($oldPath !== $path && file_exists($oldPath) && $this->io && $this->io->isInteractive()) { + + $this->io->writeError(' Duplication of packages:'); + $this->io->writeError(' Package ' . $oldPath . ' will be called instead package ' . $path . ''); + + while (true) { + switch ($this->io->ask(' Delete ' . $oldPath . ' [y,n,?]? ', '?')) { + case 'y': + $fs = new Filesystem(); + $fs->removeDirectory($oldPath); + break 2; + + case 'n': + break 2; + + case '?': + default: + $this->io->writeError(array( + ' y - delete package ' . $oldPath . ' and to continue with the installation', + ' n - don\'t delete and to continue with the installation', + )); + $this->io->writeError(' ? - print help'); + break; + } + } + } + + static::$checkedDuplicates[] = $oldPath; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php b/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php new file mode 100644 index 00000000000..da3aad2a3bf --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php @@ -0,0 +1,9 @@ + 'Packages/{$vendor}/{$name}/' + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php b/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php new file mode 100644 index 00000000000..6352beb110e --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php @@ -0,0 +1,82 @@ + 'Plugin/{$name}/', + ); + + /** + * Format package name to CamelCase + */ + public function inflectPackageVars($vars) + { + if ($this->matchesCakeVersion('>=', '3.0.0')) { + return $vars; + } + + $nameParts = explode('/', $vars['name']); + foreach ($nameParts as &$value) { + $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value)); + $value = str_replace(array('-', '_'), ' ', $value); + $value = str_replace(' ', '', ucwords($value)); + } + $vars['name'] = implode('/', $nameParts); + + return $vars; + } + + /** + * Change the default plugin location when cakephp >= 3.0 + */ + public function getLocations() + { + if ($this->matchesCakeVersion('>=', '3.0.0')) { + $this->locations['plugin'] = $this->composer->getConfig()->get('vendor-dir') . '/{$vendor}/{$name}/'; + } + return $this->locations; + } + + /** + * Check if CakePHP version matches against a version + * + * @param string $matcher + * @param string $version + * @return bool + */ + protected function matchesCakeVersion($matcher, $version) + { + if (class_exists('Composer\Semver\Constraint\MultiConstraint')) { + $multiClass = 'Composer\Semver\Constraint\MultiConstraint'; + $constraintClass = 'Composer\Semver\Constraint\Constraint'; + } else { + $multiClass = 'Composer\Package\LinkConstraint\MultiConstraint'; + $constraintClass = 'Composer\Package\LinkConstraint\VersionConstraint'; + } + + $repositoryManager = $this->composer->getRepositoryManager(); + if ($repositoryManager) { + $repos = $repositoryManager->getLocalRepository(); + if (!$repos) { + return false; + } + $cake3 = new $multiClass(array( + new $constraintClass($matcher, $version), + new $constraintClass('!=', '9999999-dev'), + )); + $pool = new Pool('dev'); + $pool->addRepository($repos); + $packages = $pool->whatProvides('cakephp/cakephp'); + foreach ($packages as $package) { + $installed = new $constraintClass('=', $package->getVersion()); + if ($cake3->matches($installed)) { + return true; + } + } + } + return false; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php b/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php new file mode 100644 index 00000000000..ab2f9aad807 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php @@ -0,0 +1,11 @@ + 'Chef/{$vendor}/{$name}/', + 'role' => 'Chef/roles/{$name}/', + ); +} + diff --git a/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php b/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php new file mode 100644 index 00000000000..6673aea94ba --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php @@ -0,0 +1,9 @@ + 'ext/{$name}/' + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php b/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php new file mode 100644 index 00000000000..c887815c95a --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php @@ -0,0 +1,10 @@ + 'CCF/orbit/{$name}/', + 'theme' => 'CCF/app/themes/{$name}/', + ); +} \ No newline at end of file diff --git a/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php b/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php new file mode 100644 index 00000000000..c7816dfce2e --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php @@ -0,0 +1,34 @@ + 'cockpit/modules/addons/{$name}/', + ); + + /** + * Format module name. + * + * Strip `module-` prefix from package name. + * + * @param array @vars + * + * @return array + */ + public function inflectPackageVars($vars) + { + if ($vars['type'] == 'cockpit-module') { + return $this->inflectModuleVars($vars); + } + + return $vars; + } + + public function inflectModuleVars($vars) + { + $vars['name'] = ucfirst(preg_replace('/cockpit-/i', '', $vars['name'])); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php b/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php new file mode 100644 index 00000000000..3b4a4ece11a --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php @@ -0,0 +1,11 @@ + 'application/libraries/{$name}/', + 'third-party' => 'application/third_party/{$name}/', + 'module' => 'application/modules/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php b/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php new file mode 100644 index 00000000000..5c01bafd777 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php @@ -0,0 +1,13 @@ + 'concrete/', + 'block' => 'application/blocks/{$name}/', + 'package' => 'packages/{$name}/', + 'theme' => 'application/themes/{$name}/', + 'update' => 'updates/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php b/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php new file mode 100644 index 00000000000..d37a77ae2b7 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php @@ -0,0 +1,35 @@ + 'craft/plugins/{$name}/', + ); + + /** + * Strip `craft-` prefix and/or `-plugin` suffix from package names + * + * @param array $vars + * + * @return array + */ + final public function inflectPackageVars($vars) + { + return $this->inflectPluginVars($vars); + } + + private function inflectPluginVars($vars) + { + $vars['name'] = preg_replace('/-' . self::NAME_SUFFIX . '$/i', '', $vars['name']); + $vars['name'] = preg_replace('/^' . self::NAME_PREFIX . '-/i', '', $vars['name']); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php b/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php new file mode 100644 index 00000000000..d94219d3a45 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php @@ -0,0 +1,21 @@ + 'Plugin/{$name}/', + 'theme' => 'View/Themed/{$name}/', + ); + + /** + * Format package name to CamelCase + */ + public function inflectPackageVars($vars) + { + $vars['name'] = strtolower(str_replace(array('-', '_'), ' ', $vars['name'])); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php b/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php new file mode 100644 index 00000000000..f4837a6c18d --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php @@ -0,0 +1,10 @@ + 'app/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/DframeInstaller.php b/vendor/composer/installers/src/Composer/Installers/DframeInstaller.php new file mode 100644 index 00000000000..70788163a11 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/DframeInstaller.php @@ -0,0 +1,10 @@ + 'modules/{$vendor}/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php b/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php new file mode 100644 index 00000000000..cfd638d5f5f --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php @@ -0,0 +1,50 @@ + 'lib/plugins/{$name}/', + 'template' => 'lib/tpl/{$name}/', + ); + + /** + * Format package name. + * + * For package type dokuwiki-plugin, cut off a trailing '-plugin', + * or leading dokuwiki_ if present. + * + * For package type dokuwiki-template, cut off a trailing '-template' if present. + * + */ + public function inflectPackageVars($vars) + { + + if ($vars['type'] === 'dokuwiki-plugin') { + return $this->inflectPluginVars($vars); + } + + if ($vars['type'] === 'dokuwiki-template') { + return $this->inflectTemplateVars($vars); + } + + return $vars; + } + + protected function inflectPluginVars($vars) + { + $vars['name'] = preg_replace('/-plugin$/', '', $vars['name']); + $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']); + + return $vars; + } + + protected function inflectTemplateVars($vars) + { + $vars['name'] = preg_replace('/-template$/', '', $vars['name']); + $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']); + + return $vars; + } + +} diff --git a/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php b/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php new file mode 100644 index 00000000000..21f7e8e8016 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php @@ -0,0 +1,16 @@ + + */ +class DolibarrInstaller extends BaseInstaller +{ + //TODO: Add support for scripts and themes + protected $locations = array( + 'module' => 'htdocs/custom/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php b/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php new file mode 100644 index 00000000000..f520bfe25e2 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php @@ -0,0 +1,20 @@ + 'core/', + 'module' => 'modules/{$name}/', + 'theme' => 'themes/{$name}/', + 'library' => 'libraries/{$name}/', + 'profile' => 'profiles/{$name}/', + 'drush' => 'drush/{$name}/', + 'custom-theme' => 'themes/custom/{$name}/', + 'custom-module' => 'modules/custom/{$name}/', + 'custom-profile' => 'profiles/custom/{$name}/', + 'drupal-multisite' => 'sites/{$name}/', + 'console' => 'console/{$name}/', + 'console-language' => 'console/language/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php b/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php new file mode 100644 index 00000000000..c0bb609f4fe --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php @@ -0,0 +1,9 @@ + 'mod/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php b/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php new file mode 100644 index 00000000000..6f3dc97b11a --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php @@ -0,0 +1,12 @@ + 'components/{$name}/', + 'module' => 'modules/{$name}/', + 'plugin' => 'plugins/{$name}/', + 'template' => 'templates/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php b/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php new file mode 100644 index 00000000000..d5321a8ca10 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php @@ -0,0 +1,29 @@ + 'system/expressionengine/third_party/{$name}/', + 'theme' => 'themes/third_party/{$name}/', + ); + + private $ee3Locations = array( + 'addon' => 'system/user/addons/{$name}/', + 'theme' => 'themes/user/{$name}/', + ); + + public function getInstallPath(PackageInterface $package, $frameworkType = '') + { + + $version = "{$frameworkType}Locations"; + $this->locations = $this->$version; + + return parent::getInstallPath($package, $frameworkType); + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php b/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php new file mode 100644 index 00000000000..f30ebcc775c --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php @@ -0,0 +1,10 @@ + 'web/assets/ezplatform/', + 'assets' => 'web/assets/ezplatform/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php b/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php new file mode 100644 index 00000000000..6eba2e34f2f --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php @@ -0,0 +1,11 @@ + 'fuel/app/modules/{$name}/', + 'package' => 'fuel/packages/{$name}/', + 'theme' => 'fuel/app/themes/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php b/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php new file mode 100644 index 00000000000..29d980b30da --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php @@ -0,0 +1,9 @@ + 'components/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/GravInstaller.php b/vendor/composer/installers/src/Composer/Installers/GravInstaller.php new file mode 100644 index 00000000000..dbe63e07ec2 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/GravInstaller.php @@ -0,0 +1,30 @@ + 'user/plugins/{$name}/', + 'theme' => 'user/themes/{$name}/', + ); + + /** + * Format package name + * + * @param array $vars + * + * @return array + */ + public function inflectPackageVars($vars) + { + $restrictedWords = implode('|', array_keys($this->locations)); + + $vars['name'] = strtolower($vars['name']); + $vars['name'] = preg_replace('/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui', + '$1', + $vars['name'] + ); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php b/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php new file mode 100644 index 00000000000..8fe017f0f74 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php @@ -0,0 +1,25 @@ + 'plugins/{$name}/', + 'theme' => 'plugins/{$name}/', + ); + + /** + * Format package name to CamelCase + */ + public function inflectPackageVars($vars) + { + $nameParts = explode('/', $vars['name']); + foreach ($nameParts as &$value) { + $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value)); + $value = str_replace(array('-', '_'), ' ', $value); + $value = str_replace(' ', '', ucwords($value)); + } + $vars['name'] = implode('/', $nameParts); + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php b/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php new file mode 100644 index 00000000000..5e2142ea577 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php @@ -0,0 +1,11 @@ + 'templates/{$name}/', + 'module' => 'application/modules/{$name}/', + 'library' => 'application/libraries/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/Installer.php b/vendor/composer/installers/src/Composer/Installers/Installer.php new file mode 100644 index 00000000000..651c19043e7 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/Installer.php @@ -0,0 +1,278 @@ + 'AimeosInstaller', + 'asgard' => 'AsgardInstaller', + 'attogram' => 'AttogramInstaller', + 'agl' => 'AglInstaller', + 'annotatecms' => 'AnnotateCmsInstaller', + 'bitrix' => 'BitrixInstaller', + 'bonefish' => 'BonefishInstaller', + 'cakephp' => 'CakePHPInstaller', + 'chef' => 'ChefInstaller', + 'civicrm' => 'CiviCrmInstaller', + 'ccframework' => 'ClanCatsFrameworkInstaller', + 'cockpit' => 'CockpitInstaller', + 'codeigniter' => 'CodeIgniterInstaller', + 'concrete5' => 'Concrete5Installer', + 'craft' => 'CraftInstaller', + 'croogo' => 'CroogoInstaller', + 'dframe' => 'DframeInstaller', + 'dokuwiki' => 'DokuWikiInstaller', + 'dolibarr' => 'DolibarrInstaller', + 'decibel' => 'DecibelInstaller', + 'drupal' => 'DrupalInstaller', + 'elgg' => 'ElggInstaller', + 'eliasis' => 'EliasisInstaller', + 'ee3' => 'ExpressionEngineInstaller', + 'ee2' => 'ExpressionEngineInstaller', + 'ezplatform' => 'EzPlatformInstaller', + 'fuel' => 'FuelInstaller', + 'fuelphp' => 'FuelphpInstaller', + 'grav' => 'GravInstaller', + 'hurad' => 'HuradInstaller', + 'imagecms' => 'ImageCMSInstaller', + 'itop' => 'ItopInstaller', + 'joomla' => 'JoomlaInstaller', + 'kanboard' => 'KanboardInstaller', + 'kirby' => 'KirbyInstaller', + 'known' => 'KnownInstaller', + 'kodicms' => 'KodiCMSInstaller', + 'kohana' => 'KohanaInstaller', + 'lms' => 'LanManagementSystemInstaller', + 'laravel' => 'LaravelInstaller', + 'lavalite' => 'LavaLiteInstaller', + 'lithium' => 'LithiumInstaller', + 'magento' => 'MagentoInstaller', + 'majima' => 'MajimaInstaller', + 'mako' => 'MakoInstaller', + 'maya' => 'MayaInstaller', + 'mautic' => 'MauticInstaller', + 'mediawiki' => 'MediaWikiInstaller', + 'microweber' => 'MicroweberInstaller', + 'modulework' => 'MODULEWorkInstaller', + 'modx' => 'ModxInstaller', + 'modxevo' => 'MODXEvoInstaller', + 'moodle' => 'MoodleInstaller', + 'october' => 'OctoberInstaller', + 'ontowiki' => 'OntoWikiInstaller', + 'oxid' => 'OxidInstaller', + 'osclass' => 'OsclassInstaller', + 'pxcms' => 'PxcmsInstaller', + 'phpbb' => 'PhpBBInstaller', + 'pimcore' => 'PimcoreInstaller', + 'piwik' => 'PiwikInstaller', + 'plentymarkets'=> 'PlentymarketsInstaller', + 'ppi' => 'PPIInstaller', + 'puppet' => 'PuppetInstaller', + 'radphp' => 'RadPHPInstaller', + 'phifty' => 'PhiftyInstaller', + 'porto' => 'PortoInstaller', + 'redaxo' => 'RedaxoInstaller', + 'redaxo5' => 'Redaxo5Installer', + 'reindex' => 'ReIndexInstaller', + 'roundcube' => 'RoundcubeInstaller', + 'shopware' => 'ShopwareInstaller', + 'sitedirect' => 'SiteDirectInstaller', + 'silverstripe' => 'SilverStripeInstaller', + 'smf' => 'SMFInstaller', + 'sydes' => 'SyDESInstaller', + 'symfony1' => 'Symfony1Installer', + 'tao' => 'TaoInstaller', + 'thelia' => 'TheliaInstaller', + 'tusk' => 'TuskInstaller', + 'typo3-cms' => 'TYPO3CmsInstaller', + 'typo3-flow' => 'TYPO3FlowInstaller', + 'userfrosting' => 'UserFrostingInstaller', + 'vanilla' => 'VanillaInstaller', + 'whmcs' => 'WHMCSInstaller', + 'wolfcms' => 'WolfCMSInstaller', + 'wordpress' => 'WordPressInstaller', + 'yawik' => 'YawikInstaller', + 'zend' => 'ZendInstaller', + 'zikula' => 'ZikulaInstaller', + 'prestashop' => 'PrestashopInstaller' + ); + + /** + * Installer constructor. + * + * Disables installers specified in main composer extra installer-disable + * list + * + * @param IOInterface $io + * @param Composer $composer + * @param string $type + * @param Filesystem|null $filesystem + * @param BinaryInstaller|null $binaryInstaller + */ + public function __construct( + IOInterface $io, + Composer $composer, + $type = 'library', + Filesystem $filesystem = null, + BinaryInstaller $binaryInstaller = null + ) { + parent::__construct($io, $composer, $type, $filesystem, + $binaryInstaller); + $this->removeDisabledInstallers(); + } + + /** + * {@inheritDoc} + */ + public function getInstallPath(PackageInterface $package) + { + $type = $package->getType(); + $frameworkType = $this->findFrameworkType($type); + + if ($frameworkType === false) { + throw new \InvalidArgumentException( + 'Sorry the package type of this package is not yet supported.' + ); + } + + $class = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType]; + $installer = new $class($package, $this->composer, $this->getIO()); + + return $installer->getInstallPath($package, $frameworkType); + } + + public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) + { + parent::uninstall($repo, $package); + $installPath = $this->getPackageBasePath($package); + $this->io->write(sprintf('Deleting %s - %s', $installPath, !file_exists($installPath) ? 'deleted' : 'not deleted')); + } + + /** + * {@inheritDoc} + */ + public function supports($packageType) + { + $frameworkType = $this->findFrameworkType($packageType); + + if ($frameworkType === false) { + return false; + } + + $locationPattern = $this->getLocationPattern($frameworkType); + + return preg_match('#' . $frameworkType . '-' . $locationPattern . '#', $packageType, $matches) === 1; + } + + /** + * Finds a supported framework type if it exists and returns it + * + * @param string $type + * @return string + */ + protected function findFrameworkType($type) + { + $frameworkType = false; + + krsort($this->supportedTypes); + + foreach ($this->supportedTypes as $key => $val) { + if ($key === substr($type, 0, strlen($key))) { + $frameworkType = substr($type, 0, strlen($key)); + break; + } + } + + return $frameworkType; + } + + /** + * Get the second part of the regular expression to check for support of a + * package type + * + * @param string $frameworkType + * @return string + */ + protected function getLocationPattern($frameworkType) + { + $pattern = false; + if (!empty($this->supportedTypes[$frameworkType])) { + $frameworkClass = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType]; + /** @var BaseInstaller $framework */ + $framework = new $frameworkClass(null, $this->composer, $this->getIO()); + $locations = array_keys($framework->getLocations()); + $pattern = $locations ? '(' . implode('|', $locations) . ')' : false; + } + + return $pattern ? : '(\w+)'; + } + + /** + * Get I/O object + * + * @return IOInterface + */ + private function getIO() + { + return $this->io; + } + + /** + * Look for installers set to be disabled in composer's extra config and + * remove them from the list of supported installers. + * + * Globals: + * - true, "all", and "*" - disable all installers. + * - false - enable all installers (useful with + * wikimedia/composer-merge-plugin or similar) + * + * @return void + */ + protected function removeDisabledInstallers() + { + $extra = $this->composer->getPackage()->getExtra(); + + if (!isset($extra['installer-disable']) || $extra['installer-disable'] === false) { + // No installers are disabled + return; + } + + // Get installers to disable + $disable = $extra['installer-disable']; + + // Ensure $disabled is an array + if (!is_array($disable)) { + $disable = array($disable); + } + + // Check which installers should be disabled + $all = array(true, "all", "*"); + $intersect = array_intersect($all, $disable); + if (!empty($intersect)) { + // Disable all installers + $this->supportedTypes = array(); + } else { + // Disable specified installers + foreach ($disable as $key => $installer) { + if (is_string($installer) && key_exists($installer, $this->supportedTypes)) { + unset($this->supportedTypes[$installer]); + } + } + } + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php b/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php new file mode 100644 index 00000000000..c6c1b337460 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php @@ -0,0 +1,9 @@ + 'extensions/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php b/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php new file mode 100644 index 00000000000..9ee7759651a --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php @@ -0,0 +1,15 @@ + 'components/{$name}/', + 'module' => 'modules/{$name}/', + 'template' => 'templates/{$name}/', + 'plugin' => 'plugins/{$name}/', + 'library' => 'libraries/{$name}/', + ); + + // TODO: Add inflector for mod_ and com_ names +} diff --git a/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php b/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php new file mode 100644 index 00000000000..9cb7b8cdbff --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php @@ -0,0 +1,18 @@ + 'plugins/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php b/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php new file mode 100644 index 00000000000..36b2f84a761 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php @@ -0,0 +1,11 @@ + 'site/plugins/{$name}/', + 'field' => 'site/fields/{$name}/', + 'tag' => 'site/tags/{$name}/' + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php b/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php new file mode 100644 index 00000000000..c5d08c5f9a1 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php @@ -0,0 +1,11 @@ + 'IdnoPlugins/{$name}/', + 'theme' => 'Themes/{$name}/', + 'console' => 'ConsolePlugins/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php b/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php new file mode 100644 index 00000000000..7143e232bc3 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php @@ -0,0 +1,10 @@ + 'cms/plugins/{$name}/', + 'media' => 'cms/media/vendor/{$name}/' + ); +} \ No newline at end of file diff --git a/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php b/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php new file mode 100644 index 00000000000..dcd6d26322a --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php @@ -0,0 +1,9 @@ + 'modules/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php b/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php new file mode 100644 index 00000000000..903143a558e --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php @@ -0,0 +1,27 @@ + 'plugins/{$name}/', + 'template' => 'templates/{$name}/', + 'document-template' => 'documents/templates/{$name}/', + 'userpanel-module' => 'userpanel/modules/{$name}/', + ); + + /** + * Format package name to CamelCase + */ + public function inflectPackageVars($vars) + { + $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); + $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } + +} diff --git a/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php b/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php new file mode 100644 index 00000000000..be4d53a7bd3 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php @@ -0,0 +1,9 @@ + 'libraries/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php b/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php new file mode 100644 index 00000000000..412c0b5c0b6 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php @@ -0,0 +1,10 @@ + 'packages/{$vendor}/{$name}/', + 'theme' => 'public/themes/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php b/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php new file mode 100644 index 00000000000..47bbd4cabeb --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php @@ -0,0 +1,10 @@ + 'libraries/{$name}/', + 'source' => 'libraries/_source/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php b/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php new file mode 100644 index 00000000000..9c2e9fb40c3 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php @@ -0,0 +1,9 @@ + 'modules/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php b/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php new file mode 100644 index 00000000000..5a664608df9 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php @@ -0,0 +1,16 @@ + 'assets/snippets/{$name}/', + 'plugin' => 'assets/plugins/{$name}/', + 'module' => 'assets/modules/{$name}/', + 'template' => 'assets/templates/{$name}/', + 'lib' => 'assets/lib/{$name}/' + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php b/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php new file mode 100644 index 00000000000..cf18e9478ce --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php @@ -0,0 +1,11 @@ + 'app/design/frontend/{$name}/', + 'skin' => 'skin/frontend/default/{$name}/', + 'library' => 'lib/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php b/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php new file mode 100644 index 00000000000..e463756faa9 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php @@ -0,0 +1,37 @@ + 'plugins/{$name}/', + ); + + /** + * Transforms the names + * @param array $vars + * @return array + */ + public function inflectPackageVars($vars) + { + return $this->correctPluginName($vars); + } + + /** + * Change hyphenated names to camelcase + * @param array $vars + * @return array + */ + private function correctPluginName($vars) + { + $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) { + return strtoupper($matches[0][1]); + }, $vars['name']); + $vars['name'] = ucfirst($camelCasedName); + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php b/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php new file mode 100644 index 00000000000..ca3cfacb49a --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php @@ -0,0 +1,9 @@ + 'app/packages/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php b/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php new file mode 100644 index 00000000000..3e1ce2b2d7d --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php @@ -0,0 +1,25 @@ + 'plugins/{$name}/', + 'theme' => 'themes/{$name}/', + ); + + /** + * Format package name of mautic-plugins to CamelCase + */ + public function inflectPackageVars($vars) + { + if ($vars['type'] == 'mautic-plugin') { + $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) { + return strtoupper($matches[0][1]); + }, ucfirst($vars['name'])); + } + + return $vars; + } + +} diff --git a/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php b/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php new file mode 100644 index 00000000000..30a91676d73 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php @@ -0,0 +1,33 @@ + 'modules/{$name}/', + ); + + /** + * Format package name. + * + * For package type maya-module, cut off a trailing '-module' if present. + * + */ + public function inflectPackageVars($vars) + { + if ($vars['type'] === 'maya-module') { + return $this->inflectModuleVars($vars); + } + + return $vars; + } + + protected function inflectModuleVars($vars) + { + $vars['name'] = preg_replace('/-module$/', '', $vars['name']); + $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php b/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php new file mode 100644 index 00000000000..f5a8957ef0d --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php @@ -0,0 +1,51 @@ + 'core/', + 'extension' => 'extensions/{$name}/', + 'skin' => 'skins/{$name}/', + ); + + /** + * Format package name. + * + * For package type mediawiki-extension, cut off a trailing '-extension' if present and transform + * to CamelCase keeping existing uppercase chars. + * + * For package type mediawiki-skin, cut off a trailing '-skin' if present. + * + */ + public function inflectPackageVars($vars) + { + + if ($vars['type'] === 'mediawiki-extension') { + return $this->inflectExtensionVars($vars); + } + + if ($vars['type'] === 'mediawiki-skin') { + return $this->inflectSkinVars($vars); + } + + return $vars; + } + + protected function inflectExtensionVars($vars) + { + $vars['name'] = preg_replace('/-extension$/', '', $vars['name']); + $vars['name'] = str_replace('-', ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } + + protected function inflectSkinVars($vars) + { + $vars['name'] = preg_replace('/-skin$/', '', $vars['name']); + + return $vars; + } + +} diff --git a/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php b/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php new file mode 100644 index 00000000000..b7d970392ab --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php @@ -0,0 +1,119 @@ + 'userfiles/modules/{$install_item_dir}/', + 'module-skin' => 'userfiles/modules/{$install_item_dir}/templates/', + 'template' => 'userfiles/templates/{$install_item_dir}/', + 'element' => 'userfiles/elements/{$install_item_dir}/', + 'vendor' => 'vendor/{$install_item_dir}/', + 'components' => 'components/{$install_item_dir}/' + ); + + /** + * Format package name. + * + * For package type microweber-module, cut off a trailing '-module' if present + * + * For package type microweber-template, cut off a trailing '-template' if present. + * + */ + public function inflectPackageVars($vars) + { + + + if ($this->package->getTargetDir()) { + $vars['install_item_dir'] = $this->package->getTargetDir(); + } else { + $vars['install_item_dir'] = $vars['name']; + if ($vars['type'] === 'microweber-template') { + return $this->inflectTemplateVars($vars); + } + if ($vars['type'] === 'microweber-templates') { + return $this->inflectTemplatesVars($vars); + } + if ($vars['type'] === 'microweber-core') { + return $this->inflectCoreVars($vars); + } + if ($vars['type'] === 'microweber-adapter') { + return $this->inflectCoreVars($vars); + } + if ($vars['type'] === 'microweber-module') { + return $this->inflectModuleVars($vars); + } + if ($vars['type'] === 'microweber-modules') { + return $this->inflectModulesVars($vars); + } + if ($vars['type'] === 'microweber-skin') { + return $this->inflectSkinVars($vars); + } + if ($vars['type'] === 'microweber-element' or $vars['type'] === 'microweber-elements') { + return $this->inflectElementVars($vars); + } + } + + + return $vars; + } + + protected function inflectTemplateVars($vars) + { + $vars['install_item_dir'] = preg_replace('/-template$/', '', $vars['install_item_dir']); + $vars['install_item_dir'] = preg_replace('/template-$/', '', $vars['install_item_dir']); + + return $vars; + } + + protected function inflectTemplatesVars($vars) + { + $vars['install_item_dir'] = preg_replace('/-templates$/', '', $vars['install_item_dir']); + $vars['install_item_dir'] = preg_replace('/templates-$/', '', $vars['install_item_dir']); + + return $vars; + } + + protected function inflectCoreVars($vars) + { + $vars['install_item_dir'] = preg_replace('/-providers$/', '', $vars['install_item_dir']); + $vars['install_item_dir'] = preg_replace('/-provider$/', '', $vars['install_item_dir']); + $vars['install_item_dir'] = preg_replace('/-adapter$/', '', $vars['install_item_dir']); + + return $vars; + } + + protected function inflectModuleVars($vars) + { + $vars['install_item_dir'] = preg_replace('/-module$/', '', $vars['install_item_dir']); + $vars['install_item_dir'] = preg_replace('/module-$/', '', $vars['install_item_dir']); + + return $vars; + } + + protected function inflectModulesVars($vars) + { + $vars['install_item_dir'] = preg_replace('/-modules$/', '', $vars['install_item_dir']); + $vars['install_item_dir'] = preg_replace('/modules-$/', '', $vars['install_item_dir']); + + return $vars; + } + + protected function inflectSkinVars($vars) + { + $vars['install_item_dir'] = preg_replace('/-skin$/', '', $vars['install_item_dir']); + $vars['install_item_dir'] = preg_replace('/skin-$/', '', $vars['install_item_dir']); + + return $vars; + } + + protected function inflectElementVars($vars) + { + $vars['install_item_dir'] = preg_replace('/-elements$/', '', $vars['install_item_dir']); + $vars['install_item_dir'] = preg_replace('/elements-$/', '', $vars['install_item_dir']); + $vars['install_item_dir'] = preg_replace('/-element$/', '', $vars['install_item_dir']); + $vars['install_item_dir'] = preg_replace('/element-$/', '', $vars['install_item_dir']); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/ModxInstaller.php b/vendor/composer/installers/src/Composer/Installers/ModxInstaller.php new file mode 100644 index 00000000000..0ee140abfe5 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/ModxInstaller.php @@ -0,0 +1,12 @@ + 'core/packages/{$name}/' + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php b/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php new file mode 100644 index 00000000000..75dbe71b3fc --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php @@ -0,0 +1,58 @@ + 'mod/{$name}/', + 'admin_report' => 'admin/report/{$name}/', + 'atto' => 'lib/editor/atto/plugins/{$name}/', + 'tool' => 'admin/tool/{$name}/', + 'assignment' => 'mod/assignment/type/{$name}/', + 'assignsubmission' => 'mod/assign/submission/{$name}/', + 'assignfeedback' => 'mod/assign/feedback/{$name}/', + 'auth' => 'auth/{$name}/', + 'availability' => 'availability/condition/{$name}/', + 'block' => 'blocks/{$name}/', + 'booktool' => 'mod/book/tool/{$name}/', + 'cachestore' => 'cache/stores/{$name}/', + 'cachelock' => 'cache/locks/{$name}/', + 'calendartype' => 'calendar/type/{$name}/', + 'format' => 'course/format/{$name}/', + 'coursereport' => 'course/report/{$name}/', + 'customcertelement' => 'mod/customcert/element/{$name}/', + 'datafield' => 'mod/data/field/{$name}/', + 'datapreset' => 'mod/data/preset/{$name}/', + 'editor' => 'lib/editor/{$name}/', + 'enrol' => 'enrol/{$name}/', + 'filter' => 'filter/{$name}/', + 'gradeexport' => 'grade/export/{$name}/', + 'gradeimport' => 'grade/import/{$name}/', + 'gradereport' => 'grade/report/{$name}/', + 'gradingform' => 'grade/grading/form/{$name}/', + 'local' => 'local/{$name}/', + 'logstore' => 'admin/tool/log/store/{$name}/', + 'ltisource' => 'mod/lti/source/{$name}/', + 'ltiservice' => 'mod/lti/service/{$name}/', + 'message' => 'message/output/{$name}/', + 'mnetservice' => 'mnet/service/{$name}/', + 'plagiarism' => 'plagiarism/{$name}/', + 'portfolio' => 'portfolio/{$name}/', + 'qbehaviour' => 'question/behaviour/{$name}/', + 'qformat' => 'question/format/{$name}/', + 'qtype' => 'question/type/{$name}/', + 'quizaccess' => 'mod/quiz/accessrule/{$name}/', + 'quiz' => 'mod/quiz/report/{$name}/', + 'report' => 'report/{$name}/', + 'repository' => 'repository/{$name}/', + 'scormreport' => 'mod/scorm/report/{$name}/', + 'search' => 'search/engine/{$name}/', + 'theme' => 'theme/{$name}/', + 'tinymce' => 'lib/editor/tinymce/plugins/{$name}/', + 'profilefield' => 'user/profile/field/{$name}/', + 'webservice' => 'webservice/{$name}/', + 'workshopallocation' => 'mod/workshop/allocation/{$name}/', + 'workshopeval' => 'mod/workshop/eval/{$name}/', + 'workshopform' => 'mod/workshop/form/{$name}/' + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php b/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php new file mode 100644 index 00000000000..08d5dc4e75e --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php @@ -0,0 +1,47 @@ + 'modules/{$name}/', + 'plugin' => 'plugins/{$vendor}/{$name}/', + 'theme' => 'themes/{$name}/' + ); + + /** + * Format package name. + * + * For package type october-plugin, cut off a trailing '-plugin' if present. + * + * For package type october-theme, cut off a trailing '-theme' if present. + * + */ + public function inflectPackageVars($vars) + { + if ($vars['type'] === 'october-plugin') { + return $this->inflectPluginVars($vars); + } + + if ($vars['type'] === 'october-theme') { + return $this->inflectThemeVars($vars); + } + + return $vars; + } + + protected function inflectPluginVars($vars) + { + $vars['name'] = preg_replace('/^oc-|-plugin$/', '', $vars['name']); + $vars['vendor'] = preg_replace('/[^a-z0-9_]/i', '', $vars['vendor']); + + return $vars; + } + + protected function inflectThemeVars($vars) + { + $vars['name'] = preg_replace('/^oc-|-theme$/', '', $vars['name']); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php b/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php new file mode 100644 index 00000000000..5dd3438d90b --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php @@ -0,0 +1,24 @@ + 'extensions/{$name}/', + 'theme' => 'extensions/themes/{$name}/', + 'translation' => 'extensions/translations/{$name}/', + ); + + /** + * Format package name to lower case and remove ".ontowiki" suffix + */ + public function inflectPackageVars($vars) + { + $vars['name'] = strtolower($vars['name']); + $vars['name'] = preg_replace('/.ontowiki$/', '', $vars['name']); + $vars['name'] = preg_replace('/-theme$/', '', $vars['name']); + $vars['name'] = preg_replace('/-translation$/', '', $vars['name']); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php b/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php new file mode 100644 index 00000000000..3ca7954c9ea --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php @@ -0,0 +1,14 @@ + 'oc-content/plugins/{$name}/', + 'theme' => 'oc-content/themes/{$name}/', + 'language' => 'oc-content/languages/{$name}/', + ); + +} diff --git a/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php b/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php new file mode 100644 index 00000000000..49940ff6d04 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php @@ -0,0 +1,59 @@ +.+)\/.+/'; + + protected $locations = array( + 'module' => 'modules/{$name}/', + 'theme' => 'application/views/{$name}/', + 'out' => 'out/{$name}/', + ); + + /** + * getInstallPath + * + * @param PackageInterface $package + * @param string $frameworkType + * @return void + */ + public function getInstallPath(PackageInterface $package, $frameworkType = '') + { + $installPath = parent::getInstallPath($package, $frameworkType); + $type = $this->package->getType(); + if ($type === 'oxid-module') { + $this->prepareVendorDirectory($installPath); + } + return $installPath; + } + + /** + * prepareVendorDirectory + * + * Makes sure there is a vendormetadata.php file inside + * the vendor folder if there is a vendor folder. + * + * @param string $installPath + * @return void + */ + protected function prepareVendorDirectory($installPath) + { + $matches = ''; + $hasVendorDirectory = preg_match(self::VENDOR_PATTERN, $installPath, $matches); + if (!$hasVendorDirectory) { + return; + } + + $vendorDirectory = $matches['vendor']; + $vendorPath = getcwd() . '/modules/' . $vendorDirectory; + if (!file_exists($vendorPath)) { + mkdir($vendorPath, 0755, true); + } + + $vendorMetaDataPath = $vendorPath . '/vendormetadata.php'; + touch($vendorMetaDataPath); + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php b/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php new file mode 100644 index 00000000000..170136f9840 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php @@ -0,0 +1,9 @@ + 'modules/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php b/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php new file mode 100644 index 00000000000..4e59a8a74f7 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php @@ -0,0 +1,11 @@ + 'bundles/{$name}/', + 'library' => 'libraries/{$name}/', + 'framework' => 'frameworks/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php b/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php new file mode 100644 index 00000000000..deb2b77a67e --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php @@ -0,0 +1,11 @@ + 'ext/{$vendor}/{$name}/', + 'language' => 'language/{$name}/', + 'style' => 'styles/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php b/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php new file mode 100644 index 00000000000..4781fa6d107 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php @@ -0,0 +1,21 @@ + 'plugins/{$name}/', + ); + + /** + * Format package name to CamelCase + */ + public function inflectPackageVars($vars) + { + $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); + $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php b/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php new file mode 100644 index 00000000000..c17f4572b32 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php @@ -0,0 +1,32 @@ + 'plugins/{$name}/', + ); + + /** + * Format package name to CamelCase + * @param array $vars + * + * @return array + */ + public function inflectPackageVars($vars) + { + $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); + $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php b/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php new file mode 100644 index 00000000000..903e55f62c1 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php @@ -0,0 +1,29 @@ + '{$name}/' + ); + + /** + * Remove hyphen, "plugin" and format to camelcase + * @param array $vars + * + * @return array + */ + public function inflectPackageVars($vars) + { + $vars['name'] = explode("-", $vars['name']); + foreach ($vars['name'] as $key => $name) { + $vars['name'][$key] = ucfirst($vars['name'][$key]); + if (strcasecmp($name, "Plugin") == 0) { + unset($vars['name'][$key]); + } + } + $vars['name'] = implode("",$vars['name']); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/Plugin.php b/vendor/composer/installers/src/Composer/Installers/Plugin.php new file mode 100644 index 00000000000..5eb04af1735 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/Plugin.php @@ -0,0 +1,17 @@ +getInstallationManager()->addInstaller($installer); + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php b/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php new file mode 100644 index 00000000000..dbf85e635e8 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php @@ -0,0 +1,9 @@ + 'app/Containers/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php b/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php new file mode 100644 index 00000000000..4c8421e3640 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php @@ -0,0 +1,10 @@ + 'modules/{$name}/', + 'theme' => 'themes/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php b/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php new file mode 100644 index 00000000000..77cc3dd8777 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php @@ -0,0 +1,11 @@ + 'modules/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php b/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php new file mode 100644 index 00000000000..65510580e13 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php @@ -0,0 +1,63 @@ + 'app/Modules/{$name}/', + 'theme' => 'themes/{$name}/', + ); + + /** + * Format package name. + * + * @param array $vars + * + * @return array + */ + public function inflectPackageVars($vars) + { + if ($vars['type'] === 'pxcms-module') { + return $this->inflectModuleVars($vars); + } + + if ($vars['type'] === 'pxcms-theme') { + return $this->inflectThemeVars($vars); + } + + return $vars; + } + + /** + * For package type pxcms-module, cut off a trailing '-plugin' if present. + * + * return string + */ + protected function inflectModuleVars($vars) + { + $vars['name'] = str_replace('pxcms-', '', $vars['name']); // strip out pxcms- just incase (legacy) + $vars['name'] = str_replace('module-', '', $vars['name']); // strip out module- + $vars['name'] = preg_replace('/-module$/', '', $vars['name']); // strip out -module + $vars['name'] = str_replace('-', '_', $vars['name']); // make -'s be _'s + $vars['name'] = ucwords($vars['name']); // make module name camelcased + + return $vars; + } + + + /** + * For package type pxcms-module, cut off a trailing '-plugin' if present. + * + * return string + */ + protected function inflectThemeVars($vars) + { + $vars['name'] = str_replace('pxcms-', '', $vars['name']); // strip out pxcms- just incase (legacy) + $vars['name'] = str_replace('theme-', '', $vars['name']); // strip out theme- + $vars['name'] = preg_replace('/-theme$/', '', $vars['name']); // strip out -theme + $vars['name'] = str_replace('-', '_', $vars['name']); // make -'s be _'s + $vars['name'] = ucwords($vars['name']); // make module name camelcased + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php b/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php new file mode 100644 index 00000000000..0f78b5ca649 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php @@ -0,0 +1,24 @@ + 'src/{$name}/' + ); + + /** + * Format package name to CamelCase + */ + public function inflectPackageVars($vars) + { + $nameParts = explode('/', $vars['name']); + foreach ($nameParts as &$value) { + $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value)); + $value = str_replace(array('-', '_'), ' ', $value); + $value = str_replace(' ', '', ucwords($value)); + } + $vars['name'] = implode('/', $nameParts); + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php b/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php new file mode 100644 index 00000000000..252c7339f92 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php @@ -0,0 +1,10 @@ + 'themes/{$name}/', + 'plugin' => 'plugins/{$name}/' + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php b/vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php new file mode 100644 index 00000000000..23a20347eff --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php @@ -0,0 +1,10 @@ + 'redaxo/src/addons/{$name}/', + 'bestyle-plugin' => 'redaxo/src/addons/be_style/plugins/{$name}/' + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php b/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php new file mode 100644 index 00000000000..09544576b20 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php @@ -0,0 +1,10 @@ + 'redaxo/include/addons/{$name}/', + 'bestyle-plugin' => 'redaxo/include/addons/be_style/plugins/{$name}/' + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php b/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php new file mode 100644 index 00000000000..d8d795be097 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php @@ -0,0 +1,22 @@ + 'plugins/{$name}/', + ); + + /** + * Lowercase name and changes the name to a underscores + * + * @param array $vars + * @return array + */ + public function inflectPackageVars($vars) + { + $vars['name'] = strtolower(str_replace('-', '_', $vars['name'])); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php b/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php new file mode 100644 index 00000000000..1acd3b14c38 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php @@ -0,0 +1,10 @@ + 'Sources/{$name}/', + 'theme' => 'Themes/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php b/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php new file mode 100644 index 00000000000..7d20d27a228 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php @@ -0,0 +1,60 @@ + 'engine/Shopware/Plugins/Local/Backend/{$name}/', + 'core-plugin' => 'engine/Shopware/Plugins/Local/Core/{$name}/', + 'frontend-plugin' => 'engine/Shopware/Plugins/Local/Frontend/{$name}/', + 'theme' => 'templates/{$name}/', + 'plugin' => 'custom/plugins/{$name}/', + 'frontend-theme' => 'themes/Frontend/{$name}/', + ); + + /** + * Transforms the names + * @param array $vars + * @return array + */ + public function inflectPackageVars($vars) + { + if ($vars['type'] === 'shopware-theme') { + return $this->correctThemeName($vars); + } + + return $this->correctPluginName($vars); + } + + /** + * Changes the name to a camelcased combination of vendor and name + * @param array $vars + * @return array + */ + private function correctPluginName($vars) + { + $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) { + return strtoupper($matches[0][1]); + }, $vars['name']); + + $vars['name'] = ucfirst($vars['vendor']) . ucfirst($camelCasedName); + + return $vars; + } + + /** + * Changes the name to a underscore separated name + * @param array $vars + * @return array + */ + private function correctThemeName($vars) + { + $vars['name'] = str_replace('-', '_', $vars['name']); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php b/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php new file mode 100644 index 00000000000..81910e9f162 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php @@ -0,0 +1,35 @@ + '{$name}/', + 'theme' => 'themes/{$name}/', + ); + + /** + * Return the install path based on package type. + * + * Relies on built-in BaseInstaller behaviour with one exception: silverstripe/framework + * must be installed to 'sapphire' and not 'framework' if the version is <3.0.0 + * + * @param PackageInterface $package + * @param string $frameworkType + * @return string + */ + public function getInstallPath(PackageInterface $package, $frameworkType = '') + { + if ( + $package->getName() == 'silverstripe/framework' + && preg_match('/^\d+\.\d+\.\d+/', $package->getVersion()) + && version_compare($package->getVersion(), '2.999.999') < 0 + ) { + return $this->templatePath($this->locations['module'], array('name' => 'sapphire')); + } + + return parent::getInstallPath($package, $frameworkType); + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php b/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php new file mode 100644 index 00000000000..762d94c687d --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php @@ -0,0 +1,25 @@ + 'modules/{$vendor}/{$name}/', + 'plugin' => 'plugins/{$vendor}/{$name}/' + ); + + public function inflectPackageVars($vars) + { + return $this->parseVars($vars); + } + + protected function parseVars($vars) + { + $vars['vendor'] = strtolower($vars['vendor']) == 'sitedirect' ? 'SiteDirect' : $vars['vendor']; + $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php b/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php new file mode 100644 index 00000000000..83ef9d09160 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php @@ -0,0 +1,49 @@ + 'app/modules/{$name}/', + 'theme' => 'themes/{$name}/', + ); + + /** + * Format module name. + * + * Strip `sydes-` prefix and a trailing '-theme' or '-module' from package name if present. + * + * @param array @vars + * + * @return array + */ + public function inflectPackageVars($vars) + { + if ($vars['type'] == 'sydes-module') { + return $this->inflectModuleVars($vars); + } + + if ($vars['type'] === 'sydes-theme') { + return $this->inflectThemeVars($vars); + } + + return $vars; + } + + public function inflectModuleVars($vars) + { + $vars['name'] = preg_replace('/(^sydes-|-module$)/i', '', $vars['name']); + $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } + + protected function inflectThemeVars($vars) + { + $vars['name'] = preg_replace('/(^sydes-|-theme$)/', '', $vars['name']); + $vars['name'] = strtolower($vars['name']); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php b/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php new file mode 100644 index 00000000000..1675c4f213b --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php @@ -0,0 +1,26 @@ + + */ +class Symfony1Installer extends BaseInstaller +{ + protected $locations = array( + 'plugin' => 'plugins/{$name}/', + ); + + /** + * Format package name to CamelCase + */ + public function inflectPackageVars($vars) + { + $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) { + return strtoupper($matches[0][1]); + }, $vars['name']); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php b/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php new file mode 100644 index 00000000000..b1663e84369 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php @@ -0,0 +1,16 @@ + + */ +class TYPO3CmsInstaller extends BaseInstaller +{ + protected $locations = array( + 'extension' => 'typo3conf/ext/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php b/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php new file mode 100644 index 00000000000..42572f44f56 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php @@ -0,0 +1,38 @@ + 'Packages/Application/{$name}/', + 'framework' => 'Packages/Framework/{$name}/', + 'plugin' => 'Packages/Plugins/{$name}/', + 'site' => 'Packages/Sites/{$name}/', + 'boilerplate' => 'Packages/Boilerplates/{$name}/', + 'build' => 'Build/{$name}/', + ); + + /** + * Modify the package name to be a TYPO3 Flow style key. + * + * @param array $vars + * @return array + */ + public function inflectPackageVars($vars) + { + $autoload = $this->package->getAutoload(); + if (isset($autoload['psr-0']) && is_array($autoload['psr-0'])) { + $namespace = key($autoload['psr-0']); + $vars['name'] = str_replace('\\', '.', $namespace); + } + if (isset($autoload['psr-4']) && is_array($autoload['psr-4'])) { + $namespace = key($autoload['psr-4']); + $vars['name'] = rtrim(str_replace('\\', '.', $namespace), '.'); + } + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php b/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php new file mode 100644 index 00000000000..108def151dd --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php @@ -0,0 +1,12 @@ + '{$name}' + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php b/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php new file mode 100644 index 00000000000..158af52610b --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php @@ -0,0 +1,12 @@ + 'local/modules/{$name}/', + 'frontoffice-template' => 'templates/frontOffice/{$name}/', + 'backoffice-template' => 'templates/backOffice/{$name}/', + 'email-template' => 'templates/email/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php b/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php new file mode 100644 index 00000000000..7c0113b85a6 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php @@ -0,0 +1,14 @@ + + */ + class TuskInstaller extends BaseInstaller + { + protected $locations = array( + 'task' => '.tusk/tasks/{$name}/', + 'command' => '.tusk/commands/{$name}/', + 'asset' => 'assets/tusk/{$name}/', + ); + } diff --git a/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php b/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php new file mode 100644 index 00000000000..fcb414ab715 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php @@ -0,0 +1,9 @@ + 'app/sprinkles/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php b/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php new file mode 100644 index 00000000000..24ca645129b --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php @@ -0,0 +1,10 @@ + 'plugins/{$name}/', + 'theme' => 'themes/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php b/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php new file mode 100644 index 00000000000..7d90c5e6e3f --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php @@ -0,0 +1,49 @@ + 'src/{$vendor}/{$name}/', + 'theme' => 'themes/{$name}/' + ); + + /** + * Format package name. + * + * For package type vgmcp-bundle, cut off a trailing '-bundle' if present. + * + * For package type vgmcp-theme, cut off a trailing '-theme' if present. + * + */ + public function inflectPackageVars($vars) + { + if ($vars['type'] === 'vgmcp-bundle') { + return $this->inflectPluginVars($vars); + } + + if ($vars['type'] === 'vgmcp-theme') { + return $this->inflectThemeVars($vars); + } + + return $vars; + } + + protected function inflectPluginVars($vars) + { + $vars['name'] = preg_replace('/-bundle$/', '', $vars['name']); + $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } + + protected function inflectThemeVars($vars) + { + $vars['name'] = preg_replace('/-theme$/', '', $vars['name']); + $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } +} diff --git a/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php b/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php new file mode 100644 index 00000000000..b65dbbafd36 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php @@ -0,0 +1,21 @@ + 'modules/addons/{$vendor}_{$name}/', + 'fraud' => 'modules/fraud/{$vendor}_{$name}/', + 'gateways' => 'modules/gateways/{$vendor}_{$name}/', + 'notifications' => 'modules/notifications/{$vendor}_{$name}/', + 'registrars' => 'modules/registrars/{$vendor}_{$name}/', + 'reports' => 'modules/reports/{$vendor}_{$name}/', + 'security' => 'modules/security/{$vendor}_{$name}/', + 'servers' => 'modules/servers/{$vendor}_{$name}/', + 'social' => 'modules/social/{$vendor}_{$name}/', + 'support' => 'modules/support/{$vendor}_{$name}/', + 'templates' => 'templates/{$vendor}_{$name}/', + 'includes' => 'includes/{$vendor}_{$name}/' + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php b/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php new file mode 100644 index 00000000000..cb387881dc9 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php @@ -0,0 +1,9 @@ + 'wolf/plugins/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php b/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php new file mode 100644 index 00000000000..91c46ad9961 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php @@ -0,0 +1,12 @@ + 'wp-content/plugins/{$name}/', + 'theme' => 'wp-content/themes/{$name}/', + 'muplugin' => 'wp-content/mu-plugins/{$name}/', + 'dropin' => 'wp-content/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php b/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php new file mode 100644 index 00000000000..27f429ff218 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php @@ -0,0 +1,32 @@ + 'module/{$name}/', + ); + + /** + * Format package name to CamelCase + * @param array $vars + * + * @return array + */ + public function inflectPackageVars($vars) + { + $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); + $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); + $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); + + return $vars; + } +} \ No newline at end of file diff --git a/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php b/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php new file mode 100644 index 00000000000..bde9bc8c848 --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php @@ -0,0 +1,11 @@ + 'library/{$name}/', + 'extra' => 'extras/library/{$name}/', + 'module' => 'module/{$name}/', + ); +} diff --git a/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php b/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php new file mode 100644 index 00000000000..56cdf5da75d --- /dev/null +++ b/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php @@ -0,0 +1,10 @@ + 'modules/{$vendor}-{$name}/', + 'theme' => 'themes/{$vendor}-{$name}/' + ); +} diff --git a/vendor/composer/installers/src/bootstrap.php b/vendor/composer/installers/src/bootstrap.php new file mode 100644 index 00000000000..0de276ee26c --- /dev/null +++ b/vendor/composer/installers/src/bootstrap.php @@ -0,0 +1,13 @@ +