Skip to content
Snippets Groups Projects
Commit cf286665 authored by Eduardo Alvarez Fernandez's avatar Eduardo Alvarez Fernandez
Browse files

Add services yml file and service class

parent d5120e7d
Branches
Tags
No related merge requests found
services:
cern_lda_api.cernldap:
class: Drupal\cern_ldap_api\CERNLdapService
\ No newline at end of file
...@@ -2,4 +2,23 @@ ...@@ -2,4 +2,23 @@
namespace Drupal\cern_ldap_api; namespace Drupal\cern_ldap_api;
Class CERNLdapService /**
\ No newline at end of file * CERNLdapService is a service to contact CERN Ldap service
*/
Class CERNLdapService {
private $server_host = "xldap.cern.ch";
/**
* Resolves emails for an e-group
* @param string $egroup
* The egroup name in simple formar, ex: drupal-admins
* @param bool $recursive
* Flag to enable/disable recursive lookup of inner e-groups
*/
public function resolveEgroup($egroup, $recursive) {
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment