|
@@ -4,7 +4,6 @@ declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace SixShop\System\Controller;
|
|
namespace SixShop\System\Controller;
|
|
|
|
|
|
|
|
-use SixShop\Core\Helper;
|
|
|
|
|
use SixShop\System\Enum\ExtensionStatusEnum;
|
|
use SixShop\System\Enum\ExtensionStatusEnum;
|
|
|
use SixShop\System\ExtensionManager;
|
|
use SixShop\System\ExtensionManager;
|
|
|
use think\App;
|
|
use think\App;
|
|
@@ -101,7 +100,7 @@ class ExtensionController
|
|
|
|
|
|
|
|
public function normal(App $app): Response
|
|
public function normal(App $app): Response
|
|
|
{
|
|
{
|
|
|
- $extensionPath = Helper::extension_path();
|
|
|
|
|
|
|
+ $extensionPath = extension_path();
|
|
|
$extensionDirs = array_diff(scandir($extensionPath), ['.', '..']);
|
|
$extensionDirs = array_diff(scandir($extensionPath), ['.', '..']);
|
|
|
$options = [];
|
|
$options = [];
|
|
|
foreach ($extensionDirs as $item) {
|
|
foreach ($extensionDirs as $item) {
|