-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_include_memcached.php
28 lines (23 loc) · 1020 Bytes
/
api_include_memcached.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* [RO]
* Folositi composer pentru a instala dependetele:
* - rulati urmatoarea comanda in directorul principal (directorul in care acest fisier este localizat): composer install
* WIKI : https://github.com/celdotro/marketplace/wiki/Prima-pagina
*
* [EN]
* Use composer to install dependencies:
* - issue this command in the main folder (the folder in which this file is located): composer install
* WIKI : https://github.com/celdotro/marketplace/wiki/First-page
*/
// Include vendor
include 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
require __DIR__.'/AuthProviderMemcached.php';
// Optional - set link to demo server
celmarket\Config::setDemo();
// Authenticate - change USERNAME and PASSWORD with your credentials
use celmarket\Auth;
use celmarket\AuthProviderMemcached;
//Optional providerid for account distinction. If not set it will use md5(userpass)
AuthProviderMemcached::setProviderID('IDAFILIAT');
Auth::setUserDetails('USER', 'PASSWORD', AuthProviderMemcached::class);