MediaWiki REL1_34
InstallException.php
Go to the documentation of this file.
1<?php
22
23use Throwable;
24
33 private $status;
34
42 public function __construct( \Status $status, $message = '', $code = 0,
43 Throwable $previous = null ) {
44 parent::__construct( $message, $code, $previous );
45 $this->status = $status;
46 }
47
48 public function getStatus() : \Status {
49 return $this->status;
50 }
51}
MediaWiki exception.
Exception thrown if an error occur which installation.
__construct(\Status $status, $message='', $code=0, Throwable $previous=null)
InstallException constructor.
Status $status
State when an exception occurs.
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition Status.php:40
return[ 'OATHAuth'=> function(MediaWikiServices $services) { return new OATHAuth($services->getMainConfig(), $services->getDBLoadBalancerFactory());}, 'OATHUserRepository'=> function(MediaWikiServices $services) { global $wgOATHAuthDatabase;$auth=$services->getService( 'OATHAuth');return new OATHUserRepository($services->getDBLoadBalancerFactory() ->getMainLB( $wgOATHAuthDatabase), new \HashBagOStuff(['maxKey'=> 5]), $auth);}]