Plugin Directory

Changeset 3300820


Ignore:
Timestamp:
05/26/2025 02:38:49 PM (10 months ago)
Author:
sendcloudbv
Message:

Release version 1.0.11

Location:
sendcloud-connected-shipping
Files:
133 added
36 edited

Legend:

Unmodified
Added
Removed
  • sendcloud-connected-shipping/trunk/changelog.txt

    r3293141 r3300820  
    11*** WooCommerce Sendcloud | The all-in-one shipping platform Changelog ***
     2
     3= 2025-05-26 - version 1.0.11 =
     4* Changed sendcloud user creation logic
     5
     6= 2025-05-20 - version 1.0.10 =
     7* Added agreement checkbox on plugin installation page
     8
     9= 2025-05-15 - version 1.0.9 =
     10* Fixed issue with creating order with service point method when using block checkout
    211
    312= 2025-05-14 - version 1.0.8 =
  • sendcloud-connected-shipping/trunk/composer.lock

    r3266337 r3300820  
    1010    "aliases": [],
    1111    "minimum-stability": "stable",
    12     "stability-flags": [],
     12    "stability-flags": {},
    1313    "prefer-stable": false,
    1414    "prefer-lowest": false,
     
    1717        "ext-json": "*"
    1818    },
    19     "platform-dev": [],
    20     "plugin-api-version": "2.2.0"
     19    "platform-dev": {},
     20    "plugin-api-version": "2.6.0"
    2121}
  • sendcloud-connected-shipping/trunk/i18n/languages/sendcloud-connected-shipping-de_DE.po

    r3266337 r3300820  
    11msgid ""
    22msgstr ""
     3"Project-Id-Version: \n"
     4"POT-Creation-Date: \n"
     5"PO-Revision-Date: \n"
     6"Last-Translator: \n"
     7"Language-Team: \n"
    38"Language: de_DE\n"
    49"MIME-Version: 1.0\n"
     
    611"Content-Transfer-Encoding: 8bit\n"
    712"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    8 "X-Generator: Phrase (phrase.com)\n"
     13"X-Generator: Poedit 3.6\n"
    914
    1015#: includes/ServicePoint/Shipping/class-sc-service-point-shipping-method.php:62
     
    971976msgstr "Willst du eine Einstellung ändern?"
    972977
    973 #: resources/views/wc-settings/sendcloud-page.php:210
    974 msgid "Want to see your WooCommerce orders in the Sendcloud Panel?"
    975 msgstr "Du möchtest deine WooCommerce-Bestellungen in Sendcloud sehen?"
     978#: resources/views/wc-settings/sendcloud-page.php:31
     979msgid "This plugin will create a new user named sendcloud_api"
     980msgstr "Durch die Verbindung erstellt dieses Plugin einen neuen Benutzer namens <code>sendcloud_api_***</code> mit der Rolle <a href=\"https://woocommerce.com/posts/a-guide-to-woocommerce-user-roles-permissions-and-security/#section-2\" target=\"_blank\">Shop-Manager</a>. Ein WooCommerce-REST-API-Schlüssel mit Lese- und Schreibberechtigungen wird generiert, um eine sichere Verbindung mit Sendcloud herzustellen"
     981
     982msgid "I acknowledge and agree"
     983msgstr "Ich bestätige und stimme der Erstellung dieses Benutzers und des API-Schlüssels zu."
    976984
    977985msgid "Warehouse"
  • sendcloud-connected-shipping/trunk/i18n/languages/sendcloud-connected-shipping-en_GB.po

    r3266337 r3300820  
    11msgid ""
    22msgstr ""
     3"Project-Id-Version: \n"
     4"POT-Creation-Date: \n"
     5"PO-Revision-Date: \n"
     6"Last-Translator: \n"
     7"Language-Team: \n"
    38"Language: en_GB\n"
    49"MIME-Version: 1.0\n"
     
    611"Content-Transfer-Encoding: 8bit\n"
    712"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    8 "X-Generator: Phrase (phrase.com)\n"
     13"X-Generator: Poedit 3.6\n"
    914
    1015#: includes/ServicePoint/Shipping/class-sc-service-point-shipping-method.php:62
     
    691696#: resources/views/wc-settings/sendcloud-page.php:190
    692697msgid "Sendcloud Integration"
    693 msgstr "v"
     698msgstr "Sendcloud Integration"
    694699
    695700msgid "Sendcloud is amazing!"
     
    971976msgstr "Want to change any setting?"
    972977
    973 #: resources/views/wc-settings/sendcloud-page.php:210
    974 msgid "Want to see your WooCommerce orders in the Sendcloud Panel?"
    975 msgstr "Want to see your WooCommerce orders in the Sendcloud Panel?"
     978#: resources/views/wc-settings/sendcloud-page.php:31
     979msgid "This plugin will create a new user named sendcloud_api"
     980msgstr "By connecting, this plugin will create a new user named <code>sendcloud_api_***</code> with the <a href=\"https://woocommerce.com/posts/a-guide-to-woocommerce-user-roles-permissions-and-security/#section-2\" target=\"_blank\">Shop Manager</a> role. A WooCommerce REST API key with read and write permissions will be generated to establish a secure connection with Sendcloud"
     981
     982msgid "I acknowledge and agree"
     983msgstr "I acknowledge and agree to the creation of this user and API key"
    976984
    977985msgid "Warehouse"
  • sendcloud-connected-shipping/trunk/i18n/languages/sendcloud-connected-shipping-en_US.po

    r3266337 r3300820  
    966966msgstr "Want to change any setting?"
    967967
    968 #: resources/views/wc-settings/sendcloud-page.php:210
    969 msgid "Want to see your WooCommerce orders in the Sendcloud Panel?"
    970 msgstr "Want to see your WooCommerce orders in the Sendcloud Panel?"
     968#: resources/views/wc-settings/sendcloud-page.php:31
     969msgid "This plugin will create a new user named sendcloud_api"
     970msgstr "By connecting, this plugin will create a new user named <code>sendcloud_api_***</code> with the <a href=\"https://woocommerce.com/posts/a-guide-to-woocommerce-user-roles-permissions-and-security/#section-2\" target=\"_blank\">Shop Manager</a> role. A WooCommerce REST API key with read and write permissions will be generated to establish a secure connection with Sendcloud"
     971
     972msgid "I acknowledge and agree"
     973msgstr "I acknowledge and agree to the creation of this user and API key"
    971974
    972975msgid "Warehouse"
  • sendcloud-connected-shipping/trunk/i18n/languages/sendcloud-connected-shipping-es_ES.po

    r3266337 r3300820  
    11msgid ""
    22msgstr ""
     3"Project-Id-Version: \n"
     4"POT-Creation-Date: \n"
     5"PO-Revision-Date: \n"
     6"Last-Translator: \n"
     7"Language-Team: \n"
    38"Language: es_ES\n"
    49"MIME-Version: 1.0\n"
     
    611"Content-Transfer-Encoding: 8bit\n"
    712"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    8 "X-Generator: Phrase (phrase.com)\n"
     13"X-Generator: Poedit 3.6\n"
    914
    1015#: includes/ServicePoint/Shipping/class-sc-service-point-shipping-method.php:62
     
    753758msgstr ""
    754759"La entrega en puntos de servicio es compatible con la versión anterior, por favor, configura la entrega en puntos de servicio a través del Checkout Dinámico en <a href=\"https://panel.sendcloud.sc/v2/checkout/configurations\" target=\"_blank\">Sendcloud</a>.\n"
    755 "\n"
    756 ""
     760" "
    757761
    758762msgid "Service point delivery is supported for legacy purposes, please set up Service point delivery via Dynamic Checkout in Sendcloud."
     
    824828#: resources/views/wc-settings/sendcloud-page.php:100
    825829msgid "SHIPPING RATE"
    826 msgstr ""
    827 "TARIFA DE ENVÍO\n"
    828 ""
     830msgstr "TARIFA DE ENVÍO"
    829831
    830832#: resources/views/wc-settings/sendcloud-page.php:167
     
    976978msgstr "¿Quieres cambiar algún ajuste?"
    977979
    978 #: resources/views/wc-settings/sendcloud-page.php:210
    979 msgid "Want to see your WooCommerce orders in the Sendcloud Panel?"
    980 msgstr "¿Quieres ver tus pedidos de WooCommerce en el Panel de Sendcloud?"
     980#: resources/views/wc-settings/sendcloud-page.php:31
     981msgid "This plugin will create a new user named sendcloud_api"
     982msgstr "Al conectar, este plugin se creará un nuevo usuario llamado <code>sendcloud_api_***</code> con el rol de <a href=\"https://woocommerce.com/posts/a-guide-to-woocommerce-user-roles-permissions-and-security/#section-2\" target=\"_blank\">Gerente de tienda</a>. Se generará una clave de la API REST de WooCommerce con permisos de lectura y escritura para establecer una conexión segura con Sendcloud"
     983
     984msgid "I acknowledge and agree"
     985msgstr "Reconozco y acepto la creación de este usuario y clave API."
    981986
    982987msgid "Warehouse"
  • sendcloud-connected-shipping/trunk/i18n/languages/sendcloud-connected-shipping-fr_FR.po

    r3266337 r3300820  
    971971msgstr "Vous souhaitez modifier un paramètre ?"
    972972
    973 #: resources/views/wc-settings/sendcloud-page.php:210
    974 msgid "Want to see your WooCommerce orders in the Sendcloud Panel?"
    975 msgstr "Vous voulez voir vos commandes WooCommerce depuis le panel Sendcloud ?"
     973#: resources/views/wc-settings/sendcloud-page.php:31
     974msgid "This plugin will create a new user named sendcloud_api"
     975msgstr "En vous connectant, ce plugin créera un nouvel utilisateur nommé <code>sendcloud_api_***</code> avec le rôle de <a href=\"https://woocommerce.com/posts/a-guide-to-woocommerce-user-roles-permissions-and-security/#section-2\" target=\"_blank\">Gérant de boutique</a>. Une clé API REST WooCommerce avec des autorisations de lecture et d’écriture sera générée pour établir une connexion sécurisée avec Sendcloud"
     976
     977msgid "I acknowledge and agree"
     978msgstr "Je reconnais et accepte la création de cet utilisateur et de cette clé API"
    976979
    977980msgid "Warehouse"
  • sendcloud-connected-shipping/trunk/i18n/languages/sendcloud-connected-shipping-it_IT.po

    r3266337 r3300820  
    971971msgstr "Vuoi cambiare le impostazioni?"
    972972
    973 #: resources/views/wc-settings/sendcloud-page.php:210
    974 msgid "Want to see your WooCommerce orders in the Sendcloud Panel?"
    975 msgstr "Vuoi visualizzare gli ordini di WooCommerce nel tuo account Sendcloud?"
     973#: resources/views/wc-settings/sendcloud-page.php:31
     974msgid "This plugin will create a new user named sendcloud_api"
     975msgstr "Collegando il tuo negozio, questo plugin creerà un nuovo utente chiamato <code>sendcloud_api_***</code> con il ruolo di <a href=\"https://woocommerce.com/posts/a-guide-to-woocommerce-user-roles-permissions-and-security/#section-2\" target=\"_blank\">Gestore del negozio</a>. Verrà generata una chiave API REST di WooCommerce con permessi di lettura e scrittura per stabilire una connessione sicura con Sendcloud"
     976
     977msgid "I acknowledge and agree"
     978msgstr "Confermo e accetto la creazione di questo utente e della chiave API."
    976979
    977980msgid "Warehouse"
  • sendcloud-connected-shipping/trunk/i18n/languages/sendcloud-connected-shipping-nl_NL.po

    r3266337 r3300820  
    971971msgstr "Wil je een instelling veranderen?"
    972972
    973 #: resources/views/wc-settings/sendcloud-page.php:210
    974 msgid "Want to see your WooCommerce orders in the Sendcloud Panel?"
    975 msgstr "WooCommerce bestellingen zien in het Sendcloud Panel?"
     973#: resources/views/wc-settings/sendcloud-page.php:31
     974msgid "This plugin will create a new user named sendcloud_api"
     975msgstr "Bij het verbinden maakt deze plugin een nieuwe gebruiker aan met de naam <code>sendcloud_api_***</code> en de rol <a href=\"https://woocommerce.com/posts/a-guide-to-woocommerce-user-roles-permissions-and-security/#section-2\" target=\"_blank\">Winkelmanager</a>. Er wordt een WooCommerce REST API-sleutel met lees- en schrijfrechten gegenereerd om een veilige verbinding met Sendcloud tot stand te brengen"
     976
     977msgid "I acknowledge and agree"
     978msgstr "Ik bevestig en ga akkoord met het aanmaken van deze gebruiker en API-sleutel"
    976979
    977980msgid "Warehouse"
  • sendcloud-connected-shipping/trunk/includes/Repositories/class-api-key-repository.php

    r3266337 r3300820  
    1616    const WC_API_KEYS_TABLE_NAME = 'woocommerce_api_keys';
    1717
    18     /**
    19      * Gets fresh api_key
    20      *
    21      * @return SCCSP_Api_Key
    22      */
    23     public function get_fresh_credentials() {
    24         $api_key = $this->get_api_key();
     18    /**
     19     * @var SCCSP_Config_Repository
     20     */
     21    private $config_repository;
     22
     23    /**
     24     * Config_Service constructor.
     25     */
     26    public function __construct() {
     27        $this->config_repository = new SCCSP_Config_Repository();
     28    }
     29
     30    /**
     31     * Gets fresh api_key
     32     *
     33     * @return SCCSP_Api_Key
     34     */
     35    public function get_fresh_credentials() {
     36        $api_key = $this->get_api_key();
    2537
    2638        if ( is_null( $api_key ) ) {
     
    170182     */
    171183    private function get_user_id() {
    172         $username = 'sendcloud_api';
    173         $password = wp_generate_password();
     184        $username = $this->get_user_name();
    174185
    175186        // Check if user exists
     
    177188
    178189        if (!$user) {
     190            $password = wp_generate_password();
    179191            // User does not exist, create new admin user
    180192            $user_id = wp_create_user($username, $password);
     
    191203        }
    192204
    193         return $user_id;
    194     }
     205        return $user_id;
     206    }
     207
     208    /**
     209     * Generates user name
     210     *
     211     * @return string
     212     */
     213    private function get_user_name()
     214    {
     215        $user_name = $this->config_repository->get('USER_NAME');
     216
     217        if (!$user_name) {
     218            $user_name = 'sendcloud_api_' . wp_generate_password( 10, false );
     219            $this->config_repository->save( 'USER_NAME', $user_name);
     220        }
     221
     222        return $user_name;
     223    }
    195224}
  • sendcloud-connected-shipping/trunk/includes/ServicePoint/Checkout/class-checkout-block-handler.php

    r3266337 r3300820  
    2828        );
    2929
    30         add_action( 'woocommerce_store_api_checkout_order_processed',
    31             array( $this, 'validate_and_save' ) );
     30        add_action( 'woocommerce_store_api_checkout_update_order_from_request',
     31            array( $this, 'validate_and_save' ),
     32            10,
     33            2
     34        );
    3235    }
    3336
     
    5659     *
    5760     * @param  \WC_Order  $order
     61     * @param \WP_REST_Request $request
    5862     *
    5963     * @return void
    6064     */
    61     public function validate_and_save( \WC_Order $order ) {
     65    public function validate_and_save(\WC_Order $order, \WP_REST_Request $request) {
    6266        /**
    6367         * This method will be adjusted after Sendcloud team finishes React.js script
     
    7579            return;
    7680        }
    77         $nonce                  = $this->get_nonce();
    78         $service_point_selected = isset( $_POST[ self::SERVICE_POINT_EXTRA_FIELD_NAME_V2 ] )
    79                                   && ( ( $nonce && wp_verify_nonce( sanitize_text_field( $nonce ),
    80                         'woocommerce-process_checkout' ) )
    81                                        || WC()->session->get( 'reload_checkout', false ) );
     81        $nonce                  = $this->get_wp_block_nonce();
     82        $service_point_selected = $this->fetch_service_point_data($request) && $nonce;
    8283
    8384        if ( ! $service_point_selected ) {
     
    8687            $order_repository = new SCCSP_Order_Repository();
    8788
    88             $service_point_json = isset( $_POST[ self::SERVICE_POINT_EXTRA_FIELD_NAME_V2 ] )
    89                 ? sanitize_text_field( wp_unslash( $_POST[ self::SERVICE_POINT_EXTRA_FIELD_NAME_V2 ] ) ) : '';
     89            $service_point_json = $this->fetch_service_point_data($request)
     90                ? sanitize_text_field(wp_unslash($this->fetch_service_point_data($request))) : '';
    9091            $service_point      = json_decode( $service_point_json, true );
    9192            if ( isset( $service_point['id'], $service_point['toPostalCode'], $service_point['name'],
     
    100101        }
    101102    }
     103
     104    /**
     105     * Fetch service point data from request
     106     *
     107     * @param \WP_REST_Request $request
     108     *
     109     * @return mixed|null
     110     */
     111    public function fetch_service_point_data(\WP_REST_Request $request) {
     112        $body = json_decode($request->get_body(), true);
     113
     114        if (isset($body['extensions']['sendcloud-connected-shipping']['service_point'])) {
     115            return $body['extensions']['sendcloud-connected-shipping']['service_point'];
     116        }
     117
     118        return null;
     119    }
     120
     121    /**
     122     * Fetch wp nonce from $_SERVER
     123     *
     124     * @return string|null
     125     */
     126    function get_wp_block_nonce()
     127    {
     128        if (isset($_SERVER['HTTP_X_WP_NONCE'])) {
     129            return sanitize_text_field(wp_unslash($_SERVER['HTTP_X_WP_NONCE']));
     130        }
     131
     132        return null;
     133    }
    102134}
  • sendcloud-connected-shipping/trunk/includes/ServicePoint/Checkout/class-checkout-handler.php

    r3266337 r3300820  
    7474        wp_add_inline_script( 'sendcloud-v2-service-point-js', $service_point_data_script );
    7575        wp_enqueue_script( 'sendcloud-v2-service-point-js' );
     76
     77        wp_enqueue_script( 'sendcloud-v2-service-point-block',
     78            SCCSP_Sendcloud::get_plugin_url( 'resources/js/service-point-block.js' ),
     79            array( 'jquery' ),
     80            SCCSP_Sendcloud::VERSION,
     81            true
     82        );
    7683    }
    7784
  • sendcloud-connected-shipping/trunk/includes/class-sendcloud.php

    r3266337 r3300820  
    2727
    2828class SCCSP_Sendcloud {
    29     const VERSION = '1.0.6';
     29    const VERSION = '1.0.11';
    3030
    3131    const INTEGRATION_NAME = 'sendcloudshipping';
  • sendcloud-connected-shipping/trunk/readme.txt

    r3293141 r3300820  
    11=== Sendcloud Shipping ===
    2 Version: 1.0.8
     2Version: 1.0.11
    33Developer: SendCloud Global B.V.
    44Developer URI: http://sendcloud.com
     
    66Requires at least: 4.9
    77Requires PHP: 7.0
    8 Tested up to: 6.7
    9 Stable tag: 1.0.8
     8Tested up to: 6.8
     9Stable tag: 1.0.11
    1010License: GPLv2
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9191
    9292== Changelog ==
     93= 1.0.11 =
     94* Changed sendcloud user creation logic
     95
     96= 1.0.10 =
     97* Changed the user name created for the plugin. Added connect agreement
     98
     99= 1.0.9 =
     100* Fixed issue with creating order with service point method when using block checkout
    93101
    94102= 1.0.8 =
  • sendcloud-connected-shipping/trunk/resources/css/sendcloud.css

    r3274838 r3300820  
    123123    margin: 0;
    124124    font-weight: normal;
     125}
     126
     127.sendcloud-button-text-container .sendcloud-agreement-container {
     128    padding-top: 10px;
    125129}
    126130
     
    150154}
    151155
     156.sendcloud-button--primary:disabled {
     157    background-color: grey;
     158    border-color: grey;
     159    cursor: not-allowed;
     160    pointer-events: all !important;
     161}
     162
     163.sendcloud-button--primary:disabled:hover {
     164    background-color: grey;
     165    border-color: grey;
     166}
     167
    152168.sendcloud-button--primary:hover {
    153169    background-color: #4d5e81;
  • sendcloud-connected-shipping/trunk/resources/js/sendcloud.page.js

    r3274838 r3300820  
    33    $(document).ready(function () {
    44        let button = $('#sendcloud_shipping_connect .connect-button'),
     5            agreement = $('#cs_agreement'),
    56            connectingLabel = $('#sc-connecting-label')[0],
    67            connectContainer = $('#sc-connect-container')[0],
    78            dashboardContainer = $('#sc-dashboard-container')[0];
     9
     10        agreement.change(function () {
     11            if (this.checked) {
     12                button.removeAttr('disabled');
     13            } else {
     14                button.attr('disabled','disabled');
     15            }
     16        });
     17
    818        button.click(function () {
    919            let data = {
     
    1424                    window.open(response.redirect_url, '_blank');
    1525                    button[0].innerHTML = '<div class="sc-loader"></div> ' + connectingLabel.value;
     26                    agreement.attr('disabled','disabled');
    1627                }
    1728            });
  • sendcloud-connected-shipping/trunk/resources/views/wc-settings/sendcloud-page.php

    r3274838 r3300820  
    2424                echo esc_attr('sc-hidden');
    2525            }?>">
    26                 <p>
    27                     <?php esc_html_e( 'Want to see your WooCommerce orders in the Sendcloud Panel?', 'sendcloud-connected-shipping' ); ?>
    28                 </p>
    29                 <button class="sendcloud-button sendcloud-button--primary connect-button<?php echo esc_attr( !$data['permalinks_enabled'] ? ' sendcloud-button-disabled' : '' ); ?>">
     26                <button disabled class="sendcloud-button sendcloud-button--primary connect-button<?php echo esc_attr( !$data['permalinks_enabled'] ? ' sendcloud-button-disabled' : '' ); ?>">
    3027                    <?php esc_html_e( 'Connect', 'sendcloud-connected-shipping' ); ?>
    3128                </button>
     29                <div class="sendcloud-agreement-container">
     30                    <p>
     31                        <?php echo translate( 'This plugin will create a new user named sendcloud_api', 'sendcloud-connected-shipping' ); ?>
     32                    </p>
     33                    <p>
     34                        <label for="cs_agreement" class="show_if_simple tips has-checkbox" style="">
     35                            <input id="cs_agreement" name="cs_agreement" type="checkbox"><?php esc_html_e( 'I acknowledge and agree', 'sendcloud-connected-shipping' ); ?>
     36                        </label>
     37                    </p>
     38                </div>
    3239            </div>
    3340
  • sendcloud-connected-shipping/trunk/sendcloud-connected-shipping.php

    r3293141 r3300820  
    44 * Plugin URI: https://wordpress.org/plugins/sendcloud-connected-shipping/
    55 * Description: Sendcloud plugin.
    6  * Version: 1.0.8
     6 * Version: 1.0.11
    77 * Woo:
    88 * Author: Sendcloud B.V.
     
    1010 * License: GPLv2
    1111 * Requires at least: 4.9
    12  * Tested up to: 6.7
     12 * Tested up to: 6.8
    1313 *
    1414 * Text Domain: sendcloud-connected-shipping
    1515 * Domain Path: /i18n/languages/
    1616 * WC requires at least: 3.5.0
    17  * WC tested up to: 9.7.1
     17 * WC tested up to: 9.8.5
    1818 *
    1919 * @package sendcloud-connected-shipping
  • sendcloud-connected-shipping/trunk/uninstall.php

    r3266337 r3300820  
    1212// ***********************************************************************************
    1313function sccsp_load_woocommerce() {
    14     if ( ! empty( $GLOBALS['woocommerce'] ) ) {
    15         return;
    16     }
     14    if ( ! empty( $GLOBALS['woocommerce'] ) ) {
     15        return;
     16    }
    1717
    18     $standard_paths = array(
    19         WP_PLUGIN_DIR . '/woocommerce/woocommerce.php',
    20         WPMU_PLUGIN_DIR . '/woocommerce/woocommerce.php',
    21         ABSPATH . WP_PLUGIN_DIR . '/woocommerce/woocommerce.php',
    22         ABSPATH . WPMU_PLUGIN_DIR . '/woocommerce/woocommerce.php',
    23     );
     18    $standard_paths = array(
     19        WP_PLUGIN_DIR . '/woocommerce/woocommerce.php',
     20        WPMU_PLUGIN_DIR . '/woocommerce/woocommerce.php',
     21        ABSPATH . WP_PLUGIN_DIR . '/woocommerce/woocommerce.php',
     22        ABSPATH . WPMU_PLUGIN_DIR . '/woocommerce/woocommerce.php',
     23    );
    2424
    25     foreach ( $standard_paths as $standard_path ) {
    26         if ( file_exists( $standard_path ) ) {
    27             require_once $standard_path;
     25    foreach ( $standard_paths as $standard_path ) {
     26        if ( file_exists( $standard_path ) ) {
     27            require_once $standard_path;
    2828
    29             break;
    30         }
    31     }
     29            break;
     30        }
     31    }
    3232}
    3333
    3434// ***********************************************************************************
    35 // STEP 2. ***************************************************************************
     35// STEP 3. ***************************************************************************
     36// Delete user and key.                                                                    *
     37// ***********************************************************************************
     38function sccsp_drop_user_and_api_keys( wpdb $wpdb ) {
     39    $query = "SELECT * FROM {$wpdb->prefix}sendcloud_configs WHERE `key`='USER_NAME'";
     40    $result = $wpdb->get_results( $query, ARRAY_A );
     41
     42    if ( $result ) {
     43        $user_name = $result[0]['value'];
     44        $user = get_user_by( 'login', $user_name );
     45        if ($user) {
     46            wp_delete_user($user->ID);
     47        }
     48    }
     49}
     50
     51// ***********************************************************************************
     52// STEP 3. ***************************************************************************
    3653// Drop database.                                                                    *
    3754// ***********************************************************************************
    3855
    3956function sccsp_drop_database( wpdb $wpdb ) {
    40     $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}sendcloud_configs" );
     57    $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}sendcloud_configs" );
    4158
    42     delete_option( 'SCCSP_SENDCLOUD_SCHEMA_VERSION' );
     59    delete_option( 'SCCSP_SENDCLOUD_SCHEMA_VERSION' );
    4360}
    4461
    4562// ***********************************************************************************
    46 // STEP 3. ***************************************************************************
     63// STEP 4. ***************************************************************************
    4764// Execute.                                                                          *
    4865// ***********************************************************************************
     
    5067global $wpdb;
    5168if ( is_multisite() ) {
    52     $sites = get_sites();
    53     foreach ( $sites as $site ) {
    54         switch_to_blog( $site->blog_id );
    55         sccsp_drop_database( $wpdb );
    56         restore_current_blog();
    57     }
     69    $sites = get_sites();
     70    foreach ( $sites as $site ) {
     71        switch_to_blog( $site->blog_id );
     72        sccsp_drop_user_and_api_keys( $wpdb );
     73        sccsp_drop_database( $wpdb );
     74        restore_current_blog();
     75    }
    5876} else {
    59     sccsp_drop_database( $wpdb );
     77    sccsp_drop_user_and_api_keys( $wpdb );
     78    sccsp_drop_database( $wpdb );
    6079}
  • sendcloud-connected-shipping/trunk/vendor/autoload.php

    r3293141 r3300820  
    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    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
     21}
     22
    523require_once __DIR__ . '/composer/autoload_real.php';
    624
    7 return ComposerAutoloaderInit275cb1d60ba221a798601b5e709ddfda::getLoader();
     25return ComposerAutoloaderInit799da1d7fc2f83b97f37781f90812d9d::getLoader();
  • sendcloud-connected-shipping/trunk/vendor/composer/ClassLoader.php

    r3266337 r3300820  
    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 }
  • sendcloud-connected-shipping/trunk/vendor/composer/InstalledVersions.php

    r3266337 r3300820  
    2222 *
    2323 * To require its presence, you can require `composer-runtime-api ^2.0`
     24 *
     25 * @final
    2426 */
    2527class InstalledVersions
     
    2729    /**
    2830     * @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
     31     * @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
    3032     */
    3133    private static $installed;
    3234
    3335    /**
     36     * @var bool
     37     */
     38    private static $installedIsLocalDir;
     39
     40    /**
    3441     * @var bool|null
    3542     */
     
    3845    /**
    3946     * @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}>}>
     47     * @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[]}>}>
    4148     */
    4249    private static $installedByVendor = array();
     
    97104        foreach (self::getInstalled() as $installed) {
    98105            if (isset($installed['versions'][$packageName])) {
    99                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     106                return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
    100107            }
    101108        }
     
    118125    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    119126    {
    120         $constraint = $parser->parseConstraints($constraint);
     127        $constraint = $parser->parseConstraints((string) $constraint);
    121128        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    122129
     
    242249    /**
    243250     * @return array
    244      * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
     251     * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
    245252     */
    246253    public static function getRootPackage()
     
    256263     * @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.
    257264     * @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}>}
     265     * @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[]}>}
    259266     */
    260267    public static function getRawData()
     
    279286     *
    280287     * @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}>}>
     288     * @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[]}>}>
    282289     */
    283290    public static function getAllRawData()
     
    302309     * @return void
    303310     *
    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
     311     * @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
    305312     */
    306313    public static function reload($data)
     
    308315        self::$installed = $data;
    309316        self::$installedByVendor = array();
     317
     318        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     319        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     320        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     321        // all installed packages for example
     322        self::$installedIsLocalDir = false;
    310323    }
    311324
    312325    /**
    313326     * @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}>}>
     327     * @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[]}>}>
    315328     */
    316329    private static function getInstalled()
     
    321334
    322335        $installed = array();
     336        $copiedLocalDir = false;
    323337
    324338        if (self::$canGetVendors) {
     339            $selfDir = strtr(__DIR__, '\\', '/');
    325340            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     341                $vendorDir = strtr($vendorDir, '\\', '/');
    326342                if (isset(self::$installedByVendor[$vendorDir])) {
    327343                    $installed[] = self::$installedByVendor[$vendorDir];
    328344                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    329                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
    330                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    331                         self::$installed = $installed[count($installed) - 1];
     345                    /** @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[]}>} $required */
     346                    $required = require $vendorDir.'/composer/installed.php';
     347                    self::$installedByVendor[$vendorDir] = $required;
     348                    $installed[] = $required;
     349                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
     350                        self::$installed = $required;
     351                        self::$installedIsLocalDir = true;
    332352                    }
     353                }
     354                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     355                    $copiedLocalDir = true;
    333356                }
    334357            }
     
    339362            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    340363            if (substr(__DIR__, -8, 1) !== 'C') {
    341                 self::$installed = require __DIR__ . '/installed.php';
     364                /** @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[]}>} $required */
     365                $required = require __DIR__ . '/installed.php';
     366                self::$installed = $required;
    342367            } else {
    343368                self::$installed = array();
    344369            }
    345370        }
    346         $installed[] = self::$installed;
     371
     372        if (self::$installed !== array() && !$copiedLocalDir) {
     373            $installed[] = self::$installed;
     374        }
    347375
    348376        return $installed;
  • sendcloud-connected-shipping/trunk/vendor/composer/LICENSE

    r3293141 r3300820  
     1
    12Copyright (c) Nils Adermann, Jordi Boggiano
    23
     
    1819OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    1920THE SOFTWARE.
     21
  • sendcloud-connected-shipping/trunk/vendor/composer/autoload_classmap.php

    r3274838 r3300820  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
     
    2323    'SCCSP\\SendCloud\\Connected\\Shipping\\Database\\Migrations\\Migration_1_0_0' => $baseDir . '/database/Migrations/migration.v.1.0.0.php',
    2424    'SCCSP\\SendCloud\\Connected\\Shipping\\Database\\Migrations\\Migration_1_0_1' => $baseDir . '/database/Migrations/migration.v.1.0.1.php',
     25    'SCCSP\\SendCloud\\Connected\\Shipping\\Database\\Migrations\\Migration_1_0_11' => $baseDir . '/database/Migrations/migration.v.1.0.11.php',
    2526    'SCCSP\\SendCloud\\Connected\\Shipping\\Database\\SCCSP_Abstract_Migration' => $baseDir . '/database/class-abstract-migration.php',
    2627    'SCCSP\\SendCloud\\Connected\\Shipping\\Database\\SCCSP_Migrator' => $baseDir . '/database/class-migrator.php',
  • sendcloud-connected-shipping/trunk/vendor/composer/autoload_namespaces.php

    r3266337 r3300820  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • sendcloud-connected-shipping/trunk/vendor/composer/autoload_psr4.php

    r3266337 r3300820  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • sendcloud-connected-shipping/trunk/vendor/composer/autoload_real.php

    r3293141 r3300820  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit275cb1d60ba221a798601b5e709ddfda
     5class ComposerAutoloaderInit799da1d7fc2f83b97f37781f90812d9d
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit275cb1d60ba221a798601b5e709ddfda', 'loadClassLoader'), true, true);
    28         self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit275cb1d60ba221a798601b5e709ddfda', 'loadClassLoader'));
     27        spl_autoload_register(array('ComposerAutoloaderInit799da1d7fc2f83b97f37781f90812d9d', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit799da1d7fc2f83b97f37781f90812d9d', 'loadClassLoader'));
    3030
    31         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    32         if ($useStaticLoader) {
    33             require __DIR__ . '/autoload_static.php';
    34 
    35             call_user_func(\Composer\Autoload\ComposerStaticInit275cb1d60ba221a798601b5e709ddfda::getInitializer($loader));
    36         } else {
    37             $map = require __DIR__ . '/autoload_namespaces.php';
    38             foreach ($map as $namespace => $path) {
    39                 $loader->set($namespace, $path);
    40             }
    41 
    42             $map = require __DIR__ . '/autoload_psr4.php';
    43             foreach ($map as $namespace => $path) {
    44                 $loader->setPsr4($namespace, $path);
    45             }
    46 
    47             $classMap = require __DIR__ . '/autoload_classmap.php';
    48             if ($classMap) {
    49                 $loader->addClassMap($classMap);
    50             }
    51         }
     31        require __DIR__ . '/autoload_static.php';
     32        call_user_func(\Composer\Autoload\ComposerStaticInit799da1d7fc2f83b97f37781f90812d9d::getInitializer($loader));
    5233
    5334        $loader->register(true);
  • sendcloud-connected-shipping/trunk/vendor/composer/autoload_static.php

    r3293141 r3300820  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit275cb1d60ba221a798601b5e709ddfda
     7class ComposerStaticInit799da1d7fc2f83b97f37781f90812d9d
    88{
    99    public static $classMap = array (
     
    2424        'SCCSP\\SendCloud\\Connected\\Shipping\\Database\\Migrations\\Migration_1_0_0' => __DIR__ . '/../..' . '/database/Migrations/migration.v.1.0.0.php',
    2525        'SCCSP\\SendCloud\\Connected\\Shipping\\Database\\Migrations\\Migration_1_0_1' => __DIR__ . '/../..' . '/database/Migrations/migration.v.1.0.1.php',
     26        'SCCSP\\SendCloud\\Connected\\Shipping\\Database\\Migrations\\Migration_1_0_11' => __DIR__ . '/../..' . '/database/Migrations/migration.v.1.0.11.php',
    2627        'SCCSP\\SendCloud\\Connected\\Shipping\\Database\\SCCSP_Abstract_Migration' => __DIR__ . '/../..' . '/database/class-abstract-migration.php',
    2728        'SCCSP\\SendCloud\\Connected\\Shipping\\Database\\SCCSP_Migrator' => __DIR__ . '/../..' . '/database/class-migrator.php',
     
    7172    {
    7273        return \Closure::bind(function () use ($loader) {
    73             $loader->classMap = ComposerStaticInit275cb1d60ba221a798601b5e709ddfda::$classMap;
     74            $loader->classMap = ComposerStaticInit799da1d7fc2f83b97f37781f90812d9d::$classMap;
    7475
    7576        }, null, ClassLoader::class);
  • sendcloud-connected-shipping/trunk/vendor/composer/installed.php

    r3293141 r3300820  
    11<?php return array(
    22    'root' => array(
     3        'name' => 'sendcloud/woocommerce',
    34        'pretty_version' => 'dev-main',
    45        'version' => 'dev-main',
     6        'reference' => '1cb75feac6f7a19c8c0e8a6474fea04d6404cf7c',
    57        'type' => 'library',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => '1ad06eb8c225340f43928a5e878536e68279d623',
    9         'name' => 'sendcloud/woocommerce',
    1010        'dev' => false,
    1111    ),
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
     16            'reference' => '1cb75feac6f7a19c8c0e8a6474fea04d6404cf7c',
    1617            'type' => 'library',
    1718            'install_path' => __DIR__ . '/../../',
    1819            'aliases' => array(),
    19             'reference' => '1ad06eb8c225340f43928a5e878536e68279d623',
    2020            'dev_requirement' => false,
    2121        ),
Note: See TracChangeset for help on using the changeset viewer.