43 $this->container = $initializer;
51 return isset( $this->container[$offset] );
54 #[\ReturnTypeWillChange]
56 if ( $this->checkDeprecatedAccess( $offset,
'get' ) ) {
57 if ( is_callable( $this->container[$offset] ) ) {
58 $this->container[$offset] = call_user_func( $this->container[$offset] );
61 return $this->container[$offset] ??
null;
64 public function offsetSet( $offset, $value ): void {
65 if ( $offset === null ) {
66 $this->container[] = $value;
68 $this->container[$offset] = $value;
73 $this->checkDeprecatedAccess( $offset,
'unset' );
74 unset( $this->container[$offset] );
83 if ( array_key_exists( $offset, $this->deprecatedProperties ) ) {
84 $deprecatedVersion = $this->deprecatedProperties[$offset];
86 "{$this->name} {$fname} '{$offset}'",
88 $this->component ??
false,
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that $function is deprecated.
if(ini_get('mbstring.func_overload')) if(!defined('MW_ENTRY_POINT'))
Pre-config setup: Before loading LocalSettings.php.