MediaWiki
1.44.0
ComposerSystemInterface.php
Go to the documentation of this file.
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace
MediaWiki\Composer
;
6
13
class
ComposerSystemInterface
{
14
15
public
function
print
(
string
$message ) {
16
print
( $message );
17
}
18
19
public
function
exit
(
int
$resultCode ) {
20
exit
( $resultCode );
21
}
22
23
public
function
putFileContents
(
string
$path
,
string
$data ) {
24
file_put_contents(
$path
, $data );
25
}
26
}
$path
$path
Definition
NoLocalSettings.php:28
MediaWiki\Composer\ComposerSystemInterface
Wrapper around low-level system functions, so that we can inject mocks when testing the MediaWiki\Com...
Definition
ComposerSystemInterface.php:13
MediaWiki\Composer\ComposerSystemInterface\print
print(string $message)
Definition
ComposerSystemInterface.php:15
MediaWiki\Composer\ComposerSystemInterface\exit
exit(int $resultCode)
Definition
ComposerSystemInterface.php:19
MediaWiki\Composer\ComposerSystemInterface\putFileContents
putFileContents(string $path, string $data)
Definition
ComposerSystemInterface.php:23
MediaWiki\Composer
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Definition
ComposerLaunchParallel.php:5
includes
composer
ComposerSystemInterface.php
Generated on Wed Jul 2 2025 19:31:15 for MediaWiki by
1.10.0