Plugin Directory

Changeset 2990514


Ignore:
Timestamp:
11/07/2023 08:07:27 AM (2 years ago)
Author:
ZanderZ
Message:

Preparing for 6.0.0 release

Location:
recras/trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • recras/trunk/bin/install-wp-tests.sh

    r2584048 r2990514  
    11#!/usr/bin/env bash
    22
    3 # Based on https://github.com/wp-cli/scaffold-command/blob/master/templates/install-wp-tests.sh
    4 # Last updated: 2021-08-08
     3# Based on https://github.com/wp-cli/scaffold-command/blob/main/templates/install-wp-tests.sh
     4# Last updated: 2023-08-08
    55# Usage: $0 [db-name] [db-user] [db-pass] [db-host] [wp-version] [skip-db-create]
    66
     
    9292    fi
    9393
    94     download https://raw.github.com/markoheijnen/wp-mysqli/master/db.php $WP_CORE_DIR/wp-content/db.php
     94    download https://raw.githubusercontent.com/markoheijnen/wp-mysqli/master/db.php $WP_CORE_DIR/wp-content/db.php
    9595}
    9696
  • recras/trunk/changelog.md

    r2953659 r2990514  
    11# Changelog
     2
     3## 6.0.0 (2023-11-07)
     4* Removed support for Composer Installers
     5* Updated "Tested up to" version to 6.4
    26
    37## 5.5.2 (2023-08-15)
  • recras/trunk/composer.json

    r2724556 r2990514  
    99    },
    1010    "require": {
    11         "composer/installers": "1.9.0",
    1211        "ext-ctype": "*",
    1312        "ext-curl": "*",
    1413        "ext-json": "*",
    15         "php": ">=7.1"
     14        "php": ">=7.2"
    1615    },
    1716    "require-dev": {
    18         "phpunit/phpunit": "7.5.20",
    19         "wp-cli/wp-cli": "2.5.0"
     17        "phpunit/phpunit": "9.6.10",
     18        "wp-cli/wp-cli": "2.8.1"
    2019    },
    2120    "authors": [
  • recras/trunk/lang/recras-de_DE.po

    r2953659 r2990514  
    22msgstr ""
    33"Project-Id-Version: Recras WordPress plugin\n"
    4 "POT-Creation-Date: 2023-08-03 11:49+0200\n"
    5 "PO-Revision-Date: 2023-08-03 11:49+0200\n"
     4"POT-Creation-Date: 2023-09-29 14:56+0200\n"
     5"PO-Revision-Date: 2023-09-29 14:56+0200\n"
    66"Last-Translator: Sander de Jong <sander@recras.nl>\n"
    77"Language-Team: Recras\n"
     
    9999
    100100#: editor/form-arrangement.php:44 editor/form-booking.php:82
    101 #: js/gutenberg-package.js:127 src/ContactForm.php:281
     101#: js/gutenberg-package.js:127 src/ContactForm.php:285
    102102msgid "hh:mm"
    103103msgstr "UU:MM"
     
    174174msgstr ""
    175175
    176 #: editor/form-booking.php:73 src/ContactForm.php:264 src/ContactForm.php:306
     176#: editor/form-booking.php:73 src/ContactForm.php:268 src/ContactForm.php:310
    177177msgid "yyyy-mm-dd"
    178178msgstr "JJJJ-MM-TT"
     
    301301#: editor/form-contact.php:62 editor/form-contact.php:109
    302302#: js/gutenberg-contactform.js:14 js/gutenberg-contactform.js:27
    303 #: src/ContactForm.php:114
     303#: src/ContactForm.php:118
    304304msgid "Send"
    305305msgstr ""
     
    478478
    479479#: src/Arrangement.php:38 src/Arrangement.php:243 src/Bookprocess.php:89
    480 #: src/ContactForm.php:71
     480#: src/ContactForm.php:71 src/ContactForm.php:75
    481481#, php-format
    482482msgid "Error: %s"
     
    520520msgstr ""
    521521
    522 #: src/ContactForm.php:110
     522#: src/ContactForm.php:75
     523msgid "Contact form might be deleted"
     524msgstr ""
     525
     526#: src/ContactForm.php:114
    523527msgid "Error: package is set, but contact form does not support packages"
    524528msgstr ""
    525529
    526 #: src/ContactForm.php:372
     530#: src/ContactForm.php:376
    527531msgid "Unknown"
    528532msgstr "Unbekannt"
    529533
    530 #: src/ContactForm.php:373
     534#: src/ContactForm.php:377
    531535msgid "Male"
    532536msgstr "Mann"
    533537
    534 #: src/ContactForm.php:374
     538#: src/ContactForm.php:378
    535539msgid "Female"
    536540msgstr "Frau"
    537541
    538 #: src/ContactForm.php:510
     542#: src/ContactForm.php:514
    539543msgid "(required)"
    540544msgstr "(erforderlich)"
    541545
    542 #: src/ContactForm.php:535
     546#: src/ContactForm.php:539
    543547msgid "Clear choice"
    544548msgstr ""
  • recras/trunk/lang/recras-en_GB.po

    r2953659 r2990514  
    22msgstr ""
    33"Project-Id-Version: Recras WordPress plugin\n"
    4 "POT-Creation-Date: 2023-08-03 11:49+0200\n"
    5 "PO-Revision-Date: 2023-08-03 11:49+0200\n"
     4"POT-Creation-Date: 2023-09-29 14:56+0200\n"
     5"PO-Revision-Date: 2023-09-29 14:56+0200\n"
    66"Last-Translator: Sander de Jong <sander@recras.nl>\n"
    77"Language-Team: Recras\n"
     
    9696
    9797#: editor/form-arrangement.php:44 editor/form-booking.php:82
    98 #: js/gutenberg-package.js:127 src/ContactForm.php:281
     98#: js/gutenberg-package.js:127 src/ContactForm.php:285
    9999msgid "hh:mm"
    100100msgstr ""
     
    171171msgstr ""
    172172
    173 #: editor/form-booking.php:73 src/ContactForm.php:264 src/ContactForm.php:306
     173#: editor/form-booking.php:73 src/ContactForm.php:268 src/ContactForm.php:310
    174174msgid "yyyy-mm-dd"
    175175msgstr ""
     
    298298#: editor/form-contact.php:62 editor/form-contact.php:109
    299299#: js/gutenberg-contactform.js:14 js/gutenberg-contactform.js:27
    300 #: src/ContactForm.php:114
     300#: src/ContactForm.php:118
    301301msgid "Send"
    302302msgstr ""
     
    475475
    476476#: src/Arrangement.php:38 src/Arrangement.php:243 src/Bookprocess.php:89
    477 #: src/ContactForm.php:71
     477#: src/ContactForm.php:71 src/ContactForm.php:75
    478478#, php-format
    479479msgid "Error: %s"
     
    517517msgstr ""
    518518
    519 #: src/ContactForm.php:110
     519#: src/ContactForm.php:75
     520msgid "Contact form might be deleted"
     521msgstr ""
     522
     523#: src/ContactForm.php:114
    520524msgid "Error: package is set, but contact form does not support packages"
    521525msgstr ""
    522526
    523 #: src/ContactForm.php:372
     527#: src/ContactForm.php:376
    524528msgid "Unknown"
    525529msgstr ""
    526530
    527 #: src/ContactForm.php:373
     531#: src/ContactForm.php:377
    528532msgid "Male"
    529533msgstr ""
    530534
    531 #: src/ContactForm.php:374
     535#: src/ContactForm.php:378
    532536msgid "Female"
    533537msgstr ""
    534538
    535 #: src/ContactForm.php:510
     539#: src/ContactForm.php:514
    536540msgid "(required)"
    537541msgstr ""
    538542
    539 #: src/ContactForm.php:535
     543#: src/ContactForm.php:539
    540544msgid "Clear choice"
    541545msgstr ""
  • recras/trunk/lang/recras-nl_NL.po

    r2953659 r2990514  
    22msgstr ""
    33"Project-Id-Version: Recras WordPress plugin\n"
    4 "POT-Creation-Date: 2023-08-03 11:49+0200\n"
    5 "PO-Revision-Date: 2023-08-03 11:50+0200\n"
     4"POT-Creation-Date: 2023-09-29 14:56+0200\n"
     5"PO-Revision-Date: 2023-09-29 14:56+0200\n"
    66"Last-Translator: Sander de Jong <sander@recras.nl>\n"
    77"Language-Team: Recras\n"
     
    9999
    100100#: editor/form-arrangement.php:44 editor/form-booking.php:82
    101 #: js/gutenberg-package.js:127 src/ContactForm.php:281
     101#: js/gutenberg-package.js:127 src/ContactForm.php:285
    102102msgid "hh:mm"
    103103msgstr "uu:mm"
     
    181181msgstr "Datum vooraf invullen (vereist exact 1 geselecteerd arrangement)"
    182182
    183 #: editor/form-booking.php:73 src/ContactForm.php:264 src/ContactForm.php:306
     183#: editor/form-booking.php:73 src/ContactForm.php:268 src/ContactForm.php:310
    184184msgid "yyyy-mm-dd"
    185185msgstr "jjjj-mm-dd"
     
    319319#: editor/form-contact.php:62 editor/form-contact.php:109
    320320#: js/gutenberg-contactform.js:14 js/gutenberg-contactform.js:27
    321 #: src/ContactForm.php:114
     321#: src/ContactForm.php:118
    322322msgid "Send"
    323323msgstr "Versturen"
     
    505505
    506506#: src/Arrangement.php:38 src/Arrangement.php:243 src/Bookprocess.php:89
    507 #: src/ContactForm.php:71
     507#: src/ContactForm.php:71 src/ContactForm.php:75
    508508#, php-format
    509509msgid "Error: %s"
     
    547547msgstr "Fout: boekproces bestaat niet"
    548548
    549 #: src/ContactForm.php:110
     549#: src/ContactForm.php:75
     550msgid "Contact form might be deleted"
     551msgstr "Contactformulier is mogelijk verwijderd"
     552
     553#: src/ContactForm.php:114
    550554msgid "Error: package is set, but contact form does not support packages"
    551555msgstr ""
     
    553557"arrangementen"
    554558
    555 #: src/ContactForm.php:372
     559#: src/ContactForm.php:376
    556560msgid "Unknown"
    557561msgstr "Onbekend"
    558562
    559 #: src/ContactForm.php:373
     563#: src/ContactForm.php:377
    560564msgid "Male"
    561565msgstr "Man"
    562566
    563 #: src/ContactForm.php:374
     567#: src/ContactForm.php:378
    564568msgid "Female"
    565569msgstr "Vrouw"
    566570
    567 #: src/ContactForm.php:510
     571#: src/ContactForm.php:514
    568572msgid "(required)"
    569573msgstr "(verplicht)"
    570574
    571 #: src/ContactForm.php:535
     575#: src/ContactForm.php:539
    572576msgid "Clear choice"
    573577msgstr "Keuze wissen"
  • recras/trunk/package.json

    r2953659 r2990514  
    11{
    22  "name": "recras-wordpress-plugin",
    3   "version": "5.5.2",
     3  "version": "6.0.0",
    44  "description": "Recras WordPress plugin",
    55  "main": "index.js",
  • recras/trunk/readme.txt

    r2953659 r2990514  
    22Contributors: zanderz
    33Tags: recras, recreation, reservation, booking, voucher
    4 Tested up to: 6.3
    5 Stable tag: 5.5.2
     4Tested up to: 6.4
     5Stable tag: 6.0.0
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8181== Changelog ==
    8282
     83= 6.0.0 =
     84* Removed support for Composer Installers
     85* Updated "Tested up to" version to 6.4
     86
    8387= 5.5.2 =
    8488* **No functional changes**
  • recras/trunk/recras-wordpress-plugin.php

    r2953659 r2990514  
    33Plugin Name: Recras WordPress Plugin
    44Plugin URI: https://www.recras.nl/
    5 Version: 5.5.2
     5Version: 6.0.0
    66Description: Easily integrate your Recras data into your own site
    7 Requires at least: 6.1
     7Requires at least: 6.2
    88Requires PHP: 7.2.0
    99Author: Recras
  • recras/trunk/src/ContactForm.php

    r2915644 r2990514  
    7070            // Not a form, but an error
    7171            return sprintf(__('Error: %s', Plugin::TEXT_DOMAIN), $form);
     72        }
     73
     74        if (!property_exists($form, 'naam') || !property_exists($form, 'Velden')) {
     75            return sprintf(__('Error: %s', Plugin::TEXT_DOMAIN), __('Contact form might be deleted', Plugin::TEXT_DOMAIN));
    7276        }
    7377
  • recras/trunk/vendor/composer/ClassLoader.php

    r2008432 r2990514  
    3838 * @author Fabien Potencier <fabien@symfony.com>
    3939 * @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/
     40 * @see    https://www.php-fig.org/psr/psr-0/
     41 * @see    https://www.php-fig.org/psr/psr-4/
    4242 */
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var string|null */
     49    private $vendorDir;
     50
    4551    // PSR-4
     52    /**
     53     * @var array<string, array<string, int>>
     54     */
    4655    private $prefixLengthsPsr4 = array();
     56    /**
     57     * @var array<string, list<string>>
     58     */
    4759    private $prefixDirsPsr4 = array();
     60    /**
     61     * @var list<string>
     62     */
    4863    private $fallbackDirsPsr4 = array();
    4964
    5065    // PSR-0
     66    /**
     67     * List of PSR-0 prefixes
     68     *
     69     * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
     70     *
     71     * @var array<string, array<string, list<string>>>
     72     */
    5173    private $prefixesPsr0 = array();
     74    /**
     75     * @var list<string>
     76     */
    5277    private $fallbackDirsPsr0 = array();
    5378
     79    /** @var bool */
    5480    private $useIncludePath = false;
     81
     82    /**
     83     * @var array<string, string>
     84     */
    5585    private $classMap = array();
     86
     87    /** @var bool */
    5688    private $classMapAuthoritative = false;
     89
     90    /**
     91     * @var array<string, bool>
     92     */
    5793    private $missingClasses = array();
     94
     95    /** @var string|null */
    5896    private $apcuPrefix;
    5997
     98    /**
     99     * @var array<string, self>
     100     */
     101    private static $registeredLoaders = array();
     102
     103    /**
     104     * @param string|null $vendorDir
     105     */
     106    public function __construct($vendorDir = null)
     107    {
     108        $this->vendorDir = $vendorDir;
     109        self::initializeIncludeClosure();
     110    }
     111
     112    /**
     113     * @return array<string, list<string>>
     114     */
    60115    public function getPrefixes()
    61116    {
    62117        if (!empty($this->prefixesPsr0)) {
    63             return call_user_func_array('array_merge', $this->prefixesPsr0);
     118            return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
    64119        }
    65120
     
    67122    }
    68123
     124    /**
     125     * @return array<string, list<string>>
     126     */
    69127    public function getPrefixesPsr4()
    70128    {
     
    72130    }
    73131
     132    /**
     133     * @return list<string>
     134     */
    74135    public function getFallbackDirs()
    75136    {
     
    77138    }
    78139
     140    /**
     141     * @return list<string>
     142     */
    79143    public function getFallbackDirsPsr4()
    80144    {
     
    82146    }
    83147
     148    /**
     149     * @return array<string, string> Array of classname => path
     150     */
    84151    public function getClassMap()
    85152    {
     
    88155
    89156    /**
    90      * @param array $classMap Class to filename map
     157     * @param array<string, string> $classMap Class to filename map
     158     *
     159     * @return void
    91160     */
    92161    public function addClassMap(array $classMap)
     
    103172     * appending or prepending to the ones previously set for this prefix.
    104173     *
    105      * @param string       $prefix  The prefix
    106      * @param array|string $paths   The PSR-0 root directories
    107      * @param bool         $prepend Whether to prepend the directories
     174     * @param string              $prefix  The prefix
     175     * @param list<string>|string $paths   The PSR-0 root directories
     176     * @param bool                $prepend Whether to prepend the directories
     177     *
     178     * @return void
    108179     */
    109180    public function add($prefix, $paths, $prepend = false)
    110181    {
     182        $paths = (array) $paths;
    111183        if (!$prefix) {
    112184            if ($prepend) {
    113185                $this->fallbackDirsPsr0 = array_merge(
    114                     (array) $paths,
     186                    $paths,
    115187                    $this->fallbackDirsPsr0
    116188                );
     
    118190                $this->fallbackDirsPsr0 = array_merge(
    119191                    $this->fallbackDirsPsr0,
    120                     (array) $paths
     192                    $paths
    121193                );
    122194            }
     
    127199        $first = $prefix[0];
    128200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    129             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    130202
    131203            return;
     
    133205        if ($prepend) {
    134206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    135                 (array) $paths,
     207                $paths,
    136208                $this->prefixesPsr0[$first][$prefix]
    137209            );
     
    139211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    140212                $this->prefixesPsr0[$first][$prefix],
    141                 (array) $paths
     213                $paths
    142214            );
    143215        }
     
    148220     * appending or prepending to the ones previously set for this namespace.
    149221     *
    150      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    151      * @param array|string $paths   The PSR-4 base directories
    152      * @param bool         $prepend Whether to prepend the directories
     222     * @param string              $prefix  The prefix/namespace, with trailing '\\'
     223     * @param list<string>|string $paths   The PSR-4 base directories
     224     * @param bool                $prepend Whether to prepend the directories
    153225     *
    154226     * @throws \InvalidArgumentException
     227     *
     228     * @return void
    155229     */
    156230    public function addPsr4($prefix, $paths, $prepend = false)
    157231    {
     232        $paths = (array) $paths;
    158233        if (!$prefix) {
    159234            // Register directories for the root namespace.
    160235            if ($prepend) {
    161236                $this->fallbackDirsPsr4 = array_merge(
    162                     (array) $paths,
     237                    $paths,
    163238                    $this->fallbackDirsPsr4
    164239                );
     
    166241                $this->fallbackDirsPsr4 = array_merge(
    167242                    $this->fallbackDirsPsr4,
    168                     (array) $paths
     243                    $paths
    169244                );
    170245            }
     
    176251            }
    177252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    178             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    179254        } elseif ($prepend) {
    180255            // Prepend directories for an already registered namespace.
    181256            $this->prefixDirsPsr4[$prefix] = array_merge(
    182                 (array) $paths,
     257                $paths,
    183258                $this->prefixDirsPsr4[$prefix]
    184259            );
     
    187262            $this->prefixDirsPsr4[$prefix] = array_merge(
    188263                $this->prefixDirsPsr4[$prefix],
    189                 (array) $paths
     264                $paths
    190265            );
    191266        }
     
    196271     * replacing any others previously set for this prefix.
    197272     *
    198      * @param string       $prefix The prefix
    199      * @param array|string $paths  The PSR-0 base directories
     273     * @param string              $prefix The prefix
     274     * @param list<string>|string $paths  The PSR-0 base directories
     275     *
     276     * @return void
    200277     */
    201278    public function set($prefix, $paths)
     
    212289     * replacing any others previously set for this namespace.
    213290     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     291     * @param string              $prefix The prefix/namespace, with trailing '\\'
     292     * @param list<string>|string $paths  The PSR-4 base directories
    216293     *
    217294     * @throws \InvalidArgumentException
     295     *
     296     * @return void
    218297     */
    219298    public function setPsr4($prefix, $paths)
     
    235314     *
    236315     * @param bool $useIncludePath
     316     *
     317     * @return void
    237318     */
    238319    public function setUseIncludePath($useIncludePath)
     
    257338     *
    258339     * @param bool $classMapAuthoritative
     340     *
     341     * @return void
    259342     */
    260343    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277360     *
    278361     * @param string|null $apcuPrefix
     362     *
     363     * @return void
    279364     */
    280365    public function setApcuPrefix($apcuPrefix)
    281366    {
    282         $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
     367        $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
    283368    }
    284369
     
    297382     *
    298383     * @param bool $prepend Whether to prepend the autoloader or not
     384     *
     385     * @return void
    299386     */
    300387    public function register($prepend = false)
    301388    {
    302389        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     390
     391        if (null === $this->vendorDir) {
     392            return;
     393        }
     394
     395        if ($prepend) {
     396            self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
     397        } else {
     398            unset(self::$registeredLoaders[$this->vendorDir]);
     399            self::$registeredLoaders[$this->vendorDir] = $this;
     400        }
    303401    }
    304402
    305403    /**
    306404     * Unregisters this instance as an autoloader.
     405     *
     406     * @return void
    307407     */
    308408    public function unregister()
    309409    {
    310410        spl_autoload_unregister(array($this, 'loadClass'));
     411
     412        if (null !== $this->vendorDir) {
     413            unset(self::$registeredLoaders[$this->vendorDir]);
     414        }
    311415    }
    312416
     
    315419     *
    316420     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     421     * @return true|null True if loaded, null otherwise
    318422     */
    319423    public function loadClass($class)
    320424    {
    321425        if ($file = $this->findFile($class)) {
    322             includeFile($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    323428
    324429            return true;
    325430        }
     431
     432        return null;
    326433    }
    327434
     
    368475    }
    369476
     477    /**
     478     * Returns the currently registered loaders keyed by their corresponding vendor directories.
     479     *
     480     * @return array<string, self>
     481     */
     482    public static function getRegisteredLoaders()
     483    {
     484        return self::$registeredLoaders;
     485    }
     486
     487    /**
     488     * @param  string       $class
     489     * @param  string       $ext
     490     * @return string|false
     491     */
    370492    private function findFileWithExtension($class, $ext)
    371493    {
     
    433555        return false;
    434556    }
     557
     558    /**
     559     * @return void
     560     */
     561    private static function initializeIncludeClosure()
     562    {
     563        if (self::$includeFile !== null) {
     564            return;
     565        }
     566
     567        /**
     568         * Scope isolated include.
     569         *
     570         * Prevents access to $this/self from included files.
     571         *
     572         * @param  string $file
     573         * @return void
     574         */
     575        self::$includeFile = \Closure::bind(static function($file) {
     576            include $file;
     577        }, null, null);
     578    }
    435579}
    436 
    437 /**
    438  * Scope isolated include.
    439  *
    440  * Prevents access to $this/self from included files.
    441  */
    442 function includeFile($file)
    443 {
    444     include $file;
    445 }
  • recras/trunk/vendor/composer/autoload_real.php

    r2008432 r2990514  
    1414    }
    1515
     16    /**
     17     * @return \Composer\Autoload\ClassLoader
     18     */
    1619    public static function getLoader()
    1720    {
     
    2124
    2225        spl_autoload_register(array('ComposerAutoloaderIniteda2edcf35e3249484bbc681eb6321db', 'loadClassLoader'), true, true);
    23         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     26        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    2427        spl_autoload_unregister(array('ComposerAutoloaderIniteda2edcf35e3249484bbc681eb6321db', 'loadClassLoader'));
    2528
    26         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    27         if ($useStaticLoader) {
    28             require_once __DIR__ . '/autoload_static.php';
    29 
    30             call_user_func(\Composer\Autoload\ComposerStaticIniteda2edcf35e3249484bbc681eb6321db::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         }
     29        require __DIR__ . '/autoload_static.php';
     30        call_user_func(\Composer\Autoload\ComposerStaticIniteda2edcf35e3249484bbc681eb6321db::getInitializer($loader));
    4731
    4832        $loader->register(true);
  • recras/trunk/vendor/composer/autoload_static.php

    r1456750 r2990514  
    1212            'Recras\\' => 7,
    1313        ),
    14         'C' =>
    15         array (
    16             'Composer\\Installers\\' => 20,
    17         ),
    1814    );
    1915
     
    2319            0 => __DIR__ . '/../..' . '/src',
    2420        ),
    25         'Composer\\Installers\\' =>
    26         array (
    27             0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',
    28         ),
     21    );
     22
     23    public static $classMap = array (
    2924    );
    3025
     
    3429            $loader->prefixLengthsPsr4 = ComposerStaticIniteda2edcf35e3249484bbc681eb6321db::$prefixLengthsPsr4;
    3530            $loader->prefixDirsPsr4 = ComposerStaticIniteda2edcf35e3249484bbc681eb6321db::$prefixDirsPsr4;
     31            $loader->classMap = ComposerStaticIniteda2edcf35e3249484bbc681eb6321db::$classMap;
    3632
    3733        }, null, ClassLoader::class);
Note: See TracChangeset for help on using the changeset viewer.