Plugin Directory

Changeset 3390668


Ignore:
Timestamp:
11/05/2025 06:50:22 PM (3 months ago)
Author:
land0r
Message:

Sugar Calendar Booking Lite v1.0.1

Location:
sugar-calendar-bookings-scheduling-appointments-lite
Files:
1026 added
14 edited

Legend:

Unmodified
Added
Removed
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/readme.txt

    r3389836 r3390668  
    1010Requires at least: 6.2
    1111Tested up to:      6.8
    12 Stable tag:        1.0.0
     12Stable tag:        1.0.1
    1313
    1414A powerful yet lightweight appointment booking plugin for WordPress. Manage services, customers, and appointments with ease.
     
    7373== Changelog ==
    7474
     75= 1.0.1 =
     76- Fix: Booking form script initialization in Elementor widgets and shortcodes
     77
    7578= 1.0.0 =
    7679- Added: Calendar month and week views.
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/src/BookingForm/BookingFormElementorWidget.php

    r3389836 r3390668  
    102102     * Register widget assets (scripts and styles).
    103103     *
     104     * Note: Booking form frontend assets are registered globally via BookingFormAssets class.
     105     *
    104106     * @since 1.0.0
    105107     */
     
    108110        // Register React JSX Runtime.
    109111        $this->register_react_jsx_runtime();
    110 
    111         // Register booking form frontend script and style.
    112         $this->register_booking_form_assets();
    113112
    114113        // Register Elementor-specific preview script.
     
    305304        $attributes['initialData'] = $booking_form_data;
    306305
    307         // Localize script data for frontend (preview handles its own localization).
    308         if ( ! ElementorPlugin::$instance->preview->is_preview_mode() ) {
    309             $this->localize_script_data();
    310         }
    311 
    312306        // Render the widget markup.
    313307        $this->render_booking_container( $attributes );
     
    373367            'hideBranding'           => $hide_branding,
    374368        ];
    375     }
    376 
    377     /**
    378      * Localize script data for the booking form.
    379      *
    380      * @since 1.0.0
    381      */
    382     private function localize_script_data(): void {
    383 
    384         wp_localize_script(
    385             'scbookings-booking-form-script',
    386             'sugar_calendar_bookings',
    387             Plugin::get( BookingFormService::class )->get_script_data()
    388         );
    389369    }
    390370
     
    408388
    409389    /**
    410      * Register booking form frontend assets.
    411      *
    412      * @since 1.0.0
    413      */
    414     private function register_booking_form_assets(): void {
    415 
    416         if ( ! wp_script_is( 'scbookings-booking-form-script', 'registered' ) ) {
    417             wp_register_script(
    418                 'scbookings-booking-form-script',
    419                 SCBOOKINGS_PLUGIN_URL . 'assets/dist/booking-form/frontend.js',
    420                 [ 'wp-element', 'react-jsx-runtime' ],
    421                 SCBOOKINGS_PLUGIN_VERSION,
    422                 true
    423             );
    424         }
    425 
    426         if ( ! wp_style_is( 'scbookings-booking-form-style', 'registered' ) ) {
    427             wp_register_style(
    428                 'scbookings-booking-form-style',
    429                 SCBOOKINGS_PLUGIN_URL . 'assets/dist/booking-form/styles.css',
    430                 [],
    431                 SCBOOKINGS_PLUGIN_VERSION
    432             );
    433         }
    434     }
    435 
    436     /**
    437390     * Register Elementor-specific preview script.
     391     *
     392     * Note: Booking form frontend assets are registered globally via BookingFormAssets class.
    438393     *
    439394     * @since 1.0.0
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/src/BookingForm/BookingFormShortcode.php

    r3389836 r3390668  
    146146     * Enqueue frontend assets for the shortcode.
    147147     *
     148     * Note: Scripts are registered and localized globally via BookingFormAssets class.
     149     *
    148150     * @since 1.0.0
    149151     */
    150152    private function enqueue_frontend_assets(): void {
    151153
    152         if ( ! wp_script_is( 'react-jsx-runtime', 'registered' ) ) {
    153             wp_enqueue_script(
    154                 'react-jsx-runtime',
    155                 SCBOOKINGS_PLUGIN_URL . 'assets/lib/react-jsx-runtime.js',
    156                 [ 'react' ],
    157                 '18.3.1',
    158                 true
    159             );
    160         }
    161 
    162         // Enqueue the same frontend script and styles as the block.
     154        // Enqueue the globally registered scripts.
     155        wp_enqueue_script( 'react-jsx-runtime' );
    163156        wp_enqueue_script( 'scbookings-booking-form-script' );
    164157        wp_enqueue_style( 'scbookings-booking-form-style' );
    165 
    166         // Localize script data for the frontend script.
    167         wp_localize_script(
    168             'scbookings-booking-form-script',
    169             'sugar_calendar_bookings',
    170             Plugin::get( BookingFormService::class )->get_script_data()
    171         );
    172158    }
    173159
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/src/Loader.php

    r3389836 r3390668  
    1313use SugarCalendarBookings\Appointments\AppointmentsTableMigration;
    1414use SugarCalendarBookings\Appointments\Tasks\DraftAppointmentsCleanupTask;
     15use SugarCalendarBookings\BookingForm\BookingFormAssets;
    1516use SugarCalendarBookings\BookingForm\BookingFormBlock;
    1617use SugarCalendarBookings\BookingForm\BookingFormElementorWidget;
     
    7172            ShortcodeRegistry::class       => null,
    7273            ElementorWidgetRegistry::class => null,
     74            BookingFormAssets::class       => null,
    7375            RequestHandler::class          => null,
    7476            AdminRoutes::class             => fn() => new AdminRoutes( $this->get( RouteRegistry::class ) ),
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/sugar-calendar-bookings-scheduling-appointments-lite.php

    r3389836 r3390668  
    1111 * Requires PHP:      7.4
    1212 * Requires at least: 6.2
    13  * Version:           1.0.0
     13 * Version:           1.0.1
    1414 */
    1515
     
    4444     * @since 1.0.0
    4545     */
    46     define( 'SCBOOKINGS_PLUGIN_VERSION', '1.0.0' );
     46    define( 'SCBOOKINGS_PLUGIN_VERSION', '1.0.1' );
    4747}
    4848
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/vendor/autoload.php

    r3389796 r3390668  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     6    if (!headers_sent()) {
     7        header('HTTP/1.1 500 Internal Server Error');
     8    }
     9    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     10    if (!ini_get('display_errors')) {
     11        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
     12            fwrite(STDERR, $err);
     13        } elseif (!headers_sent()) {
     14            echo $err;
     15        }
     16    }
     17    throw new RuntimeException($err);
     18}
     19
    520require_once __DIR__ . '/composer/autoload_real.php';
    621
    7 return ComposerAutoloaderInite0f0a50954d997f1b694dd1217ef0263::getLoader();
     22return ComposerAutoloaderInit3608a550a8859b37669fd2cd5b69be83::getLoader();
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/vendor/composer/ClassLoader.php

    r3389796 r3390668  
    4343class ClassLoader
    4444{
    45     /** @var ?string */
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var string|null */
    4649    private $vendorDir;
    4750
    4851    // PSR-4
    4952    /**
    50      * @var array[]
    51      * @psalm-var array<string, array<string, int>>
     53     * @var array<string, array<string, int>>
    5254     */
    5355    private $prefixLengthsPsr4 = array();
    5456    /**
    55      * @var array[]
    56      * @psalm-var array<string, array<int, string>>
     57     * @var array<string, list<string>>
    5758     */
    5859    private $prefixDirsPsr4 = array();
    5960    /**
    60      * @var array[]
    61      * @psalm-var array<string, string>
     61     * @var list<string>
    6262     */
    6363    private $fallbackDirsPsr4 = array();
     
    6565    // PSR-0
    6666    /**
    67      * @var array[]
    68      * @psalm-var array<string, array<string, string[]>>
     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>>>
    6972     */
    7073    private $prefixesPsr0 = array();
    7174    /**
    72      * @var array[]
    73      * @psalm-var array<string, string>
     75     * @var list<string>
    7476     */
    7577    private $fallbackDirsPsr0 = array();
     
    7981
    8082    /**
    81      * @var string[]
    82      * @psalm-var array<string, string>
     83     * @var array<string, string>
    8384     */
    8485    private $classMap = array();
     
    8889
    8990    /**
    90      * @var bool[]
    91      * @psalm-var array<string, bool>
     91     * @var array<string, bool>
    9292     */
    9393    private $missingClasses = array();
    9494
    95     /** @var ?string */
     95    /** @var string|null */
    9696    private $apcuPrefix;
    9797
    9898    /**
    99      * @var self[]
     99     * @var array<string, self>
    100100     */
    101101    private static $registeredLoaders = array();
    102102
    103103    /**
    104      * @param ?string $vendorDir
     104     * @param string|null $vendorDir
    105105     */
    106106    public function __construct($vendorDir = null)
    107107    {
    108108        $this->vendorDir = $vendorDir;
    109     }
    110 
    111     /**
    112      * @return string[]
     109        self::initializeIncludeClosure();
     110    }
     111
     112    /**
     113     * @return array<string, list<string>>
    113114     */
    114115    public function getPrefixes()
     
    122123
    123124    /**
    124      * @return array[]
    125      * @psalm-return array<string, array<int, string>>
     125     * @return array<string, list<string>>
    126126     */
    127127    public function getPrefixesPsr4()
     
    131131
    132132    /**
    133      * @return array[]
    134      * @psalm-return array<string, string>
     133     * @return list<string>
    135134     */
    136135    public function getFallbackDirs()
     
    140139
    141140    /**
    142      * @return array[]
    143      * @psalm-return array<string, string>
     141     * @return list<string>
    144142     */
    145143    public function getFallbackDirsPsr4()
     
    149147
    150148    /**
    151      * @return string[] Array of classname => path
    152      * @psalm-return array<string, string>
     149     * @return array<string, string> Array of classname => path
    153150     */
    154151    public function getClassMap()
     
    158155
    159156    /**
    160      * @param string[] $classMap Class to filename map
    161      * @psalm-param array<string, string> $classMap
     157     * @param array<string, string> $classMap Class to filename map
    162158     *
    163159     * @return void
     
    176172     * appending or prepending to the ones previously set for this prefix.
    177173     *
    178      * @param string          $prefix  The prefix
    179      * @param string[]|string $paths   The PSR-0 root directories
    180      * @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
    181177     *
    182178     * @return void
     
    184180    public function add($prefix, $paths, $prepend = false)
    185181    {
     182        $paths = (array) $paths;
    186183        if (!$prefix) {
    187184            if ($prepend) {
    188185                $this->fallbackDirsPsr0 = array_merge(
    189                     (array) $paths,
     186                    $paths,
    190187                    $this->fallbackDirsPsr0
    191188                );
     
    193190                $this->fallbackDirsPsr0 = array_merge(
    194191                    $this->fallbackDirsPsr0,
    195                     (array) $paths
     192                    $paths
    196193                );
    197194            }
     
    202199        $first = $prefix[0];
    203200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    204             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    205202
    206203            return;
     
    208205        if ($prepend) {
    209206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    210                 (array) $paths,
     207                $paths,
    211208                $this->prefixesPsr0[$first][$prefix]
    212209            );
     
    214211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    215212                $this->prefixesPsr0[$first][$prefix],
    216                 (array) $paths
     213                $paths
    217214            );
    218215        }
     
    223220     * appending or prepending to the ones previously set for this namespace.
    224221     *
    225      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    226      * @param string[]|string $paths   The PSR-4 base directories
    227      * @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
    228225     *
    229226     * @throws \InvalidArgumentException
     
    233230    public function addPsr4($prefix, $paths, $prepend = false)
    234231    {
     232        $paths = (array) $paths;
    235233        if (!$prefix) {
    236234            // Register directories for the root namespace.
    237235            if ($prepend) {
    238236                $this->fallbackDirsPsr4 = array_merge(
    239                     (array) $paths,
     237                    $paths,
    240238                    $this->fallbackDirsPsr4
    241239                );
     
    243241                $this->fallbackDirsPsr4 = array_merge(
    244242                    $this->fallbackDirsPsr4,
    245                     (array) $paths
     243                    $paths
    246244                );
    247245            }
     
    253251            }
    254252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    255             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    256254        } elseif ($prepend) {
    257255            // Prepend directories for an already registered namespace.
    258256            $this->prefixDirsPsr4[$prefix] = array_merge(
    259                 (array) $paths,
     257                $paths,
    260258                $this->prefixDirsPsr4[$prefix]
    261259            );
     
    264262            $this->prefixDirsPsr4[$prefix] = array_merge(
    265263                $this->prefixDirsPsr4[$prefix],
    266                 (array) $paths
     264                $paths
    267265            );
    268266        }
     
    273271     * replacing any others previously set for this prefix.
    274272     *
    275      * @param string          $prefix The prefix
    276      * @param string[]|string $paths  The PSR-0 base directories
     273     * @param string              $prefix The prefix
     274     * @param list<string>|string $paths  The PSR-0 base directories
    277275     *
    278276     * @return void
     
    291289     * replacing any others previously set for this namespace.
    292290     *
    293      * @param string          $prefix The prefix/namespace, with trailing '\\'
    294      * @param string[]|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
    295293     *
    296294     * @throws \InvalidArgumentException
     
    426424    {
    427425        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    429428
    430429            return true;
     
    477476
    478477    /**
    479      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    480      *
    481      * @return self[]
     478     * Returns the currently registered loaders keyed by their corresponding vendor directories.
     479     *
     480     * @return array<string, self>
    482481     */
    483482    public static function getRegisteredLoaders()
     
    556555        return false;
    557556    }
     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    }
    558579}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/vendor/composer/InstalledVersions.php

    r3389796 r3390668  
    2222 *
    2323 * To require its presence, you can require `composer-runtime-api ^2.0`
     24 *
     25 * @final
    2426 */
    2527class InstalledVersions
    2628{
    2729    /**
     30     * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
     31     * @internal
     32     */
     33    private static $selfDir = null;
     34
     35    /**
    2836     * @var mixed[]|null
    29      * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
     37     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3038     */
    3139    private static $installed;
    3240
    3341    /**
     42     * @var bool
     43     */
     44    private static $installedIsLocalDir;
     45
     46    /**
    3447     * @var bool|null
    3548     */
     
    3851    /**
    3952     * @var array[]
    40      * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     53     * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
    4154     */
    4255    private static $installedByVendor = array();
     
    97110        foreach (self::getInstalled() as $installed) {
    98111            if (isset($installed['versions'][$packageName])) {
    99                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     112                return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
    100113            }
    101114        }
     
    118131    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    119132    {
    120         $constraint = $parser->parseConstraints($constraint);
     133        $constraint = $parser->parseConstraints((string) $constraint);
    121134        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    122135
     
    242255    /**
    243256     * @return array
    244      * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
     257     * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
    245258     */
    246259    public static function getRootPackage()
     
    256269     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
    257270     * @return array[]
    258      * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
     271     * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
    259272     */
    260273    public static function getRawData()
     
    279292     *
    280293     * @return array[]
    281      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     294     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
    282295     */
    283296    public static function getAllRawData()
     
    302315     * @return void
    303316     *
    304      * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
     317     * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
    305318     */
    306319    public static function reload($data)
     
    308321        self::$installed = $data;
    309322        self::$installedByVendor = array();
     323
     324        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     325        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     326        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     327        // all installed packages for example
     328        self::$installedIsLocalDir = false;
     329    }
     330
     331    /**
     332     * @return string
     333     */
     334    private static function getSelfDir()
     335    {
     336        if (self::$selfDir === null) {
     337            self::$selfDir = strtr(__DIR__, '\\', '/');
     338        }
     339
     340        return self::$selfDir;
    310341    }
    311342
    312343    /**
    313344     * @return array[]
    314      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     345     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
    315346     */
    316347    private static function getInstalled()
     
    324355
    325356        if (self::$canGetVendors) {
     357            $selfDir = self::getSelfDir();
    326358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     359                $vendorDir = strtr($vendorDir, '\\', '/');
    327360                if (isset(self::$installedByVendor[$vendorDir])) {
    328361                    $installed[] = self::$installedByVendor[$vendorDir];
     
    332365                    self::$installedByVendor[$vendorDir] = $required;
    333366                    $installed[] = $required;
    334                     if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     367                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
    335368                        self::$installed = $required;
    336                         $copiedLocalDir = true;
     369                        self::$installedIsLocalDir = true;
    337370                    }
     371                }
     372                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     373                    $copiedLocalDir = true;
    338374                }
    339375            }
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/vendor/composer/autoload_classmap.php

    r3389796 r3390668  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/vendor/composer/autoload_namespaces.php

    r3389796 r3390668  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/vendor/composer/autoload_psr4.php

    r3389836 r3390668  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/vendor/composer/autoload_real.php

    r3389796 r3390668  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInite0f0a50954d997f1b694dd1217ef0263
     5class ComposerAutoloaderInit3608a550a8859b37669fd2cd5b69be83
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInite0f0a50954d997f1b694dd1217ef0263', 'loadClassLoader'), true, true);
    26         self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    27         spl_autoload_unregister(array('ComposerAutoloaderInite0f0a50954d997f1b694dd1217ef0263', 'loadClassLoader'));
     25        spl_autoload_register(array('ComposerAutoloaderInit3608a550a8859b37669fd2cd5b69be83', 'loadClassLoader'), true, true);
     26        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit3608a550a8859b37669fd2cd5b69be83', 'loadClassLoader'));
    2828
    29         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    30         if ($useStaticLoader) {
    31             require __DIR__ . '/autoload_static.php';
    32 
    33             call_user_func(\Composer\Autoload\ComposerStaticInite0f0a50954d997f1b694dd1217ef0263::getInitializer($loader));
    34         } else {
    35             $map = require __DIR__ . '/autoload_namespaces.php';
    36             foreach ($map as $namespace => $path) {
    37                 $loader->set($namespace, $path);
    38             }
    39 
    40             $map = require __DIR__ . '/autoload_psr4.php';
    41             foreach ($map as $namespace => $path) {
    42                 $loader->setPsr4($namespace, $path);
    43             }
    44 
    45             $classMap = require __DIR__ . '/autoload_classmap.php';
    46             if ($classMap) {
    47                 $loader->addClassMap($classMap);
    48             }
    49         }
     29        require __DIR__ . '/autoload_static.php';
     30        call_user_func(\Composer\Autoload\ComposerStaticInit3608a550a8859b37669fd2cd5b69be83::getInitializer($loader));
    5031
    5132        $loader->register(true);
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/vendor/composer/autoload_static.php

    r3389836 r3390668  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInite0f0a50954d997f1b694dd1217ef0263
     7class ComposerStaticInit3608a550a8859b37669fd2cd5b69be83
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3333    {
    3434        return \Closure::bind(function () use ($loader) {
    35             $loader->prefixLengthsPsr4 = ComposerStaticInite0f0a50954d997f1b694dd1217ef0263::$prefixLengthsPsr4;
    36             $loader->prefixDirsPsr4 = ComposerStaticInite0f0a50954d997f1b694dd1217ef0263::$prefixDirsPsr4;
    37             $loader->classMap = ComposerStaticInite0f0a50954d997f1b694dd1217ef0263::$classMap;
     35            $loader->prefixLengthsPsr4 = ComposerStaticInit3608a550a8859b37669fd2cd5b69be83::$prefixLengthsPsr4;
     36            $loader->prefixDirsPsr4 = ComposerStaticInit3608a550a8859b37669fd2cd5b69be83::$prefixDirsPsr4;
     37            $loader->classMap = ComposerStaticInit3608a550a8859b37669fd2cd5b69be83::$classMap;
    3838
    3939        }, null, ClassLoader::class);
  • sugar-calendar-bookings-scheduling-appointments-lite/trunk/vendor/composer/installed.php

    r3389836 r3390668  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => 'dev-master',
    4         'version' => 'dev-master',
     3        'name' => 'awesomemotive/sugar-calendar-bookings-scheduling-appointments',
     4        'pretty_version' => 'dev-develop',
     5        'version' => 'dev-develop',
     6        'reference' => '0b46df9642cf967d9c237570ea531b9949c9a6ad',
    57        'type' => 'wordpress-plugin',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => '9e873e31cb3d98d2c1a6f0f3a27712ca0e672b44',
    9         'name' => 'awesomemotive/sugar-calendar-bookings-scheduling-appointments',
    1010        'dev' => true,
    1111    ),
    1212    'versions' => array(
    1313        'awesomemotive/sugar-calendar-bookings-scheduling-appointments' => array(
    14             'pretty_version' => 'dev-master',
    15             'version' => 'dev-master',
     14            'pretty_version' => 'dev-develop',
     15            'version' => 'dev-develop',
     16            'reference' => '0b46df9642cf967d9c237570ea531b9949c9a6ad',
    1617            'type' => 'wordpress-plugin',
    1718            'install_path' => __DIR__ . '/../../',
    1819            'aliases' => array(),
    19             'reference' => '9e873e31cb3d98d2c1a6f0f3a27712ca0e672b44',
    2020            'dev_requirement' => false,
    2121        ),
     
    2323            'pretty_version' => 'dev-latest',
    2424            'version' => 'dev-latest',
     25            'reference' => '3602c597d29de335a36c0b50b96cc161d853b54f',
    2526            'type' => 'metapackage',
    2627            'install_path' => null,
     
    2829                0 => '9999999-dev',
    2930            ),
    30             'reference' => '3602c597d29de335a36c0b50b96cc161d853b54f',
    3131            'dev_requirement' => true,
    3232        ),
     
    3434            'pretty_version' => 'v17.6.0',
    3535            'version' => '17.6.0.0',
     36            'reference' => 'a6219df5df1324a0d3f1da25fb5e4b8a3307ea16',
    3637            'type' => 'library',
    3738            'install_path' => __DIR__ . '/../stripe/stripe-php',
    3839            'aliases' => array(),
    39             'reference' => 'a6219df5df1324a0d3f1da25fb5e4b8a3307ea16',
    4040            'dev_requirement' => false,
    4141        ),
     
    4343            'pretty_version' => '3.9.3',
    4444            'version' => '3.9.3.0',
     45            'reference' => 'c58cdbab17651303d406cd3b22cf9d75c71c986c',
    4546            'type' => 'wordpress-plugin',
    4647            'install_path' => __DIR__ . '/../woocommerce/action-scheduler',
    4748            'aliases' => array(),
    48             'reference' => 'c58cdbab17651303d406cd3b22cf9d75c71c986c',
    4949            'dev_requirement' => false,
    5050        ),
Note: See TracChangeset for help on using the changeset viewer.