ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
CriticalConfigurationError.php
Go to the documentation of this file.
1<?php
21namespace 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) {
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}
An exception for terminatinating execution or to throw for unit testing.
__construct($reason=null, $file=null, $config=null)
CriticalConfigurationError constructor.
static guessBasePath()
Try to guess the base SimpleSAMLphp path from the current request.
Definition: HTTP.php:563
static loadFromArray($config, $location='[ARRAY]', $instance=null)
Loads a configuration from the given array.
Attribute-related utility methods.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file