yii\console\controllers\AssetController::setAssetManager PHP Method

setAssetManager() public method

Sets asset manager instance or configuration.
public setAssetManager ( AssetManager | array $assetManager )
$assetManager yii\web\AssetManager | array asset manager instance or its array configuration.
    public function setAssetManager($assetManager)
    {
        if (is_scalar($assetManager)) {
            throw new Exception('"' . get_class($this) . '::assetManager" should be either object or array - "' . gettype($assetManager) . '" given.');
        }
        $this->_assetManager = $assetManager;
    }