luya\console\commands\BlockController::getFileNamespace PHP Method

getFileNamespace() protected method

Get the file namespace based on its type.
protected getFileNamespace ( ) : string
return string The full qualified namespace based on the type
    protected function getFileNamespace()
    {
        if ($this->type == self::TYPE_APP) {
            return 'app\\blocks';
        }
        return Yii::$app->getModule($this->moduleName)->getNamespace() . '\\blocks';
    }