Skip to content

Commit

Permalink
Update root namespace of base OAuth2 package.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed May 1, 2019
1 parent c91fbc0 commit a8ac292
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"source": "http://cgit.drupalcode.org/social_auth_pbs"
},
"require": {
"cascadepublicmedia/oauth2-pbs": "^1.0"
"openpublicmedia/oauth2-pbs": "^1.0"
},
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion social_auth_pbs.install
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function social_auth_pbs_requirements($phase) {
$requirements = SocialApiImplementerInstaller::checkLibrary(
'social_auth_pbs',
'Social Auth PBS',
'cascadepublicmedia/oauth2-pbs',
'openpublicmedia/oauth2-pbs',
1.0,
2.0
);
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/PbsAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function create(ContainerInterface $container) {
*/
public function callback() {

/* @var \CascadePublicMedia\OAuth2\Client\Provider\PbsResourceOwner|null $profile */
/* @var \OpenPublicMedia\OAuth2\Client\Provider\PbsResourceOwner|null $profile */
$profile = $this->processCallback();

// If authentication was successful.
Expand Down
6 changes: 3 additions & 3 deletions src/Plugin/Network/PbsAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Drupal\social_auth_pbs\Plugin\Network;

use CascadePublicMedia\OAuth2\Client\Provider\Pbs;
use OpenPublicMedia\OAuth2\Client\Provider\Pbs;
use Drupal\Core\Url;
use Drupal\social_auth\Plugin\Network\NetworkBase;
use Drupal\social_api\SocialApiException;
Expand Down Expand Up @@ -30,15 +30,15 @@ class PbsAuth extends NetworkBase implements PbsAuthInterface {
/**
* Sets the underlying SDK library.
*
* @return \CascadePublicMedia\OAuth2\Client\Provider\Pbs|bool
* @return \OpenPublicMedia\OAuth2\Client\Provider\Pbs|bool
* The initialized 3rd party library instance.
*
* @throws SocialApiException
* If the SDK library does not exist.
*/
protected function initSdk() {

$class_name = 'CascadePublicMedia\OAuth2\Client\Provider\Pbs';
$class_name = 'OpenPublicMedia\OAuth2\Client\Provider\Pbs';
if (!class_exists($class_name)) {
throw new SocialApiException(sprintf('The PBS library for PHP
League OAuth2 not found. Class: %s.', $class_name));
Expand Down

0 comments on commit a8ac292

Please sign in to comment.