Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5999000
Wrapper.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Wrapper.php
View Options
<?php
namespace
Shellbox\Command
;
use
Psr\Log\LoggerInterface
;
use
Psr\Log\NullLogger
;
/**
* Base class for wrappers that modify commands. Such wrappers are used by
* UnboxedExecutor to implement restrictions.
*/
abstract
class
Wrapper
{
/** @var LoggerInterface */
protected
$logger
;
public
function
__construct
()
{
$this
->
logger
=
new
NullLogger
;
}
/**
* Set the logger.
*
* @param LoggerInterface $logger
*/
public
function
setLogger
(
LoggerInterface
$logger
)
{
$this
->
logger
=
$logger
;
}
/**
* Modify the command passed as a parameter
*
* @param Command $command
*/
abstract
public
function
wrap
(
Command
$command
);
/**
* Get an integer priority level used to determine the order in which to
* run multiple wrappers. Low numbers are innermost, high numbers are
* outermost, run last.
*
* If you nest sandboxes, it makes sense to have the most privileged
* hypervisor/wrapper at the outside, and the least privileged on the
* inside. Suggested values:
*
* - 20: ulimit
* - 40: chroot
* - 60: system-level container
* - 80: initial shell
*
* @return int
*/
abstract
public
function
getPriority
();
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 4 2026, 05:26 (6 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0d/c7/b2e9c0f4728428d61e57355557ae
Default Alt Text
Wrapper.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment