yii\console\controllers\BaseMigrateController::findMigrationPath PHP Method

findMigrationPath() private method

Finds the file path for the specified migration namespace.
Since: 2.0.10
private findMigrationPath ( string | null $namespace ) : string
$namespace string | null migration namespace.
return string migration file path.
    private function findMigrationPath($namespace)
    {
        if (empty($namespace)) {
            return $this->migrationPath;
        }
        if (!in_array($namespace, $this->migrationNamespaces, true)) {
            throw new Exception("Namespace '{$namespace}' not found in `migrationNamespaces`");
        }
        return $this->getNamespacePath($namespace);
    }