Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5953188
ComposerSystemInterface.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
530 B
Referenced Files
None
Subscribers
None
ComposerSystemInterface.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Composer
;
/**
* Wrapper around low-level system functions, so that we can inject mocks
* when testing the MediaWiki\Composer\ComposerLaunchParallel class.
*
* @license GPL-2.0-or-later
*/
class
ComposerSystemInterface
{
public
function
print
(
string
$message
)
{
print
(
$message
);
}
public
function
exit
(
int
$resultCode
)
{
exit
(
$resultCode
);
}
public
function
putFileContents
(
string
$path
,
string
$data
)
{
file_put_contents
(
$path
,
$data
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 3 2026, 01:58 (4 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4a/42/5c0015d8bc8528dc5e95ee83687a
Default Alt Text
ComposerSystemInterface.php (530 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment