Skip to content

Commit

Permalink
Update Module.php
Browse files Browse the repository at this point in the history
Signed-off-by: ArchBlood <[email protected]>
  • Loading branch information
ArchBlood authored Apr 3, 2024
1 parent 722a2c7 commit b6c299b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

namespace humhub\modules\composer;

class Module extends \humhub\components\Module
use Yii;
use yii\helpers\Url;
use humhub\components\Module as BaseModule;

class Module extends BaseModule
{
/**
* @inheritdoc
*/
public $resourcesPath = 'resources';

public $controllerNamespace = 'humhub\modules\composer\commands';
public $controllerNamespace = 'humhub\modules\composer\controllers';

public function init()
{
Expand All @@ -20,11 +24,15 @@ public function actions()
{
return [
'theme/compile' => 'composer\commands\ThemeController',
'refresh-assets' => 'composer\commands\RefreshAssetsController',
];
}

/**
* @inheritdoc
*/
public function getConfigUrl()
{
return '/composer/composer/index';
return Url::to(['/composer/composer']);
}
}

0 comments on commit b6c299b

Please sign in to comment.