Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11722307
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/app/Config/Reporting/ConfigReport.php b/app/Config/Reporting/ConfigReport.php
index 73f1ace..1a093d3 100644
--- a/app/Config/Reporting/ConfigReport.php
+++ b/app/Config/Reporting/ConfigReport.php
@@ -1,78 +1,84 @@
<?php
namespace Nasqueron\Notifications\Config\Reporting;
use Nasqueron\Notifications\Config\Features;
use Config;
use Services;
class ConfigReport {
///
/// Public properties
///
/**
* @var string[]
*/
public $gates;
/**
* @var FeatureReportEntry[]
*/
public $features;
/**
* @var ServiceReportEntry[]
*/
public $services;
///
/// Public constructor
///
public function __construct () {
$this->gates = $this->queryGates();
$this->features = $this->queryFeatures();
$this->services = $this->queryServices();
}
///
/// Report builder
///
/**
+ * Queries information about the features enabled from the configuration.
+ *
* @return string[]
*/
protected function queryGates () : array {
return Config::get('gate.controllers');
}
/**
+ * Queries information about the features enabled from the configuration.
+ *
* @return FeatureReportEntry[]
*/
protected function queryFeatures () : array {
$features = [];
foreach (Features::getAll() as $feature => $enabled) {
$features[] = new FeatureReportEntry($feature, $enabled);
}
return $features;
}
/**
+ * Queries information about services described in credentials.json.
+ *
* @return ServiceReportEntry[]
*/
protected function queryServices () : array {
$services = [];
foreach (Services::get() as $service) {
$services[] = new ServiceReportEntry($service);
}
return $services;
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Sep 18, 02:07 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2989785
Default Alt Text
(1 KB)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment