Page MenuHomeWickedGov Phorge

BetaUserMode.php
No OneTemporary

Size
913 B
Referenced Files
None
Subscribers
None

BetaUserMode.php

<?php
namespace MobileFrontend\Features;
/**
* Temporary class to provide a bridge between old Beta mode handling and new Feature management
* system.
*
* Beta mode will be refactored properly in T212802, for now we need an easy way to retrieve
* information about beta mode.
*
* IMPORTANT: This class provides read-only state, if you want to enable/disable beta mode
* please use MobileContext classes
*
* @package MobileFrontend\Features
*/
class BetaUserMode implements IUserMode {
/**
* @var \MobileContext
*/
private $context;
/**
* @param \MobileContext $context Mobile context
*/
public function __construct( \MobileContext $context ) {
$this->context = $context;
}
/**
* @inheritDoc
*/
public function isEnabled() {
return $this->context->isBetaGroupMember();
}
/**
* @inheritDoc
*/
public function getModeIdentifier() {
return IFeature::CONFIG_BETA;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 20:53 (1 d, 10 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
44/fd/55d6442e9f8f77e6600538307374
Default Alt Text
BetaUserMode.php (913 B)

Event Timeline