Page MenuHomeDevCentral

No OneTemporary

diff --git a/app/Console/Commands/PhabricatorProjectsMap.php b/app/Console/Commands/PhabricatorProjectsMap.php
index c817fe8..70724a2 100644
--- a/app/Console/Commands/PhabricatorProjectsMap.php
+++ b/app/Console/Commands/PhabricatorProjectsMap.php
@@ -1,46 +1,39 @@
<?php
namespace Nasqueron\Notifications\Console\Commands;
use Illuminate\Console\Command;
use ProjectsMap;
use Services;
class PhabricatorProjectsMap extends Command {
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'phabricator:projectsmap';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Regenerate the projects map for each Phabricator instances';
- /**
- * Creates a new command instance.
- */
- public function __construct() {
- parent::__construct();
- }
-
/**
* Executes the console command.
*/
public function handle() : void {
foreach (Services::getForGate('Phabricator') as $service) {
$this->info("Querying projects map for " . $service->instance);
$map = ProjectsMap::fetch($service->door);
$map->saveToCache();
$this->table(
['PHID', 'Project name'],
$map->toArray()
);
}
}
}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 16:14 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260513
Default Alt Text
(1 KB)

Event Timeline