1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/vendor/lusitanian/oauth/examples/bootstrap.php
2014-12-22 19:15:38 +01:00

29 lines
597 B
PHP

<?php
/**
* Bootstrap the library
*/
require_once __DIR__ . '/../vendor/autoload.php';
/**
* Setup error reporting
*/
error_reporting(E_ALL);
ini_set('display_errors', 1);
/**
* Setup the timezone
*/
ini_set('date.timezone', 'Europe/Amsterdam');
/**
* Create a new instance of the URI class with the current URI, stripping the query string
*/
$uriFactory = new \OAuth\Common\Http\Uri\UriFactory();
$currentUri = $uriFactory->createFromSuperGlobalArray($_SERVER);
$currentUri->setQuery('');
/**
* Load the credential for the different services
*/
require_once __DIR__ . '/init.php';