public static function fromDice(Dice $dice): self
{
return new self(
+ $dice,
$dice->create(Request::class),
$dice->create(Authentication::class),
$dice->create(IManageConfigValues::class),
);
}
+ /**
+ * @var Dice
+ */
+ private $container;
+
/**
* @var Mode The Mode of the Application
*/
private $appHelper;
private function __construct(
+ Dice $container,
Request $request,
Authentication $auth,
IManageConfigValues $config,
ViewDefinition $viewDefinition,
AppHelper $appHelper = null,
) {
+ $this->container = $container;
$this->requestId = $request->getRequestId();
$this->auth = $auth;
$this->config = $config;