コード例 #1
0
ファイル: setup.php プロジェクト: adrianlinner333/laravel-5
 public static function checkDependencies()
 {
     HelperSetup::checkPhpExtentionIsLoaded('mcrypt');
     HelperSetup::checkPhpExtentionIsLoaded('curl');
     HelperSetup::checkPhpExtentionIsLoaded('mysql');
     HelperSetup::checkPhpExtentionIsLoaded('pdo');
     HelperSetup::checkPhpExtentionIsLoaded('pdo_mysql');
     HelperSetup::checkPhpExtentionIsLoaded('json');
 }
コード例 #2
0
ファイル: index.php プロジェクト: adrianlinner333/laravel-5
<?php

/**
 * Start new or resume existing session
 */
session_start();
define('DEMO_PATH', dirname(__FILE__));
define('BASE_PATH', substr($_SERVER['SCRIPT_NAME'], 0, strlen($_SERVER['SCRIPT_NAME']) - 9));
require_once DEMO_PATH . '/bootstrap.php';
HelperSetup::checkDependencies();
// Is required for initialiize the the SagePay Api
$config = SagepaySettings::getInstance();
new App($config);