Skip to content

Commit

Permalink
Merge pull request #2 from dmstr/feature/fix-namespaces
Browse files Browse the repository at this point in the history
updated namespaces
  • Loading branch information
schmunk42 authored Oct 18, 2022
2 parents 703a5fe + a7b1c3e commit cc133dd
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions LdapConfigurationErrorException.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace dmstr\usuarioLdapExtension;
namespace yetopen\usuarioLdap;


use Exception;

/**
* Class LdapConfigurationException
* @package dmstr\usuarioLdapExtension
* @package yetopen\usuarioLdap
*/
class LdapConfigurationErrorException extends Exception
{
Expand Down
2 changes: 1 addition & 1 deletion LdapEvent.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


namespace dmstr\usuarioLdapExtension;
namespace yetopen\usuarioLdap;


class LdapEvent
Expand Down
4 changes: 2 additions & 2 deletions MultipleUsersFoundException.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace dmstr\usuarioLdapExtension;
namespace yetopen\usuarioLdap;

use Exception;

/**
* Class MultipleUsersFoundException
* @package dmstr\usuarioLdapExtension
* @package yetopen\usuarioLdap
*/
class MultipleUsersFoundException extends Exception
{
Expand Down
2 changes: 1 addition & 1 deletion NoLdapUserException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace dmstr\usuarioLdapExtension;
namespace yetopen\usuarioLdap;

use Exception;

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Add in your config (`config/web.php` for the basic app):
'components' => [
//...
'usuarioLdap' => [
'class' => 'dmstr\usuarioLdapExtension\UsuarioLdapComponent',
'class' => 'yetopen\usuarioLdap\UsuarioLdapComponent',
'ldapConfig' => [
'hosts' => ['host.example.com'],
'base_dn' => 'dc=mydomain,dc=local',
Expand Down
2 changes: 1 addition & 1 deletion RoleNotFoundException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace dmstr\usuarioLdapExtension;
namespace yetopen\usuarioLdap;

use Exception;

Expand Down
6 changes: 3 additions & 3 deletions UsuarioLdapComponent.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace dmstr\usuarioLdapExtension;
namespace yetopen\usuarioLdap;

use Adldap\Adldap;
use Adldap\AdldapException;
Expand All @@ -25,7 +25,7 @@

/**
* Class UsuarioLdapComponent
* @package dmstr\usuarioLdapExtension
* @package yetopen\usuarioLdap
*
* @property Provider $ldapProvider
* @property Adldap $secondLdapProvider
Expand Down Expand Up @@ -519,7 +519,7 @@ private function tryAuthentication($provider, $username, $password) {
* @param $username
* @param string $key
* @return mixed
* @throws \dmstr\usuarioLdapExtension\NoLdapUserException
* @throws \yetopen\usuarioLdap\NoLdapUserException
*/
private function findLdapUser ($username, $key, $ldapProvider = 'secondLdapProvider') {
$ldapUser = Yii::$app->usuarioLdap->{$ldapProvider}->search()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"autoload": {
"psr-4": {
"dmstr\\usuarioLdapExtension\\": ""
"yetopen\\usuarioLdap\\": ""
}
}
}

0 comments on commit cc133dd

Please sign in to comment.