uawdijnntqw1x1x1
IP : 216.73.216.46
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
modules
/
assets
/
..
/
Module.php
/
/
<?php namespace modules; use Craft; use craft\commerce\services\OrderAdjustments; use craft\events\RegisterComponentTypesEvent; use yii\base\Event; use modules\adjusters\OrderAdjuster; /** * Custom module class. * * This class will be available throughout the system via: * `Craft::$app->getModule('my-module')`. * * You can change its module ID ("my-module") to something else from * config/app.php. * * If you want the module to get loaded on every request, uncomment this line * in config/app.php: * * 'bootstrap' => ['my-module'] * * Learn more about Yii module development in Yii's documentation: * http://www.yiiframework.com/doc-2.0/guide-structure-modules.html */ class Module extends \yii\base\Module { /** * Initializes the module. */ public function init() { // Set a @modules alias pointed to the modules/ directory Craft::setAlias('@modules', __DIR__); // Set the controllerNamespace based on whether this is a console or web request if (Craft::$app->getRequest()->getIsConsoleRequest()) { $this->controllerNamespace = 'modules\\console\\controllers'; } else { $this->controllerNamespace = 'modules\\controllers'; } Event::on( OrderAdjustments::class, OrderAdjustments::EVENT_REGISTER_ORDER_ADJUSTERS, function(RegisterComponentTypesEvent $event) { $event->types[] = OrderAdjuster::class; } ); parent::init(); // Custom initialization code goes here... } }
/srv/users/craft4/apps/craft4-newsite-space/modules/assets/../Module.php