Skip to content

Commit

Permalink
[#17827] missing functions and constant added to console (#2205)
Browse files Browse the repository at this point in the history
  • Loading branch information
pop1989bb committed Jan 11, 2022
1 parent 26f0398 commit d82b356
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/commands/console.php
Expand Up @@ -20,6 +20,10 @@
}

define('BASEPATH', '.');

// The PHP file extension
define('EXT', '.php');

require_once __DIR__ . '/../../third_party/autoload.php';
require_once(dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'framework' . DIRECTORY_SEPARATOR . 'yii.php');

Expand Down
23 changes: 23 additions & 0 deletions application/core/ConsoleApplication.php
Expand Up @@ -171,6 +171,29 @@ public function setConfig($name, $value)
$this->config[$name] = $value;
}


/**
* @return CAssetManager the asset manager component
*/
public function getAssetManager()
{
return $this->getComponent('assetManager');
}

/**
* Returns the client script manager.
*
* @return CClientScript the client script manager
*/
public function getClientScript()
{
return $this->getComponent('clientScript');
}

/**
* Returns the plugin manager
* @return IApplicationComponent
*/
public function getPluginManager()
{
return $this->getComponent('pluginManager');
Expand Down

0 comments on commit d82b356

Please sign in to comment.