diff options
| author | Frédéric Guillot <fred@kanboard.net> | 2014-11-06 06:41:47 -0500 |
|---|---|---|
| committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-06 06:41:47 -0500 |
| commit | c80c15dcc33a70acc2b177691d33f088f8c2541e (patch) | |
| tree | bc3e44e35b97b751c145cc5797a0faf356922244 /vendor/lusitanian/oauth/examples/bootstrap.php | |
| parent | c91ff61cdfa8b5eb76783927e5b8710f2a9f2601 (diff) | |
Include all vendor files in the repo to be easier for people
Diffstat (limited to 'vendor/lusitanian/oauth/examples/bootstrap.php')
| -rw-r--r-- | vendor/lusitanian/oauth/examples/bootstrap.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/lusitanian/oauth/examples/bootstrap.php b/vendor/lusitanian/oauth/examples/bootstrap.php new file mode 100644 index 00000000..f02da414 --- /dev/null +++ b/vendor/lusitanian/oauth/examples/bootstrap.php @@ -0,0 +1,29 @@ +<?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'; |
