ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
CriticalConfigurationError.php
Go to the documentation of this file.
1 <?php
21 namespace SimpleSAML\Error;
22 
23 
25 {
26 
32  private static $minimum_config = array(
33  'logging.handler' => 'errorlog',
34  'logging.level' => \SimpleSAML\Logger::DEBUG,
35  'errorreporting' => false,
36  'debug' => true,
37  );
38 
39 
47  public function __construct($reason = null, $file = null, $config = null)
48  {
49  if ($config === null) {
50  $config = self::$minimum_config;
52  }
53 
55  $config,
56  '',
57  'simplesaml'
58  );
59  parent::__construct($reason, $file);
60  }
61 
62 
68  public static function fromException(\Exception $exception)
69  {
70  $reason = null;
71  $file = null;
72  if ($exception instanceof ConfigurationError) {
73  $reason = $exception->getReason();
74  $file = $exception->getConfFile();
75  } else {
76  $reason = $exception->getMessage();
77  }
79  }
80 }
__construct($reason=null, $file=null, $config=null)
CriticalConfigurationError constructor.
Attribute-related utility methods.
Create styles array
The data for the language used.
static guessBasePath()
Try to guess the base SimpleSAMLphp path from the current request.
Definition: HTTP.php:563
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
static loadFromArray($config, $location='[ARRAY]', $instance=null)
Loads a configuration from the given array.