Antevenio/oauth2-mdirector

View on GitHub
bin/mdirector-oauth-client

Summary

Maintainability
Test Coverage
#!/usr/bin/env php
<?php

use Symfony\Component\Console\Application;

$autoloadLocations = [
    __DIR__ . '/../vendor/autoload.php',
    __DIR__ . '/../autoload.php'
];

foreach ($autoloadLocations as $autoloadLocation) {
    if (is_readable($autoloadLocation)) {
        require_once($autoloadLocation);
    }
}

$application = new Application();
$defaultCommand = new \MDOAuth\OAuth2\Command(
  new \MDOAuth\OAuth2\Wrapper\Factory()
);
$application->add($defaultCommand);
$application->run();