Page MenuHomeWickedGov Phorge

StableUserMode.php
No OneTemporary

Size
920 B
Referenced Files
None
Subscribers
None

StableUserMode.php

<?php
namespace MobileFrontend\Features;
/**
* Temporary class to provide a bridge between old stable 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 StableUserMode 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_STABLE;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Oct 4, 01:18 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
61/b5/66a091a7873bdfb4f178dfb4792b
Default Alt Text
StableUserMode.php (920 B)

Event Timeline