SAND-framework/console/skel/symfony-app/src/Utils/Config.php
2020-12-09 10:26:26 +01:00

48 lines
1.2 KiB
PHP

<?php
namespace App\Utils;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of Controls
*
* @author belhadjali
*/
class Config
{
public static function getDeclaredType($config)
{
// if (!isset($config['type_auth'])) {
// throw new \LogicException('Paramètre type_auth manquant');
// }
//
// $type = $config['type_auth'];
//
// self::typeIsSupported($type);
//
// return self::formatType($type);
return true;
}
public static function formatType($type)
{
// return ucfirst(strtolower($type));
return;
}
public static function typeIsSupported($type)
{
// $type_auth = self::formatType($type);
// if (!in_array($type_auth, ['Rsa', 'Cas'])) {
// throw new \LogicException('Seuls Cas et Rsa sont supportés pour le moment');
// }
return true;
}
}