WordPress.org

Make WordPress Core

Ticket #36335: 36335.10.diff

File 36335.10.diff, 89.3 KB (added by wonderboymusic, 4 years ago)
  • src/vendor/autoload.php

     
     1<?php
     2
     3// autoload.php @generated by Composer
     4
     5require_once __DIR__ . '/composer' . '/autoload_real.php';
     6
     7return ComposerAutoloaderInit710c4d189b643946867e98aea6152d0f::getLoader();
  • src/vendor/autoload_52.php

     
     1<?php
     2
     3// autoload_52.php generated by xrstf/composer-php52
     4
     5require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
     6
     7return ComposerAutoloaderInitfe3f8ca3b3ba0d6b3d6b2528450949a7::getLoader();
  • src/vendor/composer/ClassLoader.php

     
     1<?php
     2
     3/*
     4 * This file is part of Composer.
     5 *
     6 * (c) Nils Adermann <naderman@naderman.de>
     7 *     Jordi Boggiano <j.boggiano@seld.be>
     8 *
     9 * For the full copyright and license information, please view the LICENSE
     10 * file that was distributed with this source code.
     11 */
     12
     13namespace Composer\Autoload;
     14
     15/**
     16 * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
     17 *
     18 *     $loader = new \Composer\Autoload\ClassLoader();
     19 *
     20 *     // register classes with namespaces
     21 *     $loader->add('Symfony\Component', __DIR__.'/component');
     22 *     $loader->add('Symfony',           __DIR__.'/framework');
     23 *
     24 *     // activate the autoloader
     25 *     $loader->register();
     26 *
     27 *     // to enable searching the include path (eg. for PEAR packages)
     28 *     $loader->setUseIncludePath(true);
     29 *
     30 * In this example, if you try to use a class in the Symfony\Component
     31 * namespace or one of its children (Symfony\Component\Console for instance),
     32 * the autoloader will first look for the class under the component/
     33 * directory, and it will then fallback to the framework/ directory if not
     34 * found before giving up.
     35 *
     36 * This class is loosely based on the Symfony UniversalClassLoader.
     37 *
     38 * @author Fabien Potencier <fabien@symfony.com>
     39 * @author Jordi Boggiano <j.boggiano@seld.be>
     40 * @see    http://www.php-fig.org/psr/psr-0/
     41 * @see    http://www.php-fig.org/psr/psr-4/
     42 */
     43class ClassLoader
     44{
     45    // PSR-4
     46    private $prefixLengthsPsr4 = array();
     47    private $prefixDirsPsr4 = array();
     48    private $fallbackDirsPsr4 = array();
     49
     50    // PSR-0
     51    private $prefixesPsr0 = array();
     52    private $fallbackDirsPsr0 = array();
     53
     54    private $useIncludePath = false;
     55    private $classMap = array();
     56
     57    private $classMapAuthoritative = false;
     58
     59    public function getPrefixes()
     60    {
     61        if (!empty($this->prefixesPsr0)) {
     62            return call_user_func_array('array_merge', $this->prefixesPsr0);
     63        }
     64
     65        return array();
     66    }
     67
     68    public function getPrefixesPsr4()
     69    {
     70        return $this->prefixDirsPsr4;
     71    }
     72
     73    public function getFallbackDirs()
     74    {
     75        return $this->fallbackDirsPsr0;
     76    }
     77
     78    public function getFallbackDirsPsr4()
     79    {
     80        return $this->fallbackDirsPsr4;
     81    }
     82
     83    public function getClassMap()
     84    {
     85        return $this->classMap;
     86    }
     87
     88    /**
     89     * @param array $classMap Class to filename map
     90     */
     91    public function addClassMap(array $classMap)
     92    {
     93        if ($this->classMap) {
     94            $this->classMap = array_merge($this->classMap, $classMap);
     95        } else {
     96            $this->classMap = $classMap;
     97        }
     98    }
     99
     100    /**
     101     * Registers a set of PSR-0 directories for a given prefix, either
     102     * appending or prepending to the ones previously set for this prefix.
     103     *
     104     * @param string       $prefix  The prefix
     105     * @param array|string $paths   The PSR-0 root directories
     106     * @param bool         $prepend Whether to prepend the directories
     107     */
     108    public function add($prefix, $paths, $prepend = false)
     109    {
     110        if (!$prefix) {
     111            if ($prepend) {
     112                $this->fallbackDirsPsr0 = array_merge(
     113                    (array) $paths,
     114                    $this->fallbackDirsPsr0
     115                );
     116            } else {
     117                $this->fallbackDirsPsr0 = array_merge(
     118                    $this->fallbackDirsPsr0,
     119                    (array) $paths
     120                );
     121            }
     122
     123            return;
     124        }
     125
     126        $first = $prefix[0];
     127        if (!isset($this->prefixesPsr0[$first][$prefix])) {
     128            $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     129
     130            return;
     131        }
     132        if ($prepend) {
     133            $this->prefixesPsr0[$first][$prefix] = array_merge(
     134                (array) $paths,
     135                $this->prefixesPsr0[$first][$prefix]
     136            );
     137        } else {
     138            $this->prefixesPsr0[$first][$prefix] = array_merge(
     139                $this->prefixesPsr0[$first][$prefix],
     140                (array) $paths
     141            );
     142        }
     143    }
     144
     145    /**
     146     * Registers a set of PSR-4 directories for a given namespace, either
     147     * appending or prepending to the ones previously set for this namespace.
     148     *
     149     * @param string       $prefix  The prefix/namespace, with trailing '\\'
     150     * @param array|string $paths   The PSR-4 base directories
     151     * @param bool         $prepend Whether to prepend the directories
     152     *
     153     * @throws \InvalidArgumentException
     154     */
     155    public function addPsr4($prefix, $paths, $prepend = false)
     156    {
     157        if (!$prefix) {
     158            // Register directories for the root namespace.
     159            if ($prepend) {
     160                $this->fallbackDirsPsr4 = array_merge(
     161                    (array) $paths,
     162                    $this->fallbackDirsPsr4
     163                );
     164            } else {
     165                $this->fallbackDirsPsr4 = array_merge(
     166                    $this->fallbackDirsPsr4,
     167                    (array) $paths
     168                );
     169            }
     170        } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
     171            // Register directories for a new namespace.
     172            $length = strlen($prefix);
     173            if ('\\' !== $prefix[$length - 1]) {
     174                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
     175            }
     176            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
     177            $this->prefixDirsPsr4[$prefix] = (array) $paths;
     178        } elseif ($prepend) {
     179            // Prepend directories for an already registered namespace.
     180            $this->prefixDirsPsr4[$prefix] = array_merge(
     181                (array) $paths,
     182                $this->prefixDirsPsr4[$prefix]
     183            );
     184        } else {
     185            // Append directories for an already registered namespace.
     186            $this->prefixDirsPsr4[$prefix] = array_merge(
     187                $this->prefixDirsPsr4[$prefix],
     188                (array) $paths
     189            );
     190        }
     191    }
     192
     193    /**
     194     * Registers a set of PSR-0 directories for a given prefix,
     195     * replacing any others previously set for this prefix.
     196     *
     197     * @param string       $prefix The prefix
     198     * @param array|string $paths  The PSR-0 base directories
     199     */
     200    public function set($prefix, $paths)
     201    {
     202        if (!$prefix) {
     203            $this->fallbackDirsPsr0 = (array) $paths;
     204        } else {
     205            $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
     206        }
     207    }
     208
     209    /**
     210     * Registers a set of PSR-4 directories for a given namespace,
     211     * replacing any others previously set for this namespace.
     212     *
     213     * @param string       $prefix The prefix/namespace, with trailing '\\'
     214     * @param array|string $paths  The PSR-4 base directories
     215     *
     216     * @throws \InvalidArgumentException
     217     */
     218    public function setPsr4($prefix, $paths)
     219    {
     220        if (!$prefix) {
     221            $this->fallbackDirsPsr4 = (array) $paths;
     222        } else {
     223            $length = strlen($prefix);
     224            if ('\\' !== $prefix[$length - 1]) {
     225                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
     226            }
     227            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
     228            $this->prefixDirsPsr4[$prefix] = (array) $paths;
     229        }
     230    }
     231
     232    /**
     233     * Turns on searching the include path for class files.
     234     *
     235     * @param bool $useIncludePath
     236     */
     237    public function setUseIncludePath($useIncludePath)
     238    {
     239        $this->useIncludePath = $useIncludePath;
     240    }
     241
     242    /**
     243     * Can be used to check if the autoloader uses the include path to check
     244     * for classes.
     245     *
     246     * @return bool
     247     */
     248    public function getUseIncludePath()
     249    {
     250        return $this->useIncludePath;
     251    }
     252
     253    /**
     254     * Turns off searching the prefix and fallback directories for classes
     255     * that have not been registered with the class map.
     256     *
     257     * @param bool $classMapAuthoritative
     258     */
     259    public function setClassMapAuthoritative($classMapAuthoritative)
     260    {
     261        $this->classMapAuthoritative = $classMapAuthoritative;
     262    }
     263
     264    /**
     265     * Should class lookup fail if not found in the current class map?
     266     *
     267     * @return bool
     268     */
     269    public function isClassMapAuthoritative()
     270    {
     271        return $this->classMapAuthoritative;
     272    }
     273
     274    /**
     275     * Registers this instance as an autoloader.
     276     *
     277     * @param bool $prepend Whether to prepend the autoloader or not
     278     */
     279    public function register($prepend = false)
     280    {
     281        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     282    }
     283
     284    /**
     285     * Unregisters this instance as an autoloader.
     286     */
     287    public function unregister()
     288    {
     289        spl_autoload_unregister(array($this, 'loadClass'));
     290    }
     291
     292    /**
     293     * Loads the given class or interface.
     294     *
     295     * @param  string    $class The name of the class
     296     * @return bool|null True if loaded, null otherwise
     297     */
     298    public function loadClass($class)
     299    {
     300        if ($file = $this->findFile($class)) {
     301            includeFile($file);
     302
     303            return true;
     304        }
     305    }
     306
     307    /**
     308     * Finds the path to the file where the class is defined.
     309     *
     310     * @param string $class The name of the class
     311     *
     312     * @return string|false The path if found, false otherwise
     313     */
     314    public function findFile($class)
     315    {
     316        // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
     317        if ('\\' == $class[0]) {
     318            $class = substr($class, 1);
     319        }
     320
     321        // class map lookup
     322        if (isset($this->classMap[$class])) {
     323            return $this->classMap[$class];
     324        }
     325        if ($this->classMapAuthoritative) {
     326            return false;
     327        }
     328
     329        $file = $this->findFileWithExtension($class, '.php');
     330
     331        // Search for Hack files if we are running on HHVM
     332        if ($file === null && defined('HHVM_VERSION')) {
     333            $file = $this->findFileWithExtension($class, '.hh');
     334        }
     335
     336        if ($file === null) {
     337            // Remember that this class does not exist.
     338            return $this->classMap[$class] = false;
     339        }
     340
     341        return $file;
     342    }
     343
     344    private function findFileWithExtension($class, $ext)
     345    {
     346        // PSR-4 lookup
     347        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
     348
     349        $first = $class[0];
     350        if (isset($this->prefixLengthsPsr4[$first])) {
     351            foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
     352                if (0 === strpos($class, $prefix)) {
     353                    foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
     354                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
     355                            return $file;
     356                        }
     357                    }
     358                }
     359            }
     360        }
     361
     362        // PSR-4 fallback dirs
     363        foreach ($this->fallbackDirsPsr4 as $dir) {
     364            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
     365                return $file;
     366            }
     367        }
     368
     369        // PSR-0 lookup
     370        if (false !== $pos = strrpos($class, '\\')) {
     371            // namespaced class name
     372            $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
     373                . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
     374        } else {
     375            // PEAR-like class name
     376            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
     377        }
     378
     379        if (isset($this->prefixesPsr0[$first])) {
     380            foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
     381                if (0 === strpos($class, $prefix)) {
     382                    foreach ($dirs as $dir) {
     383                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
     384                            return $file;
     385                        }
     386                    }
     387                }
     388            }
     389        }
     390
     391        // PSR-0 fallback dirs
     392        foreach ($this->fallbackDirsPsr0 as $dir) {
     393            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
     394                return $file;
     395            }
     396        }
     397
     398        // PSR-0 include paths.
     399        if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
     400            return $file;
     401        }
     402    }
     403}
     404
     405/**
     406 * Scope isolated include.
     407 *
     408 * Prevents access to $this/self from included files.
     409 */
     410function includeFile($file)
     411{
     412    include $file;
     413}
  • src/vendor/composer/ClassLoader52.php

     
     1<?php
     2/*
     3 * Copyright (c) 2013, Christoph Mewes, http://www.xrstf.de
     4 *
     5 * This file is released under the terms of the MIT license. You can find the
     6 * complete text in the attached LICENSE file or online at:
     7 *
     8 * http://www.opensource.org/licenses/mit-license.php
     9 *
     10 * --------------------------------------------------------------------------
     11 *
     12 * 99% of this is copied as-is from the original Composer source code and is
     13 * released under MIT license as well. Copyright goes to:
     14 *
     15 * - Fabien Potencier <fabien@symfony.com>
     16 * - Jordi Boggiano <j.boggiano@seld.be>
     17 */
     18
     19class xrstf_Composer52_ClassLoader {
     20        private $prefixes              = array();
     21        private $fallbackDirs          = array();
     22        private $useIncludePath        = false;
     23        private $classMap              = array();
     24        private $classMapAuthoratative = false;
     25        private $allowUnderscore       = false;
     26
     27        /**
     28         * @param boolean $flag  true to allow class names with a leading underscore, false to disable
     29         */
     30        public function setAllowUnderscore($flag) {
     31                $this->allowUnderscore = (boolean) $flag;
     32        }
     33
     34        /**
     35         * @return array
     36         */
     37        public function getPrefixes() {
     38                return $this->prefixes;
     39        }
     40
     41        /**
     42         * Turns off searching the prefix and fallback directories for classes
     43         * that have not been registered with the class map.
     44         *
     45         * @param bool $classMapAuthoratative
     46         */
     47        public function setClassMapAuthoritative($classMapAuthoratative) {
     48                $this->classMapAuthoratative = $classMapAuthoratative;
     49        }
     50
     51        /**
     52         * Should class lookup fail if not found in the current class map?
     53         *
     54         * @return bool
     55         */
     56        public function getClassMapAuthoratative() {
     57                return $this->classMapAuthoratative;
     58        }
     59
     60        /**
     61         * @return array
     62         */
     63        public function getFallbackDirs() {
     64                return $this->fallbackDirs;
     65        }
     66
     67        /**
     68         * @return array
     69         */
     70        public function getClassMap() {
     71                return $this->classMap;
     72        }
     73
     74        /**
     75         * @param array $classMap  class to filename map
     76         */
     77        public function addClassMap(array $classMap) {
     78                if ($this->classMap) {
     79                        $this->classMap = array_merge($this->classMap, $classMap);
     80                }
     81                else {
     82                        $this->classMap = $classMap;
     83                }
     84        }
     85
     86        /**
     87         * Registers a set of classes, merging with any others previously set.
     88         *
     89         * @param string       $prefix   the classes prefix
     90         * @param array|string $paths    the location(s) of the classes
     91         * @param bool         $prepend  prepend the location(s)
     92         */
     93        public function add($prefix, $paths, $prepend = false) {
     94                if (!$prefix) {
     95                        if ($prepend) {
     96                                $this->fallbackDirs = array_merge(
     97                                        (array) $paths,
     98                                        $this->fallbackDirs
     99                                );
     100                        }
     101                        else {
     102                                $this->fallbackDirs = array_merge(
     103                                        $this->fallbackDirs,
     104                                        (array) $paths
     105                                );
     106                        }
     107
     108                        return;
     109                }
     110
     111                if (!isset($this->prefixes[$prefix])) {
     112                        $this->prefixes[$prefix] = (array) $paths;
     113                        return;
     114                }
     115
     116                if ($prepend) {
     117                        $this->prefixes[$prefix] = array_merge(
     118                                (array) $paths,
     119                                $this->prefixes[$prefix]
     120                        );
     121                }
     122                else {
     123                        $this->prefixes[$prefix] = array_merge(
     124                                $this->prefixes[$prefix],
     125                                (array) $paths
     126                        );
     127                }
     128        }
     129
     130        /**
     131         * Registers a set of classes, replacing any others previously set.
     132         *
     133         * @param string       $prefix  the classes prefix
     134         * @param array|string $paths   the location(s) of the classes
     135         */
     136        public function set($prefix, $paths) {
     137                if (!$prefix) {
     138                        $this->fallbackDirs = (array) $paths;
     139                        return;
     140                }
     141
     142                $this->prefixes[$prefix] = (array) $paths;
     143        }
     144
     145        /**
     146         * Turns on searching the include path for class files.
     147         *
     148         * @param bool $useIncludePath
     149         */
     150        public function setUseIncludePath($useIncludePath) {
     151                $this->useIncludePath = $useIncludePath;
     152        }
     153
     154        /**
     155         * Can be used to check if the autoloader uses the include path to check
     156         * for classes.
     157         *
     158         * @return bool
     159         */
     160        public function getUseIncludePath() {
     161                return $this->useIncludePath;
     162        }
     163
     164        /**
     165         * Registers this instance as an autoloader.
     166         */
     167        public function register() {
     168                spl_autoload_register(array($this, 'loadClass'), true);
     169        }
     170
     171        /**
     172         * Unregisters this instance as an autoloader.
     173         */
     174        public function unregister() {
     175                spl_autoload_unregister(array($this, 'loadClass'));
     176        }
     177
     178        /**
     179         * Loads the given class or interface.
     180         *
     181         * @param  string $class  the name of the class
     182         * @return bool|null      true, if loaded
     183         */
     184        public function loadClass($class) {
     185                if ($file = $this->findFile($class)) {
     186                        include $file;
     187                        return true;
     188                }
     189        }
     190
     191        /**
     192         * Finds the path to the file where the class is defined.
     193         *
     194         * @param  string $class  the name of the class
     195         * @return string|null    the path, if found
     196         */
     197        public function findFile($class) {
     198                if ('\\' === $class[0]) {
     199                        $class = substr($class, 1);
     200                }
     201
     202                if (isset($this->classMap[$class])) {
     203                        return $this->classMap[$class];
     204                }
     205                elseif ($this->classMapAuthoratative) {
     206                        return false;
     207                }
     208
     209                $classPath = $this->getClassPath($class);
     210
     211                foreach ($this->prefixes as $prefix => $dirs) {
     212                        if (0 === strpos($class, $prefix)) {
     213                                foreach ($dirs as $dir) {
     214                                        if (file_exists($dir.DIRECTORY_SEPARATOR.$classPath)) {
     215                                                return $dir.DIRECTORY_SEPARATOR.$classPath;
     216                                        }
     217                                }
     218                        }
     219                }
     220
     221                foreach ($this->fallbackDirs as $dir) {
     222                        if (file_exists($dir.DIRECTORY_SEPARATOR.$classPath)) {
     223                                return $dir.DIRECTORY_SEPARATOR.$classPath;
     224                        }
     225                }
     226
     227                if ($this->useIncludePath && $file = self::resolveIncludePath($classPath)) {
     228                        return $file;
     229                }
     230
     231                return $this->classMap[$class] = false;
     232        }
     233
     234        private function getClassPath($class) {
     235                if (false !== $pos = strrpos($class, '\\')) {
     236                        // namespaced class name
     237                        $classPath = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 0, $pos)).DIRECTORY_SEPARATOR;
     238                        $className = substr($class, $pos + 1);
     239                }
     240                else {
     241                        // PEAR-like class name
     242                        $classPath = null;
     243                        $className = $class;
     244                }
     245
     246                $className = str_replace('_', DIRECTORY_SEPARATOR, $className);
     247
     248                // restore the prefix
     249                if ($this->allowUnderscore && DIRECTORY_SEPARATOR === $className[0]) {
     250                        $className[0] = '_';
     251                }
     252
     253                $classPath .= $className.'.php';
     254
     255                return $classPath;
     256        }
     257
     258        public static function resolveIncludePath($classPath) {
     259                $paths = explode(PATH_SEPARATOR, get_include_path());
     260
     261                foreach ($paths as $path) {
     262                        $path = rtrim($path, '/\\');
     263
     264                        if ($file = file_exists($path.DIRECTORY_SEPARATOR.$file)) {
     265                                return $file;
     266                        }
     267                }
     268
     269                return false;
     270        }
     271}
  • src/vendor/composer/LICENSE

     
     1
     2Copyright (c) 2016 Nils Adermann, Jordi Boggiano
     3
     4Permission is hereby granted, free of charge, to any person obtaining a copy
     5of this software and associated documentation files (the "Software"), to deal
     6in the Software without restriction, including without limitation the rights
     7to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     8copies of the Software, and to permit persons to whom the Software is furnished
     9to do so, subject to the following conditions:
     10
     11The above copyright notice and this permission notice shall be included in all
     12copies or substantial portions of the Software.
     13
     14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     17AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     18LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     19OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     20THE SOFTWARE.
     21
  • src/vendor/composer/autoload_classmap.php

     
     1<?php
     2
     3// autoload_classmap.php @generated by Composer
     4
     5$vendorDir = dirname(dirname(__FILE__));
     6$baseDir = dirname(dirname($vendorDir));
     7
     8return array(
     9    'Automatic_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-automatic-upgrader-skin.php',
     10    'Bulk_Plugin_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php',
     11    'Bulk_Theme_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php',
     12    'Bulk_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-bulk-upgrader-skin.php',
     13    'Core_Upgrader' => $baseDir . '/src/wp-admin/includes/class-core-upgrader.php',
     14    'Custom_Background' => $baseDir . '/src/wp-admin/custom-background.php',
     15    'Custom_Image_Header' => $baseDir . '/src/wp-admin/custom-header.php',
     16    'File_Upload_Upgrader' => $baseDir . '/src/wp-admin/includes/class-file-upload-upgrader.php',
     17    'IXR_Base64' => $baseDir . '/src/wp-includes/IXR/class-IXR-base64.php',
     18    'IXR_Client' => $baseDir . '/src/wp-includes/IXR/class-IXR-client.php',
     19    'IXR_ClientMulticall' => $baseDir . '/src/wp-includes/IXR/class-IXR-clientmulticall.php',
     20    'IXR_Date' => $baseDir . '/src/wp-includes/IXR/class-IXR-date.php',
     21    'IXR_Error' => $baseDir . '/src/wp-includes/IXR/class-IXR-error.php',
     22    'IXR_IntrospectionServer' => $baseDir . '/src/wp-includes/IXR/class-IXR-introspectionserver.php',
     23    'IXR_Message' => $baseDir . '/src/wp-includes/IXR/class-IXR-message.php',
     24    'IXR_Request' => $baseDir . '/src/wp-includes/IXR/class-IXR-request.php',
     25    'IXR_Server' => $baseDir . '/src/wp-includes/IXR/class-IXR-server.php',
     26    'IXR_Value' => $baseDir . '/src/wp-includes/IXR/class-IXR-value.php',
     27    'Language_Pack_Upgrader' => $baseDir . '/src/wp-admin/includes/class-language-pack-upgrader.php',
     28    'Language_Pack_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-language-pack-upgrader-skin.php',
     29    'PHPMailer' => $baseDir . '/src/wp-includes/class-phpmailer.php',
     30    'POP3' => $baseDir . '/src/wp-includes/class-pop3.php',
     31    'PasswordHash' => $baseDir . '/src/wp-includes/class-phpass.php',
     32    'PclZip' => $baseDir . '/src/wp-admin/includes/class-pclzip.php',
     33    'Plugin_Installer_Skin' => $baseDir . '/src/wp-admin/includes/class-plugin-installer-skin.php',
     34    'Plugin_Upgrader' => $baseDir . '/src/wp-admin/includes/class-plugin-upgrader.php',
     35    'Plugin_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-plugin-upgrader-skin.php',
     36    'Requests' => $baseDir . '/src/wp-includes/class-requests.php',
     37    'SMTP' => $baseDir . '/src/wp-includes/class-smtp.php',
     38    'Services_JSON' => $baseDir . '/src/wp-includes/class-json.php',
     39    'Services_JSON_Error' => $baseDir . '/src/wp-includes/class-json.php',
     40    'SimplePie' => $baseDir . '/src/wp-includes/class-simplepie.php',
     41    'Theme_Installer_Skin' => $baseDir . '/src/wp-admin/includes/class-theme-installer-skin.php',
     42    'Theme_Upgrader' => $baseDir . '/src/wp-admin/includes/class-theme-upgrader.php',
     43    'Theme_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-theme-upgrader-skin.php',
     44    'WP' => $baseDir . '/src/wp-includes/class-wp.php',
     45    'WP_Admin_Bar' => $baseDir . '/src/wp-includes/class-wp-admin-bar.php',
     46    'WP_Ajax_Response' => $baseDir . '/src/wp-includes/class-wp-ajax-response.php',
     47    'WP_Ajax_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-wp-ajax-upgrader-skin.php',
     48    'WP_Automatic_Updater' => $baseDir . '/src/wp-admin/includes/class-wp-automatic-updater.php',
     49    'WP_Comment' => $baseDir . '/src/wp-includes/class-wp-comment.php',
     50    'WP_Comment_Query' => $baseDir . '/src/wp-includes/class-wp-comment-query.php',
     51    'WP_Comments_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-comments-list-table.php',
     52    'WP_Customize_Background_Image_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-background-image-control.php',
     53    'WP_Customize_Background_Image_Setting' => $baseDir . '/src/wp-includes/customize/class-wp-customize-background-image-setting.php',
     54    'WP_Customize_Color_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-color-control.php',
     55    'WP_Customize_Control' => $baseDir . '/src/wp-includes/class-wp-customize-control.php',
     56    'WP_Customize_Cropped_Image_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-cropped-image-control.php',
     57    'WP_Customize_Filter_Setting' => $baseDir . '/src/wp-includes/customize/class-wp-customize-filter-setting.php',
     58    'WP_Customize_Header_Image_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-header-image-control.php',
     59    'WP_Customize_Header_Image_Setting' => $baseDir . '/src/wp-includes/customize/class-wp-customize-header-image-setting.php',
     60    'WP_Customize_Image_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-image-control.php',
     61    'WP_Customize_Manager' => $baseDir . '/src/wp-includes/class-wp-customize-manager.php',
     62    'WP_Customize_Media_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-media-control.php',
     63    'WP_Customize_Nav_Menu_Auto_Add_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-auto-add-control.php',
     64    'WP_Customize_Nav_Menu_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-control.php',
     65    'WP_Customize_Nav_Menu_Item_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php',
     66    'WP_Customize_Nav_Menu_Item_Setting' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php',
     67    'WP_Customize_Nav_Menu_Location_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-location-control.php',
     68    'WP_Customize_Nav_Menu_Name_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-name-control.php',
     69    'WP_Customize_Nav_Menu_Section' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-section.php',
     70    'WP_Customize_Nav_Menu_Setting' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php',
     71    'WP_Customize_Nav_Menus' => $baseDir . '/src/wp-includes/class-wp-customize-nav-menus.php',
     72    'WP_Customize_Nav_Menus_Panel' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menus-panel.php',
     73    'WP_Customize_New_Menu_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-new-menu-control.php',
     74    'WP_Customize_New_Menu_Section' => $baseDir . '/src/wp-includes/customize/class-wp-customize-new-menu-section.php',
     75    'WP_Customize_Panel' => $baseDir . '/src/wp-includes/class-wp-customize-panel.php',
     76    'WP_Customize_Partial' => $baseDir . '/src/wp-includes/customize/class-wp-customize-partial.php',
     77    'WP_Customize_Section' => $baseDir . '/src/wp-includes/class-wp-customize-section.php',
     78    'WP_Customize_Selective_Refresh' => $baseDir . '/src/wp-includes/customize/class-wp-customize-selective-refresh.php',
     79    'WP_Customize_Setting' => $baseDir . '/src/wp-includes/class-wp-customize-setting.php',
     80    'WP_Customize_Sidebar_Section' => $baseDir . '/src/wp-includes/customize/class-wp-customize-sidebar-section.php',
     81    'WP_Customize_Site_Icon_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-site-icon-control.php',
     82    'WP_Customize_Theme_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-theme-control.php',
     83    'WP_Customize_Themes_Section' => $baseDir . '/src/wp-includes/customize/class-wp-customize-themes-section.php',
     84    'WP_Customize_Upload_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-upload-control.php',
     85    'WP_Customize_Widgets' => $baseDir . '/src/wp-includes/class-wp-customize-widgets.php',
     86    'WP_Date_Query' => $baseDir . '/src/wp-includes/date.php',
     87    'WP_Dependencies' => $baseDir . '/src/wp-includes/class.wp-dependencies.php',
     88    'WP_Embed' => $baseDir . '/src/wp-includes/class-wp-embed.php',
     89    'WP_Error' => $baseDir . '/src/wp-includes/class-wp-error.php',
     90    'WP_Feed_Cache' => $baseDir . '/src/wp-includes/class-wp-feed-cache.php',
     91    'WP_Feed_Cache_Transient' => $baseDir . '/src/wp-includes/class-wp-feed-cache-transient.php',
     92    'WP_Filesystem_Base' => $baseDir . '/src/wp-admin/includes/class-wp-filesystem-base.php',
     93    'WP_Filesystem_Direct' => $baseDir . '/src/wp-admin/includes/class-wp-filesystem-direct.php',
     94    'WP_Filesystem_FTPext' => $baseDir . '/src/wp-admin/includes/class-wp-filesystem-ftpext.php',
     95    'WP_Filesystem_SSH2' => $baseDir . '/src/wp-admin/includes/class-wp-filesystem-ssh2.php',
     96    'WP_Filesystem_ftpsockets' => $baseDir . '/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php',
     97    'WP_HTTP_Fsockopen' => $baseDir . '/src/wp-includes/class-wp-http-streams.php',
     98    'WP_HTTP_IXR_Client' => $baseDir . '/src/wp-includes/class-wp-http-ixr-client.php',
     99    'WP_HTTP_Proxy' => $baseDir . '/src/wp-includes/class-wp-http-proxy.php',
     100    'WP_HTTP_Requests_Response' => $baseDir . '/src/wp-includes/class-wp-http-requests-response.php',
     101    'WP_HTTP_Response' => $baseDir . '/src/wp-includes/class-wp-http-response.php',
     102    'WP_Http' => $baseDir . '/src/wp-includes/class-http.php',
     103    'WP_Http_Cookie' => $baseDir . '/src/wp-includes/class-wp-http-cookie.php',
     104    'WP_Http_Curl' => $baseDir . '/src/wp-includes/class-wp-http-curl.php',
     105    'WP_Http_Encoding' => $baseDir . '/src/wp-includes/class-wp-http-encoding.php',
     106    'WP_Http_Streams' => $baseDir . '/src/wp-includes/class-wp-http-streams.php',
     107    'WP_Image_Editor' => $baseDir . '/src/wp-includes/class-wp-image-editor.php',
     108    'WP_Image_Editor_GD' => $baseDir . '/src/wp-includes/class-wp-image-editor-gd.php',
     109    'WP_Image_Editor_Imagick' => $baseDir . '/src/wp-includes/class-wp-image-editor-imagick.php',
     110    'WP_Importer' => $baseDir . '/src/wp-admin/includes/class-wp-importer.php',
     111    'WP_Internal_Pointers' => $baseDir . '/src/wp-admin/includes/class-wp-internal-pointers.php',
     112    'WP_Links_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-links-list-table.php',
     113    'WP_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-list-table.php',
     114    'WP_Locale' => $baseDir . '/src/wp-includes/class-wp-locale.php',
     115    'WP_MS_Sites_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-ms-sites-list-table.php',
     116    'WP_MS_Themes_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-ms-themes-list-table.php',
     117    'WP_MS_Users_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-ms-users-list-table.php',
     118    'WP_MatchesMapRegex' => $baseDir . '/src/wp-includes/class-wp-matchesmapregex.php',
     119    'WP_Media_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-media-list-table.php',
     120    'WP_Meta_Query' => $baseDir . '/src/wp-includes/class-wp-meta-query.php',
     121    'WP_Metadata_Lazyloader' => $baseDir . '/src/wp-includes/class-wp-metadata-lazyloader.php',
     122    'WP_Nav_Menu_Widget' => $baseDir . '/src/wp-includes/widgets/class-wp-nav-menu-widget.php',
     123    'WP_Network' => $baseDir . '/src/wp-includes/class-wp-network.php',
     124    'WP_Network_Query' => $baseDir . '/src/wp-includes/class-wp-network-query.php',
     125    'WP_Plugin_Install_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-plugin-install-list-table.php',
     126    'WP_Plugins_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-plugins-list-table.php',
     127    'WP_Post' => $baseDir . '/src/wp-includes/class-wp-post.php',
     128    'WP_Post_Comments_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-post-comments-list-table.php',
     129    'WP_Post_Type' => $baseDir . '/src/wp-includes/class-wp-post-type.php',
     130    'WP_Posts_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-posts-list-table.php',
     131    'WP_Press_This' => $baseDir . '/src/wp-admin/includes/class-wp-press-this.php',
     132    'WP_Query' => $baseDir . '/src/wp-includes/class-wp-query.php',
     133    'WP_REST_Request' => $baseDir . '/src/wp-includes/rest-api/class-wp-rest-request.php',
     134    'WP_REST_Response' => $baseDir . '/src/wp-includes/rest-api/class-wp-rest-response.php',
     135    'WP_REST_Server' => $baseDir . '/src/wp-includes/rest-api/class-wp-rest-server.php',
     136    'WP_Rewrite' => $baseDir . '/src/wp-includes/class-wp-rewrite.php',
     137    'WP_Role' => $baseDir . '/src/wp-includes/class-wp-role.php',
     138    'WP_Roles' => $baseDir . '/src/wp-includes/class-wp-roles.php',
     139    'WP_Screen' => $baseDir . '/src/wp-admin/includes/class-wp-screen.php',
     140    'WP_Scripts' => $baseDir . '/src/wp-includes/class.wp-scripts.php',
     141    'WP_Session_Tokens' => $baseDir . '/src/wp-includes/class-wp-session-tokens.php',
     142    'WP_SimplePie_File' => $baseDir . '/src/wp-includes/class-wp-simplepie-file.php',
     143    'WP_SimplePie_Sanitize_KSES' => $baseDir . '/src/wp-includes/class-wp-simplepie-sanitize-kses.php',
     144    'WP_Site' => $baseDir . '/src/wp-includes/class-wp-site.php',
     145    'WP_Site_Icon' => $baseDir . '/src/wp-admin/includes/class-wp-site-icon.php',
     146    'WP_Site_Query' => $baseDir . '/src/wp-includes/class-wp-site-query.php',
     147    'WP_Styles' => $baseDir . '/src/wp-includes/class.wp-styles.php',
     148    'WP_Tax_Query' => $baseDir . '/src/wp-includes/class-wp-tax-query.php',
     149    'WP_Term' => $baseDir . '/src/wp-includes/class-wp-term.php',
     150    'WP_Term_Query' => $baseDir . '/src/wp-includes/class-wp-term-query.php',
     151    'WP_Terms_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-terms-list-table.php',
     152    'WP_Text_Diff_Renderer_Table' => $baseDir . '/src/wp-includes/class-wp-text-diff-renderer-table.php',
     153    'WP_Text_Diff_Renderer_inline' => $baseDir . '/src/wp-includes/class-wp-text-diff-renderer-inline.php',
     154    'WP_Theme' => $baseDir . '/src/wp-includes/class-wp-theme.php',
     155    'WP_Theme_Install_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-theme-install-list-table.php',
     156    'WP_Themes_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-themes-list-table.php',
     157    'WP_Upgrader' => $baseDir . '/src/wp-admin/includes/class-wp-upgrader.php',
     158    'WP_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-wp-upgrader-skin.php',
     159    'WP_User' => $baseDir . '/src/wp-includes/class-wp-user.php',
     160    'WP_User_Meta_Session_Tokens' => $baseDir . '/src/wp-includes/class-wp-user-meta-session-tokens.php',
     161    'WP_User_Query' => $baseDir . '/src/wp-includes/class-wp-user-query.php',
     162    'WP_Users_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-users-list-table.php',
     163    'WP_Widget' => $baseDir . '/src/wp-includes/class-wp-widget.php',
     164    'WP_Widget_Archives' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-archives.php',
     165    'WP_Widget_Area_Customize_Control' => $baseDir . '/src/wp-includes/customize/class-wp-widget-area-customize-control.php',
     166    'WP_Widget_Calendar' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-calendar.php',
     167    'WP_Widget_Categories' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-categories.php',
     168    'WP_Widget_Factory' => $baseDir . '/src/wp-includes/class-wp-widget-factory.php',
     169    'WP_Widget_Form_Customize_Control' => $baseDir . '/src/wp-includes/customize/class-wp-widget-form-customize-control.php',
     170    'WP_Widget_Links' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-links.php',
     171    'WP_Widget_Meta' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-meta.php',
     172    'WP_Widget_Pages' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-pages.php',
     173    'WP_Widget_RSS' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-rss.php',
     174    'WP_Widget_Recent_Comments' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-recent-comments.php',
     175    'WP_Widget_Recent_Posts' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-recent-posts.php',
     176    'WP_Widget_Search' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-search.php',
     177    'WP_Widget_Tag_Cloud' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-tag-cloud.php',
     178    'WP_Widget_Text' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-text.php',
     179    'WP_oEmbed' => $baseDir . '/src/wp-includes/class-oembed.php',
     180    'WP_oEmbed_Controller' => $baseDir . '/src/wp-includes/class-wp-oembed-controller.php',
     181    'Walker' => $baseDir . '/src/wp-includes/class-wp-walker.php',
     182    'Walker_Category' => $baseDir . '/src/wp-includes/class-walker-category.php',
     183    'Walker_CategoryDropdown' => $baseDir . '/src/wp-includes/class-walker-category-dropdown.php',
     184    'Walker_Category_Checklist' => $baseDir . '/src/wp-admin/includes/class-walker-category-checklist.php',
     185    'Walker_Comment' => $baseDir . '/src/wp-includes/class-walker-comment.php',
     186    'Walker_Nav_Menu' => $baseDir . '/src/wp-includes/class-walker-nav-menu.php',
     187    'Walker_Nav_Menu_Checklist' => $baseDir . '/src/wp-admin/includes/class-walker-nav-menu-checklist.php',
     188    'Walker_Nav_Menu_Edit' => $baseDir . '/src/wp-admin/includes/class-walker-nav-menu-edit.php',
     189    'Walker_Page' => $baseDir . '/src/wp-includes/class-walker-page.php',
     190    'Walker_PageDropdown' => $baseDir . '/src/wp-includes/class-walker-page-dropdown.php',
     191    '_WP_Dependency' => $baseDir . '/src/wp-includes/class-wp-dependency.php',
     192    '_WP_Editors' => $baseDir . '/src/wp-includes/class-wp-editor.php',
     193    '_WP_List_Table_Compat' => $baseDir . '/src/wp-admin/includes/class-wp-list-table-compat.php',
     194    'ftp' => $baseDir . '/src/wp-admin/includes/class-ftp.php',
     195    'ftp_base' => $baseDir . '/src/wp-admin/includes/class-ftp.php',
     196    'ftp_pure' => $baseDir . '/src/wp-admin/includes/class-ftp-pure.php',
     197    'ftp_sockets' => $baseDir . '/src/wp-admin/includes/class-ftp-sockets.php',
     198    'phpmailerException' => $baseDir . '/src/wp-includes/class-phpmailer.php',
     199    'wp_xmlrpc_server' => $baseDir . '/src/wp-includes/class-wp-xmlrpc-server.php',
     200    'wpdb' => $baseDir . '/src/wp-includes/wp-db.php',
     201);
  • src/vendor/composer/autoload_namespaces.php

     
     1<?php
     2
     3// autoload_namespaces.php @generated by Composer
     4
     5$vendorDir = dirname(dirname(__FILE__));
     6$baseDir = dirname(dirname($vendorDir));
     7
     8return array(
     9    'xrstf\\Composer52' => array($vendorDir . '/xrstf/composer-php52/lib'),
     10);
  • src/vendor/composer/autoload_psr4.php

     
     1<?php
     2
     3// autoload_psr4.php @generated by Composer
     4
     5$vendorDir = dirname(dirname(__FILE__));
     6$baseDir = dirname(dirname($vendorDir));
     7
     8return array(
     9);
  • src/vendor/composer/autoload_real.php

     
     1<?php
     2
     3// autoload_real.php @generated by Composer
     4
     5class ComposerAutoloaderInit710c4d189b643946867e98aea6152d0f
     6{
     7    private static $loader;
     8
     9    public static function loadClassLoader($class)
     10    {
     11        if ('Composer\Autoload\ClassLoader' === $class) {
     12            require __DIR__ . '/ClassLoader.php';
     13        }
     14    }
     15
     16    public static function getLoader()
     17    {
     18        if (null !== self::$loader) {
     19            return self::$loader;
     20        }
     21
     22        spl_autoload_register(array('ComposerAutoloaderInit710c4d189b643946867e98aea6152d0f', 'loadClassLoader'), true, true);
     23        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     24        spl_autoload_unregister(array('ComposerAutoloaderInit710c4d189b643946867e98aea6152d0f', 'loadClassLoader'));
     25
     26        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
     27        if ($useStaticLoader) {
     28            require_once __DIR__ . '/autoload_static.php';
     29
     30            call_user_func(\Composer\Autoload\ComposerStaticInit710c4d189b643946867e98aea6152d0f::getInitializer($loader));
     31        } else {
     32            $map = require __DIR__ . '/autoload_namespaces.php';
     33            foreach ($map as $namespace => $path) {
     34                $loader->set($namespace, $path);
     35            }
     36
     37            $map = require __DIR__ . '/autoload_psr4.php';
     38            foreach ($map as $namespace => $path) {
     39                $loader->setPsr4($namespace, $path);
     40            }
     41
     42            $classMap = require __DIR__ . '/autoload_classmap.php';
     43            if ($classMap) {
     44                $loader->addClassMap($classMap);
     45            }
     46        }
     47
     48        $loader->register(true);
     49
     50        return $loader;
     51    }
     52}
  • src/vendor/composer/autoload_real_52.php

     
     1<?php
     2
     3// autoload_real_52.php generated by xrstf/composer-php52
     4
     5class ComposerAutoloaderInitfe3f8ca3b3ba0d6b3d6b2528450949a7 {
     6        private static $loader;
     7
     8        public static function loadClassLoader($class) {
     9                if ('xrstf_Composer52_ClassLoader' === $class) {
     10                        require dirname(__FILE__).'/ClassLoader52.php';
     11                }
     12        }
     13
     14        /**
     15         * @return xrstf_Composer52_ClassLoader
     16         */
     17        public static function getLoader() {
     18                if (null !== self::$loader) {
     19                        return self::$loader;
     20                }
     21
     22                spl_autoload_register(array('ComposerAutoloaderInitfe3f8ca3b3ba0d6b3d6b2528450949a7', 'loadClassLoader'), true /*, true */);
     23                self::$loader = $loader = new xrstf_Composer52_ClassLoader();
     24                spl_autoload_unregister(array('ComposerAutoloaderInitfe3f8ca3b3ba0d6b3d6b2528450949a7', 'loadClassLoader'));
     25
     26                $vendorDir = dirname(dirname(__FILE__));
     27                $baseDir   = dirname(dirname($vendorDir));
     28                $dir       = dirname(__FILE__);
     29
     30                $map = require $dir.'/autoload_namespaces.php';
     31                foreach ($map as $namespace => $path) {
     32                        $loader->add($namespace, $path);
     33                }
     34
     35                $classMap = require $dir.'/autoload_classmap.php';
     36                if ($classMap) {
     37                        $loader->addClassMap($classMap);
     38                }
     39
     40                $loader->register(true);
     41
     42                return $loader;
     43        }
     44}
  • src/vendor/composer/autoload_static.php

     
     1<?php
     2
     3// autoload_static.php @generated by Composer
     4
     5namespace Composer\Autoload;
     6
     7class ComposerStaticInit710c4d189b643946867e98aea6152d0f
     8{
     9    public static $prefixesPsr0 = array (
     10        'x' =>
     11        array (
     12            'xrstf\\Composer52' =>
     13            array (
     14                0 => __DIR__ . '/..' . '/xrstf/composer-php52/lib',
     15            ),
     16        ),
     17    );
     18
     19    public static $classMap = array (
     20        'Automatic_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-automatic-upgrader-skin.php',
     21        'Bulk_Plugin_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php',
     22        'Bulk_Theme_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php',
     23        'Bulk_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-bulk-upgrader-skin.php',
     24        'Core_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-core-upgrader.php',
     25        'Custom_Background' => __DIR__ . '/../../..' . '/src/wp-admin/custom-background.php',
     26        'Custom_Image_Header' => __DIR__ . '/../../..' . '/src/wp-admin/custom-header.php',
     27        'File_Upload_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-file-upload-upgrader.php',
     28        'IXR_Base64' => __DIR__ . '/../../..' . '/src/wp-includes/IXR/class-IXR-base64.php',
     29        'IXR_Client' => __DIR__ . '/../../..' . '/src/wp-includes/IXR/class-IXR-client.php',
     30        'IXR_ClientMulticall' => __DIR__ . '/../../..' . '/src/wp-includes/IXR/class-IXR-clientmulticall.php',
     31        'IXR_Date' => __DIR__ . '/../../..' . '/src/wp-includes/IXR/class-IXR-date.php',
     32        'IXR_Error' => __DIR__ . '/../../..' . '/src/wp-includes/IXR/class-IXR-error.php',
     33        'IXR_IntrospectionServer' => __DIR__ . '/../../..' . '/src/wp-includes/IXR/class-IXR-introspectionserver.php',
     34        'IXR_Message' => __DIR__ . '/../../..' . '/src/wp-includes/IXR/class-IXR-message.php',
     35        'IXR_Request' => __DIR__ . '/../../..' . '/src/wp-includes/IXR/class-IXR-request.php',
     36        'IXR_Server' => __DIR__ . '/../../..' . '/src/wp-includes/IXR/class-IXR-server.php',
     37        'IXR_Value' => __DIR__ . '/../../..' . '/src/wp-includes/IXR/class-IXR-value.php',
     38        'Language_Pack_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-language-pack-upgrader.php',
     39        'Language_Pack_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-language-pack-upgrader-skin.php',
     40        'PHPMailer' => __DIR__ . '/../../..' . '/src/wp-includes/class-phpmailer.php',
     41        'POP3' => __DIR__ . '/../../..' . '/src/wp-includes/class-pop3.php',
     42        'PasswordHash' => __DIR__ . '/../../..' . '/src/wp-includes/class-phpass.php',
     43        'PclZip' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-pclzip.php',
     44        'Plugin_Installer_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-plugin-installer-skin.php',
     45        'Plugin_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-plugin-upgrader.php',
     46        'Plugin_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-plugin-upgrader-skin.php',
     47        'Requests' => __DIR__ . '/../../..' . '/src/wp-includes/class-requests.php',
     48        'SMTP' => __DIR__ . '/../../..' . '/src/wp-includes/class-smtp.php',
     49        'Services_JSON' => __DIR__ . '/../../..' . '/src/wp-includes/class-json.php',
     50        'Services_JSON_Error' => __DIR__ . '/../../..' . '/src/wp-includes/class-json.php',
     51        'SimplePie' => __DIR__ . '/../../..' . '/src/wp-includes/class-simplepie.php',
     52        'Theme_Installer_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-theme-installer-skin.php',
     53        'Theme_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-theme-upgrader.php',
     54        'Theme_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-theme-upgrader-skin.php',
     55        'WP' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp.php',
     56        'WP_Admin_Bar' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-admin-bar.php',
     57        'WP_Ajax_Response' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-ajax-response.php',
     58        'WP_Ajax_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-ajax-upgrader-skin.php',
     59        'WP_Automatic_Updater' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-automatic-updater.php',
     60        'WP_Comment' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-comment.php',
     61        'WP_Comment_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-comment-query.php',
     62        'WP_Comments_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-comments-list-table.php',
     63        'WP_Customize_Background_Image_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-background-image-control.php',
     64        'WP_Customize_Background_Image_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-background-image-setting.php',
     65        'WP_Customize_Color_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-color-control.php',
     66        'WP_Customize_Control' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-control.php',
     67        'WP_Customize_Cropped_Image_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-cropped-image-control.php',
     68        'WP_Customize_Filter_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-filter-setting.php',
     69        'WP_Customize_Header_Image_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-header-image-control.php',
     70        'WP_Customize_Header_Image_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-header-image-setting.php',
     71        'WP_Customize_Image_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-image-control.php',
     72        'WP_Customize_Manager' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-manager.php',
     73        'WP_Customize_Media_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-media-control.php',
     74        'WP_Customize_Nav_Menu_Auto_Add_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-auto-add-control.php',
     75        'WP_Customize_Nav_Menu_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-control.php',
     76        'WP_Customize_Nav_Menu_Item_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php',
     77        'WP_Customize_Nav_Menu_Item_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php',
     78        'WP_Customize_Nav_Menu_Location_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-location-control.php',
     79        'WP_Customize_Nav_Menu_Name_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-name-control.php',
     80        'WP_Customize_Nav_Menu_Section' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-section.php',
     81        'WP_Customize_Nav_Menu_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php',
     82        'WP_Customize_Nav_Menus' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-nav-menus.php',
     83        'WP_Customize_Nav_Menus_Panel' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menus-panel.php',
     84        'WP_Customize_New_Menu_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-new-menu-control.php',
     85        'WP_Customize_New_Menu_Section' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-new-menu-section.php',
     86        'WP_Customize_Panel' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-panel.php',
     87        'WP_Customize_Partial' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-partial.php',
     88        'WP_Customize_Section' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-section.php',
     89        'WP_Customize_Selective_Refresh' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-selective-refresh.php',
     90        'WP_Customize_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-setting.php',
     91        'WP_Customize_Sidebar_Section' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-sidebar-section.php',
     92        'WP_Customize_Site_Icon_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-site-icon-control.php',
     93        'WP_Customize_Theme_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-theme-control.php',
     94        'WP_Customize_Themes_Section' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-themes-section.php',
     95        'WP_Customize_Upload_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-upload-control.php',
     96        'WP_Customize_Widgets' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-widgets.php',
     97        'WP_Date_Query' => __DIR__ . '/../../..' . '/src/wp-includes/date.php',
     98        'WP_Dependencies' => __DIR__ . '/../../..' . '/src/wp-includes/class.wp-dependencies.php',
     99        'WP_Embed' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-embed.php',
     100        'WP_Error' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-error.php',
     101        'WP_Feed_Cache' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-feed-cache.php',
     102        'WP_Feed_Cache_Transient' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-feed-cache-transient.php',
     103        'WP_Filesystem_Base' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-filesystem-base.php',
     104        'WP_Filesystem_Direct' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-filesystem-direct.php',
     105        'WP_Filesystem_FTPext' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-filesystem-ftpext.php',
     106        'WP_Filesystem_SSH2' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-filesystem-ssh2.php',
     107        'WP_Filesystem_ftpsockets' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php',
     108        'WP_HTTP_Fsockopen' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-streams.php',
     109        'WP_HTTP_IXR_Client' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-ixr-client.php',
     110        'WP_HTTP_Proxy' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-proxy.php',
     111        'WP_HTTP_Requests_Response' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-requests-response.php',
     112        'WP_HTTP_Response' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-response.php',
     113        'WP_Http' => __DIR__ . '/../../..' . '/src/wp-includes/class-http.php',
     114        'WP_Http_Cookie' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-cookie.php',
     115        'WP_Http_Curl' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-curl.php',
     116        'WP_Http_Encoding' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-encoding.php',
     117        'WP_Http_Streams' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-streams.php',
     118        'WP_Image_Editor' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-image-editor.php',
     119        'WP_Image_Editor_GD' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-image-editor-gd.php',
     120        'WP_Image_Editor_Imagick' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-image-editor-imagick.php',
     121        'WP_Importer' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-importer.php',
     122        'WP_Internal_Pointers' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-internal-pointers.php',
     123        'WP_Links_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-links-list-table.php',
     124        'WP_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-list-table.php',
     125        'WP_Locale' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-locale.php',
     126        'WP_MS_Sites_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-ms-sites-list-table.php',
     127        'WP_MS_Themes_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-ms-themes-list-table.php',
     128        'WP_MS_Users_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-ms-users-list-table.php',
     129        'WP_MatchesMapRegex' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-matchesmapregex.php',
     130        'WP_Media_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-media-list-table.php',
     131        'WP_Meta_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-meta-query.php',
     132        'WP_Metadata_Lazyloader' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-metadata-lazyloader.php',
     133        'WP_Nav_Menu_Widget' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-nav-menu-widget.php',
     134        'WP_Network' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-network.php',
     135        'WP_Network_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-network-query.php',
     136        'WP_Plugin_Install_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-plugin-install-list-table.php',
     137        'WP_Plugins_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-plugins-list-table.php',
     138        'WP_Post' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-post.php',
     139        'WP_Post_Comments_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-post-comments-list-table.php',
     140        'WP_Post_Type' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-post-type.php',
     141        'WP_Posts_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-posts-list-table.php',
     142        'WP_Press_This' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-press-this.php',
     143        'WP_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-query.php',
     144        'WP_REST_Request' => __DIR__ . '/../../..' . '/src/wp-includes/rest-api/class-wp-rest-request.php',
     145        'WP_REST_Response' => __DIR__ . '/../../..' . '/src/wp-includes/rest-api/class-wp-rest-response.php',
     146        'WP_REST_Server' => __DIR__ . '/../../..' . '/src/wp-includes/rest-api/class-wp-rest-server.php',
     147        'WP_Rewrite' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-rewrite.php',
     148        'WP_Role' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-role.php',
     149        'WP_Roles' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-roles.php',
     150        'WP_Screen' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-screen.php',
     151        'WP_Scripts' => __DIR__ . '/../../..' . '/src/wp-includes/class.wp-scripts.php',
     152        'WP_Session_Tokens' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-session-tokens.php',
     153        'WP_SimplePie_File' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-simplepie-file.php',
     154        'WP_SimplePie_Sanitize_KSES' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-simplepie-sanitize-kses.php',
     155        'WP_Site' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-site.php',
     156        'WP_Site_Icon' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-site-icon.php',
     157        'WP_Site_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-site-query.php',
     158        'WP_Styles' => __DIR__ . '/../../..' . '/src/wp-includes/class.wp-styles.php',
     159        'WP_Tax_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-tax-query.php',
     160        'WP_Term' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-term.php',
     161        'WP_Term_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-term-query.php',
     162        'WP_Terms_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-terms-list-table.php',
     163        'WP_Text_Diff_Renderer_Table' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-text-diff-renderer-table.php',
     164        'WP_Text_Diff_Renderer_inline' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-text-diff-renderer-inline.php',
     165        'WP_Theme' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-theme.php',
     166        'WP_Theme_Install_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-theme-install-list-table.php',
     167        'WP_Themes_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-themes-list-table.php',
     168        'WP_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-upgrader.php',
     169        'WP_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-upgrader-skin.php',
     170        'WP_User' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-user.php',
     171        'WP_User_Meta_Session_Tokens' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-user-meta-session-tokens.php',
     172        'WP_User_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-user-query.php',
     173        'WP_Users_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-users-list-table.php',
     174        'WP_Widget' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-widget.php',
     175        'WP_Widget_Archives' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-archives.php',
     176        'WP_Widget_Area_Customize_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-widget-area-customize-control.php',
     177        'WP_Widget_Calendar' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-calendar.php',
     178        'WP_Widget_Categories' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-categories.php',
     179        'WP_Widget_Factory' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-widget-factory.php',
     180        'WP_Widget_Form_Customize_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-widget-form-customize-control.php',
     181        'WP_Widget_Links' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-links.php',
     182        'WP_Widget_Meta' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-meta.php',
     183        'WP_Widget_Pages' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-pages.php',
     184        'WP_Widget_RSS' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-rss.php',
     185        'WP_Widget_Recent_Comments' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-recent-comments.php',
     186        'WP_Widget_Recent_Posts' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-recent-posts.php',
     187        'WP_Widget_Search' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-search.php',
     188        'WP_Widget_Tag_Cloud' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-tag-cloud.php',
     189        'WP_Widget_Text' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-text.php',
     190        'WP_oEmbed' => __DIR__ . '/../../..' . '/src/wp-includes/class-oembed.php',
     191        'WP_oEmbed_Controller' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-oembed-controller.php',
     192        'Walker' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-walker.php',
     193        'Walker_Category' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-category.php',
     194        'Walker_CategoryDropdown' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-category-dropdown.php',
     195        'Walker_Category_Checklist' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-walker-category-checklist.php',
     196        'Walker_Comment' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-comment.php',
     197        'Walker_Nav_Menu' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-nav-menu.php',
     198        'Walker_Nav_Menu_Checklist' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-walker-nav-menu-checklist.php',
     199        'Walker_Nav_Menu_Edit' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-walker-nav-menu-edit.php',
     200        'Walker_Page' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-page.php',
     201        'Walker_PageDropdown' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-page-dropdown.php',
     202        '_WP_Dependency' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-dependency.php',
     203        '_WP_Editors' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-editor.php',
     204        '_WP_List_Table_Compat' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-list-table-compat.php',
     205        'ftp' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-ftp.php',
     206        'ftp_base' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-ftp.php',
     207        'ftp_pure' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-ftp-pure.php',
     208        'ftp_sockets' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-ftp-sockets.php',
     209        'phpmailerException' => __DIR__ . '/../../..' . '/src/wp-includes/class-phpmailer.php',
     210        'wp_xmlrpc_server' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-xmlrpc-server.php',
     211        'wpdb' => __DIR__ . '/../../..' . '/src/wp-includes/wp-db.php',
     212    );
     213
     214    public static function getInitializer(ClassLoader $loader)
     215    {
     216        return \Closure::bind(function () use ($loader) {
     217            $loader->prefixesPsr0 = ComposerStaticInit710c4d189b643946867e98aea6152d0f::$prefixesPsr0;
     218            $loader->classMap = ComposerStaticInit710c4d189b643946867e98aea6152d0f::$classMap;
     219
     220        }, null, ClassLoader::class);
     221    }
     222}
  • src/vendor/composer/installed.json

     
     1[
     2    {
     3        "name": "xrstf/composer-php52",
     4        "version": "v1.0.20",
     5        "version_normalized": "1.0.20.0",
     6        "source": {
     7            "type": "git",
     8            "url": "https://github.com/composer-php52/composer-php52.git",
     9            "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8"
     10        },
     11        "dist": {
     12            "type": "zip",
     13            "url": "https://api.github.com/repos/composer-php52/composer-php52/zipball/bd41459d5e27df8d33057842b32377c39e97a5a8",
     14            "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8",
     15            "shasum": ""
     16        },
     17        "time": "2016-04-16 21:52:24",
     18        "type": "library",
     19        "extra": {
     20            "branch-alias": {
     21                "dev-default": "1.x-dev"
     22            }
     23        },
     24        "installation-source": "dist",
     25        "autoload": {
     26            "psr-0": {
     27                "xrstf\\Composer52": "lib/"
     28            }
     29        },
     30        "notification-url": "https://packagist.org/downloads/",
     31        "license": [
     32            "MIT"
     33        ]
     34    }
     35]
  • src/vendor/xrstf/composer-php52/LICENSE

     
     1Copyright (c) 2013 Christoph Mewes
     2
     3Permission is hereby granted, free of charge, to any person obtaining a copy
     4of this software and associated documentation files (the "Software"), to deal
     5in the Software without restriction, including without limitation the rights
     6to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     7copies of the Software, and to permit persons to whom the Software is furnished
     8to do so, subject to the following conditions:
     9
     10The above copyright notice and this permission notice shall be included in all
     11copies or substantial portions of the Software.
     12
     13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     16AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     17LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     18OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     19THE SOFTWARE.
  • src/vendor/xrstf/composer-php52/README.md

     
     1PHP 5.2 Autoloading for Composer
     2================================
     3
     4This package provides an easy way to get a PHP 5.2 compatible autoloader out of Composer. The generated autoloader is fully compatible to the original and is written into separate files, each ending with `_52.php`.
     5
     6Legacy
     7------
     8
     9Please do not use this, if you can avoid it. It's a horrible hack, often breaks and is extremely tied to Composer's interna. This package was originally developed in 2012, when PHP 5.2 was much more common on cheap webhosts.
     10
     11In 2016, this package has been moved from Bitbucket to a Github organization, because the original developer could no longer reliably maintain it. This is the reason for this legacy package name ``xrstf/...``.
     12
     13Usage
     14-----
     15
     16In your project's `composer.json`, add the following lines:
     17
     18```json
     19{
     20    "require": {
     21        "xrstf/composer-php52": "1.*"
     22    },
     23    "scripts": {
     24        "post-install-cmd": [
     25            "xrstf\\Composer52\\Generator::onPostInstallCmd"
     26        ],
     27        "post-update-cmd": [
     28            "xrstf\\Composer52\\Generator::onPostInstallCmd"
     29        ],
     30        "post-autoload-dump": [
     31            "xrstf\\Composer52\\Generator::onPostInstallCmd"
     32        ]
     33    }
     34}
     35```
     36
     37After the next update/install, you will have a `vendor/autoload_52.php` file, that you can simply include and use in PHP 5.2 projects.
  • src/vendor/xrstf/composer-php52/composer.json

     
     1{
     2    "name": "xrstf/composer-php52",
     3    "license": "MIT",
     4    "support": {
     5        "source": "https://github.com/composer-php52/composer-php52",
     6        "issues": "https://github.com/composer-php52/composer-php52/issues"
     7    },
     8    "autoload": {
     9        "psr-0": {
     10            "xrstf\\Composer52": "lib/"
     11        }
     12    },
     13    "scripts": {
     14        "post-install-cmd": [
     15            "xrstf\\Composer52\\Generator::onPostInstallCmd"
     16        ],
     17        "post-update-cmd": [
     18            "xrstf\\Composer52\\Generator::onPostInstallCmd"
     19        ]
     20    },
     21    "extra": {
     22        "branch-alias": {
     23            "dev-default": "1.x-dev"
     24        }
     25    }
     26}
  • src/vendor/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php

     
     1<?php
     2/*
     3 * Copyright (c) 2013, Christoph Mewes, http://www.xrstf.de
     4 *
     5 * This file is released under the terms of the MIT license. You can find the
     6 * complete text in the attached LICENSE file or online at:
     7 *
     8 * http://www.opensource.org/licenses/mit-license.php
     9 *
     10 * --------------------------------------------------------------------------
     11 *
     12 * 99% of this is copied as-is from the original Composer source code and is
     13 * released under MIT license as well. Copyright goes to:
     14 *
     15 * - Igor Wiedler <igor@wiedler.ch>
     16 * - Jordi Boggiano <j.boggiano@seld.be>
     17 */
     18
     19namespace xrstf\Composer52;
     20
     21use Composer\Autoload\AutoloadGenerator as BaseGenerator;
     22use Composer\Autoload\ClassMapGenerator;
     23use Composer\Config;
     24use Composer\Installer\InstallationManager;
     25use Composer\Package\AliasPackage;
     26use Composer\Package\PackageInterface;
     27use Composer\Repository\InstalledRepositoryInterface;
     28use Composer\Util\Filesystem;
     29
     30class AutoloadGenerator extends BaseGenerator {
     31
     32        /**
     33         * @var bool
     34         */
     35        private $classMapAuthoritative = false;
     36
     37        public function __construct() {
     38                // do nothing (but keep this constructor so we can build an instance without the need for an event dispatcher)
     39        }
     40
     41        /**
     42         * Whether or not generated autoloader considers the class map
     43         * authoritative.
     44         *
     45         * @param bool $classMapAuthoritative
     46         */
     47        public function setClassMapAuthoritative($classMapAuthoritative)
     48        {
     49                $this->classMapAuthoritative = (boolean) $classMapAuthoritative;
     50        }
     51
     52        public function dump(Config $config, InstalledRepositoryInterface $localRepo, PackageInterface $mainPackage, InstallationManager $installationManager, $targetDir, $scanPsr0Packages = false, $suffix = '') {
     53                if ($this->classMapAuthoritative) {
     54                        // Force scanPsr0Packages when classmap is authoritative
     55                        $scanPsr0Packages = true;
     56                }
     57
     58                $filesystem = new Filesystem();
     59                $filesystem->ensureDirectoryExists($config->get('vendor-dir'));
     60
     61                $cwd        = getcwd();
     62                $basePath   = $filesystem->normalizePath($cwd);
     63                $vendorPath = $filesystem->normalizePath(realpath($config->get('vendor-dir')));
     64                $targetDir  = $vendorPath.'/'.$targetDir;
     65                $filesystem->ensureDirectoryExists($targetDir);
     66
     67                $useGlobalIncludePath  = (bool) $config->get('use-include-path');
     68                $prependAutoloader     = $config->get('prepend-autoloader') === false ? 'false' : 'true';
     69                $classMapAuthoritative = $config->get('classmap-authoritative');
     70
     71                $vendorPathCode            = $filesystem->findShortestPathCode(realpath($targetDir), $vendorPath, true);
     72                $vendorPathToTargetDirCode = $filesystem->findShortestPathCode($vendorPath, realpath($targetDir), true);
     73
     74                $appBaseDirCode = $filesystem->findShortestPathCode($vendorPath, $basePath, true);
     75                $appBaseDirCode = str_replace('__DIR__', '$vendorDir', $appBaseDirCode);
     76
     77                // add 5.2 compat
     78                $vendorPathCode            = str_replace('__DIR__', 'dirname(__FILE__)', $vendorPathCode);
     79                $vendorPathToTargetDirCode = str_replace('__DIR__', 'dirname(__FILE__)', $vendorPathToTargetDirCode);
     80
     81                $packageMap = $this->buildPackageMap($installationManager, $mainPackage, $localRepo->getCanonicalPackages());
     82                $autoloads = $this->parseAutoloads($packageMap, $mainPackage);
     83
     84                // add custom psr-0 autoloading if the root package has a target dir
     85                $targetDirLoader = null;
     86                $mainAutoload = $mainPackage->getAutoload();
     87                if ($mainPackage->getTargetDir() && !empty($mainAutoload['psr-0'])) {
     88                        $levels   = count(explode('/', $filesystem->normalizePath($mainPackage->getTargetDir())));
     89                        $prefixes = implode(', ', array_map(function ($prefix) {
     90                                return var_export($prefix, true);
     91                        }, array_keys($mainAutoload['psr-0'])));
     92
     93                        $baseDirFromTargetDirCode = $filesystem->findShortestPathCode($targetDir, $basePath, true);
     94
     95                        $targetDirLoader = <<<EOF
     96
     97        public static function autoload(\$class) {
     98                \$dir      = $baseDirFromTargetDirCode.'/';
     99                \$prefixes = array($prefixes);
     100
     101                foreach (\$prefixes as \$prefix) {
     102                        if (0 !== strpos(\$class, \$prefix)) {
     103                                continue;
     104                        }
     105
     106                        \$path = explode(DIRECTORY_SEPARATOR, self::getClassPath(\$class));
     107                        \$path = \$dir.implode('/', array_slice(\$path, $levels));
     108
     109                        if (!\$path = self::resolveIncludePath(\$path)) {
     110                                return false;
     111                        }
     112
     113                        require \$path;
     114                        return true;
     115                }
     116        }
     117
     118EOF;
     119                }
     120
     121                $filesCode = "";
     122                $autoloads['files'] = new \RecursiveIteratorIterator(new \RecursiveArrayIterator($autoloads['files']));
     123                foreach ($autoloads['files'] as $functionFile) {
     124                        // don't include file if it is using PHP 5.3+ syntax
     125                        // https://bitbucket.org/xrstf/composer-php52/issue/4
     126                        if ($this->isPHP53($functionFile)) {
     127                                $filesCode .= '//               require '.$this->getPathCode($filesystem, $basePath, $vendorPath, $functionFile)."; // disabled because of PHP 5.3 syntax\n";
     128                        }
     129                        else {
     130                                $filesCode .= '         require '.$this->getPathCode($filesystem, $basePath, $vendorPath, $functionFile).";\n";
     131                        }
     132                }
     133
     134                if (!$suffix) {
     135                        $suffix = md5(uniqid('', true));
     136                }
     137
     138                $includePathFile = $this->getIncludePathsFile($packageMap, $filesystem, $basePath, $vendorPath, $vendorPathCode, $appBaseDirCode);
     139
     140                file_put_contents($vendorPath.'/autoload_52.php', $this->getAutoloadFile($vendorPathToTargetDirCode, $suffix));
     141                file_put_contents($targetDir.'/autoload_real_52.php', $this->getAutoloadRealFile(true, (bool) $includePathFile, $targetDirLoader, $filesCode, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader));
     142
     143                // use stream_copy_to_stream instead of copy
     144                // to work around https://bugs.php.net/bug.php?id=64634
     145                $sourceLoader = fopen(__DIR__.'/ClassLoader.php', 'r');
     146                $targetLoader = fopen($targetDir.'/ClassLoader52.php', 'w+');
     147                stream_copy_to_stream($sourceLoader, $targetLoader);
     148                fclose($sourceLoader);
     149                fclose($targetLoader);
     150                unset($sourceLoader, $targetLoader);
     151        }
     152
     153        protected function isPHP53($file) {
     154                $tokens = token_get_all(file_get_contents($file));
     155                $php53  = array(T_DIR, T_GOTO, T_NAMESPACE, T_NS_C, T_NS_SEPARATOR, T_USE);
     156
     157                // PHP 5.4+
     158                if (defined('T_TRAIT')) {
     159                        $php53[] = T_TRAIT;
     160                        $php53[] = T_TRAIT_C;
     161                        $php53[] = T_TRAIT_C;
     162                }
     163
     164                // PHP 5.5+
     165                if (defined('T_FINALLY')) {
     166                        $php53[] = T_FINALLY;
     167                        $php53[] = T_YIELD;
     168                }
     169
     170                foreach ($tokens as $token) {
     171                        if (is_array($token) && in_array($token[0], $php53)) {
     172                                return true;
     173                        }
     174                }
     175
     176                return false;
     177        }
     178
     179        protected function getIncludePathsFile(array $packageMap, Filesystem $filesystem, $basePath, $vendorPath, $vendorPathCode, $appBaseDirCode) {
     180                $includePaths = array();
     181
     182                foreach ($packageMap as $item) {
     183                        list($package, $installPath) = $item;
     184
     185                        if (null !== $package->getTargetDir() && strlen($package->getTargetDir()) > 0) {
     186                                $installPath = substr($installPath, 0, -strlen('/'.$package->getTargetDir()));
     187                        }
     188
     189                        foreach ($package->getIncludePaths() as $includePath) {
     190                                $includePath = trim($includePath, '/');
     191                                $includePaths[] = empty($installPath) ? $includePath : $installPath.'/'.$includePath;
     192                        }
     193                }
     194
     195                if (!$includePaths) {
     196                        return;
     197                }
     198
     199                $includePathsFile = <<<EOF
     200<?php
     201
     202// include_paths_52.php generated by xrstf/composer-php52
     203
     204\$vendorDir = $vendorPathCode;
     205\$baseDir = $appBaseDirCode;
     206
     207return array(
     208
     209EOF;
     210
     211                foreach ($includePaths as $path) {
     212                        $includePathsFile .= "\t" . $this->getPathCode($filesystem, $basePath, $vendorPath, $path) . ",\n";
     213                }
     214
     215                return $includePathsFile . ");\n";
     216        }
     217
     218        protected function getAutoloadFile($vendorPathToTargetDirCode, $suffix) {
     219                return <<<AUTOLOAD
     220<?php
     221
     222// autoload_52.php generated by xrstf/composer-php52
     223
     224require_once $vendorPathToTargetDirCode.'/autoload_real_52.php';
     225
     226return ComposerAutoloaderInit$suffix::getLoader();
     227
     228AUTOLOAD;
     229        }
     230
     231        protected function getAutoloadRealFile($useClassMap, $useIncludePath, $targetDirLoader, $filesCode, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader, $staticPhpVersion = 70000) {
     232                // TODO the class ComposerAutoloaderInit should be revert to a closure
     233                // when APC has been fixed:
     234                // - https://github.com/composer/composer/issues/959
     235                // - https://bugs.php.net/bug.php?id=52144
     236                // - https://bugs.php.net/bug.php?id=61576
     237                // - https://bugs.php.net/bug.php?id=59298
     238
     239                if ($filesCode) {
     240                                $filesCode = "\n\n".rtrim($filesCode);
     241                }
     242
     243                $file = <<<HEADER
     244<?php
     245
     246// autoload_real_52.php generated by xrstf/composer-php52
     247
     248class ComposerAutoloaderInit$suffix {
     249        private static \$loader;
     250
     251        public static function loadClassLoader(\$class) {
     252                if ('xrstf_Composer52_ClassLoader' === \$class) {
     253                        require dirname(__FILE__).'/ClassLoader52.php';
     254                }
     255        }
     256
     257        /**
     258         * @return xrstf_Composer52_ClassLoader
     259         */
     260        public static function getLoader() {
     261                if (null !== self::\$loader) {
     262                        return self::\$loader;
     263                }
     264
     265                spl_autoload_register(array('ComposerAutoloaderInit$suffix', 'loadClassLoader'), true /*, true */);
     266                self::\$loader = \$loader = new xrstf_Composer52_ClassLoader();
     267                spl_autoload_unregister(array('ComposerAutoloaderInit$suffix', 'loadClassLoader'));
     268
     269                \$vendorDir = $vendorPathCode;
     270                \$baseDir   = $appBaseDirCode;
     271                \$dir       = dirname(__FILE__);
     272
     273
     274HEADER;
     275
     276                if ($useIncludePath) {
     277                        $file .= <<<'INCLUDE_PATH'
     278                $includePaths = require $dir.'/include_paths.php';
     279                array_push($includePaths, get_include_path());
     280                set_include_path(implode(PATH_SEPARATOR, $includePaths));
     281
     282
     283INCLUDE_PATH;
     284                }
     285
     286                $file .= <<<'PSR0'
     287                $map = require $dir.'/autoload_namespaces.php';
     288                foreach ($map as $namespace => $path) {
     289                        $loader->add($namespace, $path);
     290                }
     291
     292
     293PSR0;
     294
     295                if ($useClassMap) {
     296                        $file .= <<<'CLASSMAP'
     297                $classMap = require $dir.'/autoload_classmap.php';
     298                if ($classMap) {
     299                        $loader->addClassMap($classMap);
     300                }
     301
     302
     303CLASSMAP;
     304                }
     305
     306                if ($this->classMapAuthoritative) {
     307                        $file .= <<<'CLASSMAPAUTHORITATIVE'
     308                $loader->setClassMapAuthoritative(true);
     309
     310CLASSMAPAUTHORITATIVE;
     311                }
     312
     313                if ($useGlobalIncludePath) {
     314                        $file .= <<<'INCLUDEPATH'
     315                $loader->setUseIncludePath(true);
     316
     317
     318INCLUDEPATH;
     319                }
     320
     321                if ($targetDirLoader) {
     322                        $file .= <<<REGISTER_AUTOLOAD
     323                spl_autoload_register(array('ComposerAutoloaderInit$suffix', 'autoload'), true);
     324
     325
     326REGISTER_AUTOLOAD;
     327
     328                }
     329
     330                $file .= <<<METHOD_FOOTER
     331                \$loader->register($prependAutoloader);{$filesCode}
     332
     333                return \$loader;
     334        }
     335
     336METHOD_FOOTER;
     337
     338                $file .= $targetDirLoader;
     339
     340                return $file . <<<FOOTER
     341}
     342
     343FOOTER;
     344
     345        }
     346}
  • src/vendor/xrstf/composer-php52/lib/xrstf/Composer52/ClassLoader.php

     
     1<?php
     2/*
     3 * Copyright (c) 2013, Christoph Mewes, http://www.xrstf.de
     4 *
     5 * This file is released under the terms of the MIT license. You can find the
     6 * complete text in the attached LICENSE file or online at:
     7 *
     8 * http://www.opensource.org/licenses/mit-license.php
     9 *
     10 * --------------------------------------------------------------------------
     11 *
     12 * 99% of this is copied as-is from the original Composer source code and is
     13 * released under MIT license as well. Copyright goes to:
     14 *
     15 * - Fabien Potencier <fabien@symfony.com>
     16 * - Jordi Boggiano <j.boggiano@seld.be>
     17 */
     18
     19class xrstf_Composer52_ClassLoader {
     20        private $prefixes              = array();
     21        private $fallbackDirs          = array();
     22        private $useIncludePath        = false;
     23        private $classMap              = array();
     24        private $classMapAuthoratative = false;
     25        private $allowUnderscore       = false;
     26
     27        /**
     28         * @param boolean $flag  true to allow class names with a leading underscore, false to disable
     29         */
     30        public function setAllowUnderscore($flag) {
     31                $this->allowUnderscore = (boolean) $flag;
     32        }
     33
     34        /**
     35         * @return array
     36         */
     37        public function getPrefixes() {
     38                return $this->prefixes;
     39        }
     40
     41        /**
     42         * Turns off searching the prefix and fallback directories for classes
     43         * that have not been registered with the class map.
     44         *
     45         * @param bool $classMapAuthoratative
     46         */
     47        public function setClassMapAuthoritative($classMapAuthoratative) {
     48                $this->classMapAuthoratative = $classMapAuthoratative;
     49        }
     50
     51        /**
     52         * Should class lookup fail if not found in the current class map?
     53         *
     54         * @return bool
     55         */
     56        public function getClassMapAuthoratative() {
     57                return $this->classMapAuthoratative;
     58        }
     59
     60        /**
     61         * @return array
     62         */
     63        public function getFallbackDirs() {
     64                return $this->fallbackDirs;
     65        }
     66
     67        /**
     68         * @return array
     69         */
     70        public function getClassMap() {
     71                return $this->classMap;
     72        }
     73
     74        /**
     75         * @param array $classMap  class to filename map
     76         */
     77        public function addClassMap(array $classMap) {
     78                if ($this->classMap) {
     79                        $this->classMap = array_merge($this->classMap, $classMap);
     80                }
     81                else {
     82                        $this->classMap = $classMap;
     83                }
     84        }
     85
     86        /**
     87         * Registers a set of classes, merging with any others previously set.
     88         *
     89         * @param string       $prefix   the classes prefix
     90         * @param array|string $paths    the location(s) of the classes
     91         * @param bool         $prepend  prepend the location(s)
     92         */
     93        public function add($prefix, $paths, $prepend = false) {
     94                if (!$prefix) {
     95                        if ($prepend) {
     96                                $this->fallbackDirs = array_merge(
     97                                        (array) $paths,
     98                                        $this->fallbackDirs
     99                                );
     100                        }
     101                        else {
     102                                $this->fallbackDirs = array_merge(
     103                                        $this->fallbackDirs,
     104                                        (array) $paths
     105                                );
     106                        }
     107
     108                        return;
     109                }
     110
     111                if (!isset($this->prefixes[$prefix])) {
     112                        $this->prefixes[$prefix] = (array) $paths;
     113                        return;
     114                }
     115
     116                if ($prepend) {
     117                        $this->prefixes[$prefix] = array_merge(
     118                                (array) $paths,
     119                                $this->prefixes[$prefix]
     120                        );
     121                }
     122                else {
     123                        $this->prefixes[$prefix] = array_merge(
     124                                $this->prefixes[$prefix],
     125                                (array) $paths
     126                        );
     127                }
     128        }
     129
     130        /**
     131         * Registers a set of classes, replacing any others previously set.
     132         *
     133         * @param string       $prefix  the classes prefix
     134         * @param array|string $paths   the location(s) of the classes
     135         */
     136        public function set($prefix, $paths) {
     137                if (!$prefix) {
     138                        $this->fallbackDirs = (array) $paths;
     139                        return;
     140                }
     141
     142                $this->prefixes[$prefix] = (array) $paths;
     143        }
     144
     145        /**
     146         * Turns on searching the include path for class files.
     147         *
     148         * @param bool $useIncludePath
     149         */
     150        public function setUseIncludePath($useIncludePath) {
     151                $this->useIncludePath = $useIncludePath;
     152        }
     153
     154        /**
     155         * Can be used to check if the autoloader uses the include path to check
     156         * for classes.
     157         *
     158         * @return bool
     159         */
     160        public function getUseIncludePath() {
     161                return $this->useIncludePath;
     162        }
     163
     164        /**
     165         * Registers this instance as an autoloader.
     166         */
     167        public function register() {
     168                spl_autoload_register(array($this, 'loadClass'), true);
     169        }
     170
     171        /**
     172         * Unregisters this instance as an autoloader.
     173         */
     174        public function unregister() {
     175                spl_autoload_unregister(array($this, 'loadClass'));
     176        }
     177
     178        /**
     179         * Loads the given class or interface.
     180         *
     181         * @param  string $class  the name of the class
     182         * @return bool|null      true, if loaded
     183         */
     184        public function loadClass($class) {
     185                if ($file = $this->findFile($class)) {
     186                        include $file;
     187                        return true;
     188                }
     189        }
     190
     191        /**
     192         * Finds the path to the file where the class is defined.
     193         *
     194         * @param  string $class  the name of the class
     195         * @return string|null    the path, if found
     196         */
     197        public function findFile($class) {
     198                if ('\\' === $class[0]) {
     199                        $class = substr($class, 1);
     200                }
     201
     202                if (isset($this->classMap[$class])) {
     203                        return $this->classMap[$class];
     204                }
     205                elseif ($this->classMapAuthoratative) {
     206                        return false;
     207                }
     208
     209                $classPath = $this->getClassPath($class);
     210
     211                foreach ($this->prefixes as $prefix => $dirs) {
     212                        if (0 === strpos($class, $prefix)) {
     213                                foreach ($dirs as $dir) {
     214                                        if (file_exists($dir.DIRECTORY_SEPARATOR.$classPath)) {
     215                                                return $dir.DIRECTORY_SEPARATOR.$classPath;
     216                                        }
     217                                }
     218                        }
     219                }
     220
     221                foreach ($this->fallbackDirs as $dir) {
     222                        if (file_exists($dir.DIRECTORY_SEPARATOR.$classPath)) {
     223                                return $dir.DIRECTORY_SEPARATOR.$classPath;
     224                        }
     225                }
     226
     227                if ($this->useIncludePath && $file = self::resolveIncludePath($classPath)) {
     228                        return $file;
     229                }
     230
     231                return $this->classMap[$class] = false;
     232        }
     233
     234        private function getClassPath($class) {
     235                if (false !== $pos = strrpos($class, '\\')) {
     236                        // namespaced class name
     237                        $classPath = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 0, $pos)).DIRECTORY_SEPARATOR;
     238                        $className = substr($class, $pos + 1);
     239                }
     240                else {
     241                        // PEAR-like class name
     242                        $classPath = null;
     243                        $className = $class;
     244                }
     245
     246                $className = str_replace('_', DIRECTORY_SEPARATOR, $className);
     247
     248                // restore the prefix
     249                if ($this->allowUnderscore && DIRECTORY_SEPARATOR === $className[0]) {
     250                        $className[0] = '_';
     251                }
     252
     253                $classPath .= $className.'.php';
     254
     255                return $classPath;
     256        }
     257
     258        public static function resolveIncludePath($classPath) {
     259                $paths = explode(PATH_SEPARATOR, get_include_path());
     260
     261                foreach ($paths as $path) {
     262                        $path = rtrim($path, '/\\');
     263
     264                        if ($file = file_exists($path.DIRECTORY_SEPARATOR.$file)) {
     265                                return $file;
     266                        }
     267                }
     268
     269                return false;
     270        }
     271}
  • src/vendor/xrstf/composer-php52/lib/xrstf/Composer52/Generator.php

     
     1<?php
     2/*
     3 * Copyright (c) 2013, Christoph Mewes, http://www.xrstf.de
     4 *
     5 * This file is released under the terms of the MIT license. You can find the
     6 * complete text in the attached LICENSE file or online at:
     7 *
     8 * http://www.opensource.org/licenses/mit-license.php
     9 */
     10
     11namespace xrstf\Composer52;
     12
     13use Composer\Repository\CompositeRepository;
     14use Composer\Script\Event;
     15
     16class Generator {
     17        public static function onPostInstallCmd(Event $event) {
     18                $composer            = $event->getComposer();
     19                $installationManager = $composer->getInstallationManager();
     20                $repoManager         = $composer->getRepositoryManager();
     21                $localRepo           = $repoManager->getLocalRepository();
     22                $package             = $composer->getPackage();
     23                $config              = $composer->getConfig();
     24
     25                // We can't gain access to the Command's input object, so we have to look
     26                // for -o / --optimize-autoloader ourselves. Sadly, neither getopt() works
     27                // (always returns an empty array), nor does Symfony's Console Input, as
     28                // it expects a full definition of the current command line and we can't
     29                // provide that.
     30
     31                $args     = $_SERVER['argv'];
     32                $optimize = in_array('-o', $args) || in_array('--optimize-autoloader', $args) || in_array('--optimize', $args);
     33
     34                $suffix   = $config->get('autoloader-suffix');
     35
     36                $generator = new AutoloadGenerator();
     37                $generator->dump($config, $localRepo, $package, $installationManager, 'composer', $optimize, $suffix);
     38        }
     39}