Skip to content
Snippets Groups Projects
Unverified Commit d59da3d4 authored by lukasmatusiewicz's avatar lukasmatusiewicz Committed by GitHub
Browse files

Merge pull request #12 from melanger/namespaces

Namespaces
parents fc6dba15 b5979c10
No related branches found
No related tags found
No related merge requests found
<?php
namespace PrivacyIdea\PHPClient;
class PIBadRequestException extends \Exception {}
{
......
<?php
namespace PrivacyIdea\PHPClient;
class PIChallenge
{
/* @var string Token's type. */
......
<?php
namespace PrivacyIdea\PHPClient;
/**
* Interface PILog
* Call the functions that collect debug and error messages
......
<?php
namespace PrivacyIdea\PHPClient;
class PIResponse
{
/* @var string All tokens messages which are sent by PI and can be used in UI to help user interact with service. */
......
<?php
namespace PrivacyIdea\PHPClient;
const AUTHENTICATORDATA = "authenticatordata";
const CLIENTDATA = "clientdata";
const SIGNATUREDATA = "signaturedata";
......
......@@ -9,10 +9,13 @@ spl_autoload_register('autoLoader');
function autoLoader($className)
{
$fullPath = dirname(__FILE__) . "/" . $className . ".php";
$classNameParts = explode("\\");
$classNameOnly = $classNameParts[count($classNameParts) - 1];
$fullPath = dirname(__FILE__) . "/" . $classNameOnly . ".php";
if (file_exists($fullPath))
{
require_once $fullPath;
class_alias($className, $classNameOnly, false);
return true;
} else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment