Skip to content

Commit

Permalink
update zend to laminas
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwarfex committed Mar 23, 2020
1 parent 6a7a1bb commit 09d51ba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 224 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# EWS-Authentication Adapter

This is an EWS authentication adapter for zendframework/zend-authentication. It may be used to authenticate against a OWA / EWS System.
This is an EWS authentication adapter for laminas/laminas-authentication. It may be used to authenticate against a OWA / EWS System.
It might be useful for you when you have an external application with users from a AD-domain and an LDAP server is not available.

## How to install
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"EWS",
"OWA",
"authentication",
"laminas",
"zend"
],
"type": "library",
Expand All @@ -15,7 +16,8 @@
"ext-soap": "*",
"ext-curl": "*",
"php-ews/php-ews": "^1.0",
"zendframework/zend-authentication": "^2.6"
"laminas/laminas-authentication": "^2.6",
"laminas/laminas-dependency-plugin": "^1.0"
},
"license": "MIT",
"authors": [
Expand All @@ -24,7 +26,6 @@
"email": "dwarfex@somecoding.de"
}
],

"autoload": {
"psr-4": {
"EwsAuthAdapter\\": "src"
Expand Down
215 changes: 0 additions & 215 deletions composer.lock

This file was deleted.

12 changes: 6 additions & 6 deletions src/Ews.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

use jamesiarmes\PhpEws\Client;
use jamesiarmes\PhpEws\Request\GetServerTimeZonesType;
use Zend\Authentication\Adapter\AbstractAdapter;
use Zend\Authentication\Adapter\ValidatableAdapterInterface;
use Zend\Authentication\Result as AuthenticationResult;
use Laminas\Authentication\Adapter\AbstractAdapter;
use Laminas\Authentication\Adapter\ValidatableAdapterInterface;
use Laminas\Authentication\Result as AuthenticationResult;
use Exception;

class Ews extends AbstractAdapter
Expand Down Expand Up @@ -36,7 +36,7 @@ public function __construct(array $options = [], $identity = null, $credential =
}

/**
* Returns the array of arrays of Zend\Ldap\Ldap options of this adapter.
* Returns the array of arrays of Ews options of this adapter.
*
* @return array|null
*/
Expand All @@ -46,10 +46,10 @@ public function getOptions()
}

/**
* Sets the array of arrays of Zend\Ldap\Ldap options to be used by
* Sets the array of arrays of Ews options to be used by
* this adapter.
*
* @param array $options The array of arrays of Zend\Ldap\Ldap options
* @param array $options The array of arrays of Ews options
* @return self Provides a fluent interface
*/
public function setOptions($options)
Expand Down

0 comments on commit 09d51ba

Please sign in to comment.