Skip to content

Commit

Permalink
Updated pimcore check
Browse files Browse the repository at this point in the history
  • Loading branch information
xPand4B committed Jun 29, 2022
1 parent 4a0c2af commit 5f9ca91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ private function getSitesFromPaths(array $paths): array

$isShopware = strpos(strtolower($site), 'shopware') !== false;
$isPimcore = strpos(strtolower($site), 'pimcore') !== false;
$isNamedPimcore = strpos(strtolower($path), 'pimcore') !== false;

$result[$trimmedPath][$site] = [
'url' => 'http://' . $site . '.' . $this->tld . self::VALET_PORT,
'hasAdmin' => $isShopware || $isPimcore
'hasAdmin' => $isShopware || $isPimcore || $isNamedPimcore
// 'githubLink' => parse_ini_file("$path/$site/.git/config")['url'] ?? null
];
}
Expand Down

0 comments on commit 5f9ca91

Please sign in to comment.