Skip to content
Snippets Groups Projects
Commit 5b16404d authored by lukasmatusiewicz's avatar lukasmatusiewicz
Browse files

remove autoloader

parent fa653722
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,6 @@
* limitations under the License.
*/
//namespace PrivacyIDEA\PHPClient;
abstract class AuthenticationStatus
{
const CHALLENGE = "CHALLENGE";
......
<?php
/*
* Copyright 2024 NetKnights GmbH - lukas.matusiewicz@netknights.it
* <p>
* Licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3;
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
spl_autoload_register('autoLoader');
/**
* This autoloader includes the privacyIDEA-PHP-Client files to the project.
*/
function autoLoader($className): bool
{
$fullPath = dirname(__FILE__) . "/" . $className . ".php";
if (file_exists($fullPath))
{
require_once $fullPath;
return true;
}
else
{
return false;
}
}
\ No newline at end of file
......@@ -12,8 +12,6 @@
* limitations under the License.
*/
//namespace PrivacyIDEA\PHPClient;
class PIBadRequestException extends Exception
{
}
}
\ No newline at end of file
......@@ -12,8 +12,6 @@
* limitations under the License.
*/
//namespace PrivacyIDEA\PHPClient;
class PIChallenge
{
/* @var string Type of token this challenge is for. */
......
......@@ -12,8 +12,6 @@
* limitations under the License.
*/
//namespace PrivacyIDEA\PHPClient;
/**
* Logging interface. This is used to relay the log
* messages of the PHP-Client to the logger
......
......@@ -12,8 +12,6 @@
* limitations under the License.
*/
//namespace PrivacyIDEA\PHPClient;
class PIResponse
{
/* @var string Combined messages of all triggered token. */
......
......@@ -12,8 +12,6 @@
* limitations under the License.
*/
//namespace PrivacyIDEA\PHPClient;
const AUTHENTICATORDATA = "authenticatordata";
const CLIENTDATA = "clientdata";
const SIGNATUREDATA = "signaturedata";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment