require_once dirname(__FILE__) . '/classes/Nosto.php'; require_once dirname(__FILE__) . '/classes/NostoAccount.php'; require_once dirname(__FILE__) . '/classes/NostoAccountMeta.php'; require_once dirname(__FILE__) . '/classes/NostoCipher.php'; require_once dirname(__FILE__) . '/classes/NostoDotEnv.php'; require_once dirname(__FILE__) . '/classes/NostoMessage.php'; require_once dirname(__FILE__) . '/classes/NostoOrderConfirmation.php'; require_once dirname(__FILE__) . '/classes/NostoProductReCrawl.php'; require_once dirname(__FILE__) . '/classes/NostoValidator.php'; require_once dirname(__FILE__) . '/classes/NostoExchangeRate.php'; require_once dirname(__FILE__) . '/classes/NostoCurrency.php'; require_once dirname(__FILE__) . '/classes/NostoCurrencyCode.php'; require_once dirname(__FILE__) . '/classes/NostoCurrencySymbol.php'; require_once dirname(__FILE__) . '/classes/NostoCurrencyFormat.php'; require_once dirname(__FILE__) . '/classes/NostoCurrencyInfo.php'; // Libs require_once dirname(__FILE__) . '/libs/phpseclib/crypt/NostoCryptBase.php'; require_once dirname(__FILE__) . '/libs/phpseclib/crypt/NostoCryptRijndael.php'; require_once dirname(__FILE__) . '/libs/phpseclib/crypt/NostoCryptAES.php'; require_once dirname(__FILE__) . '/libs/phpseclib/crypt/NostoCryptRandom.php'; // Parse .env if exists and assign configured environment variables. NostoDotEnv::getInstance()->init(dirname(__FILE__)); if (isset($_ENV['NOSTO_API_BASE_URL'])) { NostoApiRequest::$baseUrl = $_ENV['NOSTO_API_BASE_URL']; } if (isset($_ENV['NOSTO_OAUTH_BASE_URL'])) { NostoOAuthClient::$baseUrl = $_ENV['NOSTO_OAUTH_BASE_URL']; } if (isset($_ENV['NOSTO_WEB_HOOK_BASE_URL'])) { NostoHttpRequest::$baseUrl = $_ENV['NOSTO_WEB_HOOK_BASE_URL']; }
* and/or other materials provided with the distribution. * * 3. Neither the name of the copyright holder nor the names of its contributors * may be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * @author Nosto Solutions Ltd <*****@*****.**> * @copyright 2016 Nosto Solutions Ltd * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause * */ // This is global bootstrap for autoloading date_default_timezone_set('Europe/Helsinki'); // Pre-load all sdk classes. require_once dirname(__FILE__) . '/../src/config.inc.php'; // Configure API, Web Hooks, and OAuth client to use Mock server when testing. NostoApiRequest::$baseUrl = 'http://localhost:3000'; NostoOAuthClient::$baseUrl = 'http://localhost:3000'; NostoHttpRequest::$baseUrl = 'http://localhost:3000'; NostoHttpRequest::buildUserAgent('PHPUnit', '1.0.0', '1.0.0');