dragonpolls/bootstrap.php

21 lines
416 B
PHP

<?php
require __DIR__ .'/vendor/autoload.php';
use APnutI\APnutI;
use Monolog\Logger;
session_start();
$config = include(__DIR__.'/config.php');
$api = new APnutI(
$config['client_id'],
$config['client_secret'],
$config['permission_scopes'],
$config['app_name'],
$config['callback_url'],
__DIR__.'/'.$config['log_file'],
$config['log_level']
);
require_once __DIR__ . '/globals.php';