Skip to content

Feature/v0.10.0 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CHANGELOG
=========

# v0.10.0

* Add vendor prefix `Richardhj\` to namespaces
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ But instead of the `GenericProvider` you're going to use this provider.

This is how to initiate the provider:
```php
$provider = new EPost\OAuth2\Client\Provider\EPost(
$provider = new Richardhj\EPost\OAuth2\Client\Provider\EPost(
[
'clientId' => sprintf('%s,%s', EPOST_DEV_ID, EPOST_APP_ID),
'redirectUri' => 'http://localhost:8080/oauth2_redirect.php', // Only necessary for the Authorization Code Grant flow
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
},
"require": {
"php": "^5.4 || ^7.0",
"league/oauth2-client": "~1.4"
"league/oauth2-client": "^1.4 || ^2.0"
},
"autoload": {
"psr-4": {
"EPost\\OAuth2\\Client\\": "src/"
"Richardhj\\EPost\\OAuth2\\Client\\": "src/"
}
}
}
15 changes: 9 additions & 6 deletions src/Provider/EPost.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<?php

/**
* E-POSTBUSINESS API integration for Contao Open Source CMS
* This file is part of richardhj/oauth2-epost.
*
* Copyright (c) 2015-2016 Richard Henkenjohann
* Copyright (c) 2015-2017 Richard Henkenjohann
*
* @package E-POST
* @author Richard Henkenjohann <richard-epost@henkenjohann.me>
* @package richardhj/oauth2-epost
* @author Richard Henkenjohann <richardhenkenjohann@googlemail.com>
* @copyright 2015-2017 Richard Henkenjohann
* @license https://github.com/richardhj/oauth2-epost/blob/master/LICENSE LGPL-3.0
*/

namespace EPost\OAuth2\Client\Provider;
namespace Richardhj\EPost\OAuth2\Client\Provider;

use League\OAuth2\Client\Provider\AbstractProvider;
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
Expand All @@ -19,7 +22,7 @@

/**
* Class EPost
* @package EPost\OAuth2\Client\Provider
* @package Richardhj\EPost\OAuth2\Client\Provider
*/
class EPost extends AbstractProvider
{
Expand Down