Skip to content

[#1656] Updated the namespace for the installer.#1721

Merged
AlexSkrypnyk merged 1 commit into
developfrom
feature/1656-update-installer-namespace
Jun 4, 2025
Merged

[#1656] Updated the namespace for the installer.#1721
AlexSkrypnyk merged 1 commit into
developfrom
feature/1656-update-installer-namespace

Conversation

@AlexSkrypnyk
Copy link
Copy Markdown
Member

@AlexSkrypnyk AlexSkrypnyk commented Jun 4, 2025

closes #1656

Summary by CodeRabbit

  • Refactor
    • Updated all namespaces and references from the previous naming convention to a new, unified namespace throughout the application and tests. This affects all user-facing commands, prompts, and utilities, as well as internal and external documentation references.
  • Tests
    • Adjusted all test namespaces and imports to align with the new namespace structure for consistency and maintainability.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 4, 2025

Walkthrough

This change updates the namespace prefix from DrevOps\Installer to DrevOps\VortexInstaller throughout the codebase, including all source, utility, handler, and test files, as well as the Composer autoload configuration. No functional, logical, or behavioral changes are introduced.

Changes

File(s) Change Summary
.vortex/installer/composer.json Updated PSR-4 autoload and autoload-dev namespace prefix to DrevOps\VortexInstaller.
.vortex/installer/src/**/*.php
.vortex/installer/src/Utils/*.php
Changed all namespace declarations and imports from DrevOps\Installer to DrevOps\VortexInstaller.
.vortex/installer/src/app.php Updated import for InstallCommand to use the new namespace.
.vortex/installer/tests/**/*.php Updated all test file namespaces and imports to DrevOps\VortexInstaller.
.vortex/installer/tests/Unit/FileTest.php Normalized empty lines in YAML literal block test data; updated namespace and imports.

Sequence Diagram(s)

sequenceDiagram
    participant Composer
    participant App
    participant Command
    participant Utils
    participant Prompts
    participant Handlers

    Composer->>App: Autoload classes using DrevOps\VortexInstaller namespace
    App->>Command: Use InstallCommand (new namespace)
    Command->>Prompts: Use PromptManager (new namespace)
    Prompts->>Handlers: Instantiate handlers (new namespace)
    Handlers->>Utils: Use utility classes (new namespace)
Loading

Possibly related issues

Possibly related PRs

Suggested labels

PR: Needs review

Poem

In burrows of code, namespaces grew,
From Installer to VortexInstaller, fresh and new.
Every file and test, now neatly aligned,
Composer’s map updated, all paths redefined.
The rabbit hops on, with a smile so wide,
For tidy namespaces are a source of pride!
🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions Bot temporarily deployed to commit June 4, 2025 02:24 Inactive
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 08bec4b and a11b44e.

⛔ Files ignored due to path filters (1)
  • .vortex/installer/composer.lock is excluded by !**/*.lock
📒 Files selected for processing (55)
  • .vortex/installer/composer.json (1 hunks)
  • .vortex/installer/src/Command/InstallCommand.php (2 hunks)
  • .vortex/installer/src/Prompts/Handlers/AbstractHandler.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/AssignAuthorPr.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/CiProvider.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/CodeProvider.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/DatabaseDownloadSource.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/DatabaseImage.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/DependencyUpdatesProvider.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/DeployType.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/Domain.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/GithubRepo.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/GithubToken.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/HandlerInterface.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/HostingProvider.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/Internal.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/LabelMergeConflictsPr.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/MachineName.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/ModulePrefix.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/Name.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/Org.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/OrgMachineName.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/PreserveDocsOnboarding.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/PreserveDocsProject.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/Profile.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/ProvisionType.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/Services.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/Theme.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/ThemeRunner.php (1 hunks)
  • .vortex/installer/src/Prompts/Handlers/Webroot.php (1 hunks)
  • .vortex/installer/src/Prompts/PromptManager.php (4 hunks)
  • .vortex/installer/src/Utils/Composer.php (1 hunks)
  • .vortex/installer/src/Utils/Config.php (1 hunks)
  • .vortex/installer/src/Utils/Converter.php (1 hunks)
  • .vortex/installer/src/Utils/Downloader.php (1 hunks)
  • .vortex/installer/src/Utils/Env.php (1 hunks)
  • .vortex/installer/src/Utils/File.php (1 hunks)
  • .vortex/installer/src/Utils/Git.php (1 hunks)
  • .vortex/installer/src/Utils/Strings.php (1 hunks)
  • .vortex/installer/src/Utils/Tui.php (1 hunks)
  • .vortex/installer/src/Utils/Validator.php (1 hunks)
  • .vortex/installer/src/app.php (1 hunks)
  • .vortex/installer/tests/Functional/FunctionalTestCase.php (1 hunks)
  • .vortex/installer/tests/Functional/InstallTest.php (1 hunks)
  • .vortex/installer/tests/Traits/TuiTrait.php (1 hunks)
  • .vortex/installer/tests/Unit/ConverterTest.php (1 hunks)
  • .vortex/installer/tests/Unit/EnvTest.php (1 hunks)
  • .vortex/installer/tests/Unit/FileTest.php (4 hunks)
  • .vortex/installer/tests/Unit/GitTest.php (1 hunks)
  • .vortex/installer/tests/Unit/PromptManagerTest.php (1 hunks)
  • .vortex/installer/tests/Unit/SelfTest.php (1 hunks)
  • .vortex/installer/tests/Unit/StringsTest.php (1 hunks)
  • .vortex/installer/tests/Unit/TuiTest.php (1 hunks)
  • .vortex/installer/tests/Unit/UnitTestCase.php (1 hunks)
  • .vortex/installer/tests/Unit/ValidatorTest.php (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
.vortex/installer/src/Utils/File.php (1)
Learnt from: AlexSkrypnyk
PR: drevops/vortex#1693
File: .vortex/installer/src/Prompts/Handlers/Internal.php:52-52
Timestamp: 2025-06-01T08:10:15.903Z
Learning: The File utility class in .vortex/installer/src/Utils/File.php extends AlexSkrypnyk\File\File, and methods like collapseRepeatedEmptyLines() are available from this external parent class dependency.
🧬 Code Graph Analysis (27)
.vortex/installer/src/Prompts/Handlers/CiProvider.php (1)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/tests/Traits/TuiTrait.php (1)
.vortex/installer/src/Utils/Tui.php (1)
  • Tui (16-238)
.vortex/installer/src/Prompts/Handlers/Org.php (2)
.vortex/installer/src/Utils/Composer.php (1)
  • Composer (7-36)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/ModulePrefix.php (2)
.vortex/installer/src/Utils/Converter.php (1)
  • Converter (9-17)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/AbstractHandler.php (2)
.vortex/installer/src/Utils/Config.php (1)
  • Config (14-124)
.vortex/installer/src/Utils/Converter.php (1)
  • Converter (9-17)
.vortex/installer/src/Prompts/Handlers/CodeProvider.php (1)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/PreserveDocsProject.php (1)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/tests/Unit/TuiTest.php (1)
.vortex/installer/src/Utils/Tui.php (1)
  • Tui (16-238)
.vortex/installer/src/Prompts/Handlers/HostingProvider.php (2)
.vortex/installer/src/Utils/Env.php (1)
  • Env (7-124)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/GithubToken.php (1)
.vortex/installer/src/Utils/Env.php (1)
  • Env (7-124)
.vortex/installer/src/Prompts/Handlers/DatabaseDownloadSource.php (2)
.vortex/installer/src/Utils/Env.php (1)
  • Env (7-124)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/Theme.php (3)
.vortex/installer/src/Utils/Converter.php (1)
  • Converter (9-17)
.vortex/installer/src/Utils/Env.php (1)
  • Env (7-124)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/DeployType.php (3)
.vortex/installer/src/Utils/Converter.php (1)
  • Converter (9-17)
.vortex/installer/src/Utils/Env.php (1)
  • Env (7-124)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/tests/Unit/FileTest.php (1)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/Webroot.php (3)
.vortex/installer/src/Utils/Composer.php (1)
  • Composer (7-36)
.vortex/installer/src/Utils/Env.php (1)
  • Env (7-124)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/ProvisionType.php (2)
.vortex/installer/src/Utils/Env.php (1)
  • Env (7-124)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/Domain.php (3)
.vortex/installer/src/Utils/Converter.php (1)
  • Converter (9-17)
.vortex/installer/src/Utils/Env.php (1)
  • Env (7-124)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/Services.php (1)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/DependencyUpdatesProvider.php (1)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/MachineName.php (3)
.vortex/installer/src/Utils/Composer.php (1)
  • Composer (7-36)
.vortex/installer/src/Utils/Converter.php (1)
  • Converter (9-17)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/tests/Functional/FunctionalTestCase.php (6)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/Internal.php (1)
  • Internal (12-129)
.vortex/installer/src/Command/InstallCommand.php (1)
  • InstallCommand (26-433)
.vortex/installer/tests/Unit/UnitTestCase.php (1)
  • UnitTestCase (20-61)
.vortex/installer/src/Utils/Config.php (1)
  • Config (14-124)
.vortex/installer/src/Utils/Env.php (1)
  • Env (7-124)
.vortex/installer/src/Prompts/Handlers/Profile.php (2)
.vortex/installer/src/Utils/Env.php (1)
  • Env (7-124)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/Name.php (2)
.vortex/installer/src/Utils/Composer.php (1)
  • Composer (7-36)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/GithubRepo.php (1)
.vortex/installer/src/Utils/Git.php (1)
  • Git (11-113)
.vortex/installer/src/Prompts/Handlers/DatabaseImage.php (2)
.vortex/installer/src/Utils/Env.php (1)
  • Env (7-124)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/tests/Unit/UnitTestCase.php (1)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
.vortex/installer/src/Prompts/Handlers/PreserveDocsOnboarding.php (1)
.vortex/installer/src/Utils/File.php (1)
  • File (10-120)
⏰ Context from checks skipped due to timeout of 90000ms (8)
  • GitHub Check: build (1)
  • GitHub Check: build (0)
  • GitHub Check: vortex-test-deployment (1)
  • GitHub Check: vortex-test-deployment (0)
  • GitHub Check: vortex-test-workflow (3)
  • GitHub Check: vortex-test-workflow (1)
  • GitHub Check: vortex-test-workflow (2)
  • GitHub Check: vortex-test-workflow (0)
🔇 Additional comments (78)
.vortex/installer/src/Prompts/Handlers/CiProvider.php (1)

5-7: Consistent namespace migration
The namespace and import for the File utility have been correctly updated to DrevOps\VortexInstaller, aligning with the new PSR-4 mapping and ensuring references resolve properly.

.vortex/installer/src/Utils/File.php (1)

5-5: Namespace updated to DrevOps\VortexInstaller\Utils
The PSR-4 declaration now matches the directory structure and Composer autoload configuration.

.vortex/installer/src/Utils/Env.php (1)

5-5: Namespace updated to DrevOps\VortexInstaller\Utils
PSR-4 declaration is aligned with the updated installer namespace.

.vortex/installer/src/Utils/Downloader.php (1)

5-5: Namespace updated to DrevOps\VortexInstaller\Utils
The namespace now reflects the new module prefix and matches the autoload mapping.

.vortex/installer/src/Utils/Composer.php (1)

5-5: Namespace updated to DrevOps\VortexInstaller\Utils
Declaration correctly reflects the new PSR-4 namespace for the Composer helper.

.vortex/installer/src/Utils/Converter.php (2)

5-5: Namespace update is correct.
The PSR-4 namespace now aligns with the folder structure and the new VortexInstaller prefix.


1-18:

Details

✅ Verification successful

Verify PSR-4 autoload mapping.
Double-check that composer.json’s "autoload" section has been updated to map DrevOps\\VortexInstaller\\Utils\\ (and the base DrevOps\\VortexInstaller\\) to src/ so these classes will autoload correctly.


🏁 Script executed:

#!/bin/bash
# Verify no lingering Installer namespace in composer.json
rg -n '"DrevOps\\\\Installer"' composer.json

Length of output: 46


I couldn’t find any "DrevOps\\Installer" entries in composer.json, but we need to confirm that your PSR-4 mappings include DrevOps\\VortexInstaller\\. Let’s dump the autoload.psr-4 section to be sure:


🏁 Script executed:

#!/bin/bash
# Display PSR-4 autoload mappings to verify VortexInstaller namespace
jq '.autoload["psr-4"]' composer.json

Length of output: 44


Let’s locate the correct composer.json to inspect its PSR-4 mappings:


🏁 Script executed:

#!/bin/bash
# Find all composer.json files in the repo
find . -type f -name composer.json

Length of output: 17365


Let’s inspect the PSR-4 mappings in the installer’s composer.json:


🏁 Script executed:

#!/bin/bash
# Show PSR-4 autoload mappings in .vortex/installer/composer.json
jq '.autoload["psr-4"]' ./.vortex/installer/composer.json

Length of output: 102


PSR-4 autoload mapping verified
The installer’s composer.json maps "DrevOps\\VortexInstaller\\""src/", which covers DrevOps\VortexInstaller\Utils\. No changes needed.

.vortex/installer/tests/Unit/SelfTest.php (1)

5-5: Namespace update in test is correct.
The test class is now in DrevOps\VortexInstaller\Tests\Unit and matches the new PSR-4 mapping.

.vortex/installer/src/Utils/Tui.php (1)

5-5: Namespace update is correct.
Tui now lives under DrevOps\VortexInstaller\Utils and matches the updated mapping.

.vortex/installer/src/app.php (1)

10-10: Import updated for InstallCommand.
The use statement now references DrevOps\VortexInstaller\Command\InstallCommand, matching the renamed class location.

.vortex/installer/src/Utils/Git.php (1)

5-5: Namespace update is correct.
The Git utility class now uses the DrevOps\VortexInstaller\Utils namespace as intended.

.vortex/installer/tests/Traits/TuiTrait.php (1)

5-7: Consistent namespace and import updated
The namespace and the Tui import have been correctly updated to DrevOps\VortexInstaller. This change aligns with the PSR-4 structure and keeps the test trait in sync with the refactored installer namespace.

.vortex/installer/src/Utils/Strings.php (1)

5-5: Namespace updated to DrevOps\VortexInstaller\Utils
The namespace declaration now matches the updated PSR-4 autoload mapping. No additional changes needed.

.vortex/installer/src/Prompts/Handlers/AssignAuthorPr.php (1)

5-5: Namespace updated to DrevOps\VortexInstaller\Prompts\Handlers
The class namespace correctly reflects the new installer prefix, ensuring autoload resolution remains intact.

.vortex/installer/tests/Unit/StringsTest.php (1)

5-9: Namespace and import updated for StringsTest
Both the test namespace and the import of Strings have been updated to DrevOps\VortexInstaller. This ensures the unit tests target the refactored utility class under the new namespace.

.vortex/installer/src/Utils/Validator.php (1)

5-12: Namespace and docblock @package annotation updated
Updated the namespace and the @package PHPDoc tag to DrevOps\VortexInstaller. These changes keep the class aligned with the updated PSR-4 configuration and documentation consistency.

.vortex/installer/src/Utils/Config.php (2)

5-5: Namespace updated to reflect refactoring.
Changed from DrevOps\Installer\Utils to DrevOps\VortexInstaller\Utils, aligning with the new installer namespace.


12-12: Docblock @package annotation adjusted.
Updated to DrevOps\VortexInstaller to match the revised namespace.

.vortex/installer/src/Prompts/Handlers/LabelMergeConflictsPr.php (1)

5-5: Namespace aligned with the new installer prefix.
Updated to DrevOps\VortexInstaller\Prompts\Handlers, consistent with adjacent handler classes.

.vortex/installer/src/Prompts/Handlers/ThemeRunner.php (1)

5-5: Namespace alignment is correct.
Now under DrevOps\VortexInstaller\Prompts\Handlers, matching the rest of the module.

.vortex/installer/composer.json (2)

46-46: PSR-4 autoload mapping updated.
Maps DrevOps\VortexInstaller\ to src/, matching the namespace refactor.


51-51: Dev autoload mapping updated.
Maps DrevOps\VortexInstaller\Tests\ to tests, ensuring test classes load under the new namespace.

.vortex/installer/src/Prompts/Handlers/HandlerInterface.php (1)

5-13: Namespace and package annotation updated.
Revised to DrevOps\VortexInstaller\Prompts\Handlers in both the namespace declaration and the @package docblock.

.vortex/installer/src/Prompts/Handlers/Services.php (1)

5-7: Namespace and import updated correctly
The namespace declaration and File utility import have been changed to DrevOps\VortexInstaller. Ensure that your PSR-4 autoload mapping in composer.json reflects this new prefix.

.vortex/installer/src/Prompts/Handlers/Profile.php (1)

5-8: Profile handler namespace and imports aligned
The namespace and both Env and File utility imports have been updated to use DrevOps\VortexInstaller. Confirm that the autoload section in composer.json has been updated to match.

.vortex/installer/src/Prompts/Handlers/Org.php (1)

5-8: Org handler namespace and imports updated
The namespace and imports for Composer and File have been switched to DrevOps\VortexInstaller. Verify that PSR-4 autoload entries in composer.json cover these new paths.

.vortex/installer/src/Prompts/Handlers/HostingProvider.php (1)

5-8: HostingProvider namespace and imports refreshed
The namespace and utility imports (Env, File) are now under DrevOps\VortexInstaller. Please double-check your composer.json PSR-4 settings to ensure this package structure is properly mapped.

.vortex/installer/tests/Unit/TuiTest.php (1)

5-9: Test namespace and import updated for Tui
The test class namespace and Tui import have been updated to DrevOps\VortexInstaller. Make sure that the test suite configuration and autoloader are aware of this change so tests continue to run.

.vortex/installer/src/Prompts/Handlers/ProvisionType.php (1)

5-8: Updated namespace and imports are correct. Files are now under DrevOps\VortexInstaller\Prompts\Handlers and import Env and File from DrevOps\VortexInstaller\Utils. This aligns with the PSR-4 autoload configuration.

.vortex/installer/tests/Unit/ConverterTest.php (2)

5-5: Namespace updated correctly. Now using DrevOps\VortexInstaller\Tests\Unit.


9-9: Import path updated. Converter is accurately imported from DrevOps\VortexInstaller\Utils.

.vortex/installer/src/Prompts/Handlers/Domain.php (1)

5-9: Namespace and imports updated properly. Domain now lives in DrevOps\VortexInstaller\Prompts\Handlers and pulls in Converter, Env, and File from the updated utils namespace.

.vortex/installer/src/Prompts/Handlers/Name.php (1)

5-8: Namespace and imports updated. The Name handler is correctly namespaced under DrevOps\VortexInstaller\Prompts\Handlers and imports Composer and File from DrevOps\VortexInstaller\Utils.

.vortex/installer/tests/Unit/GitTest.php (2)

5-5: Namespace update correct. Now under DrevOps\VortexInstaller\Tests\Unit.


9-9: Import path updated. Git is imported from the new DrevOps\VortexInstaller\Utils namespace.

.vortex/installer/src/Prompts/Handlers/AbstractHandler.php (1)

5-8:

Details

✅ Verification successful

LGTM: Namespace refactoring correctly implemented.

The namespace and import statements have been properly updated from DrevOps\Installer to DrevOps\VortexInstaller. The changes are consistent and maintain the same class structure.

Please verify that all references to the old namespace have been updated throughout the codebase:


🏁 Script executed:

#!/bin/bash
# Description: Check for any remaining references to the old DrevOps\Installer namespace
# Expected: No matches should be found

echo "Searching for old namespace references..."
rg "DrevOps\\\\Installer" --type php
rg "DrevOps\\\\Installer" --type json

echo "Searching for old use statements..."
rg "use DrevOps\\\\Installer" --type php

echo "Checking for old namespace declarations..."
rg "namespace DrevOps\\\\Installer" --type php

Length of output: 431


No leftover DrevOps\Installer references
Searches for DrevOps\Installer in both PHP and JSON files returned no matches. The namespace refactoring to DrevOps\VortexInstaller is fully applied and consistent across the codebase. Approving changes.

.vortex/installer/src/Prompts/Handlers/DatabaseDownloadSource.php (1)

5-8: LGTM: Consistent namespace refactoring.

The namespace and import statements have been correctly updated to use the new DrevOps\VortexInstaller prefix, maintaining consistency with the overall refactoring effort.

.vortex/installer/src/Prompts/Handlers/Internal.php (1)

5-10: LGTM: Namespace refactoring properly applied.

The namespace declaration and all utility class imports have been correctly updated to use the new DrevOps\VortexInstaller namespace prefix. The implementation remains functionally unchanged.

.vortex/installer/src/Prompts/Handlers/OrgMachineName.php (1)

5-8: LGTM: Namespace update correctly implemented.

The namespace and import statements have been properly updated to align with the new DrevOps\VortexInstaller namespace structure. No functional changes were made to the class.

.vortex/installer/src/Prompts/Handlers/DeployType.php (1)

5-9: Namespace and imports updated correctly.
All occurrences of DrevOps\Installer have been changed to DrevOps\VortexInstaller, and the utility imports (Converter, Env, File) point to the correct new namespace.

.vortex/installer/src/Prompts/Handlers/ModulePrefix.php (1)

5-8: Namespace and imports updated correctly.
The class namespace and utility imports (Converter, File) now use DrevOps\VortexInstaller, matching the new module structure.

.vortex/installer/src/Prompts/Handlers/GithubToken.php (1)

5-7: Namespace and import updated correctly.
The Env utility is now imported from DrevOps\VortexInstaller\Utils, aligning with the refactored namespace.

.vortex/installer/src/Prompts/Handlers/GithubRepo.php (1)

5-7: Namespace and import updated correctly.
The Git utility import has been revised to DrevOps\VortexInstaller\Utils\Git, ensuring consistency with the new namespace.

.vortex/installer/src/Prompts/Handlers/MachineName.php (1)

5-9: Namespace and imports updated correctly.
All utility imports (Composer, Converter, File) and the namespace declaration use the new DrevOps\VortexInstaller prefix.

.vortex/installer/src/Prompts/Handlers/CodeProvider.php (2)

5-5: Updated namespace to VortexInstaller.
Changed from DrevOps\Installer\Prompts\Handlers to DrevOps\VortexInstaller\Prompts\Handlers to match the new module prefix.


7-7: Adjusted File import path.
Updated the import from DrevOps\Installer\Utils\File to DrevOps\VortexInstaller\Utils\File.

.vortex/installer/tests/Unit/UnitTestCase.php (2)

5-5: Updated namespace in test fixture.
Changed from DrevOps\Installer\Tests\Unit to DrevOps\VortexInstaller\Tests\Unit to reflect the new installer namespace.


9-9: Adjusted File utility import.
Import path updated to use DrevOps\VortexInstaller\Utils\File instead of the old namespace.

.vortex/installer/src/Prompts/Handlers/PreserveDocsProject.php (2)

5-5: Updated namespace to VortexInstaller.
Changed namespace from DrevOps\Installer\Prompts\Handlers to DrevOps\VortexInstaller\Prompts\Handlers.


7-7: Adjusted File import path.
Updated import from DrevOps\Installer\Utils\File to DrevOps\VortexInstaller\Utils\File for consistency.

.vortex/installer/src/Prompts/Handlers/DatabaseImage.php (2)

5-5: Updated namespace to VortexInstaller.
Namespace changed to match the renamed installer component.


7-8: Adjusted utility imports.
Updated Env and File imports to DrevOps\VortexInstaller\Utils\Env and DrevOps\VortexInstaller\Utils\File.

.vortex/installer/src/Prompts/Handlers/PreserveDocsOnboarding.php (2)

5-5: Updated namespace to VortexInstaller.
Changed the namespace prefix to DrevOps\VortexInstaller\Prompts\Handlers.


7-7: Adjusted File import path.
Import updated from DrevOps\Installer\Utils\File to DrevOps\VortexInstaller\Utils\File.

.vortex/installer/src/Prompts/Handlers/DependencyUpdatesProvider.php (2)

5-5: Namespace updated to VortexInstaller
The namespace declaration has been correctly changed from DrevOps\Installer\Prompts\Handlers to DrevOps\VortexInstaller\Prompts\Handlers.


7-7: Import adjusted for new namespace
The File utility import now correctly points to DrevOps\VortexInstaller\Utils\File.

.vortex/installer/tests/Unit/EnvTest.php (2)

5-5: Namespace updated in test
The test’s namespace has been updated to DrevOps\VortexInstaller\Tests\Unit, aligning with the new module prefix.


10-10: Env import adjusted for new namespace
The Env utility import now references DrevOps\VortexInstaller\Utils\Env.

.vortex/installer/tests/Unit/ValidatorTest.php (2)

5-5: Namespace updated in ValidatorTest
The namespace has been updated to DrevOps\VortexInstaller\Tests\Unit to reflect the refactoring.


9-9: Validator import adjusted for new namespace
The Validator utility import now points to DrevOps\VortexInstaller\Utils\Validator.

.vortex/installer/src/Prompts/Handlers/Webroot.php (1)

5-9: Namespace and imports updated to VortexInstaller
The namespace and imports for Composer, Env, and File have been correctly updated to the DrevOps\VortexInstaller\Utils namespace.

.vortex/installer/tests/Functional/InstallTest.php (2)

5-5: Functional test namespace updated
The test’s namespace is now DrevOps\VortexInstaller\Tests\Functional, matching the new PSR-4 mapping.


7-41: Imports updated for new namespace prefix
All use statements have been correctly updated from DrevOps\Installer\* to DrevOps\VortexInstaller\* across commands, handlers, and utilities.

.vortex/installer/src/Prompts/Handlers/Theme.php (2)

5-5: Namespace updated to VortexInstaller
Aligned the PSR-4 namespace with the new VortexInstaller prefix.


7-9: Imports updated to VortexInstaller\Utils
All utility class imports (Converter, Env, File) have been refactored to the new namespace.

.vortex/installer/src/Command/InstallCommand.php (3)

5-5: Namespace updated to VortexInstaller
PSR-4 namespace prefix has been updated correctly.


7-12: Use statements adjusted for new namespace
Imports of PromptManager, Config, Downloader, Env, File, and Tui now point to DrevOps\VortexInstaller.


24-24: @Package annotation updated
Docblock package tag aligns with the new VortexInstaller\Command namespace.

.vortex/installer/tests/Functional/FunctionalTestCase.php (2)

5-5: Namespace updated to VortexInstaller
Functional tests now reference the correct DrevOps\VortexInstaller\Tests\Functional namespace.


10-15: Imports updated for VortexInstaller
Replaced DrevOps\Installer imports with DrevOps\VortexInstaller counterparts for InstallCommand, traits, and utilities.

.vortex/installer/tests/Unit/PromptManagerTest.php (3)

5-5: Namespace updated to VortexInstaller
Unit tests now reside under the updated DrevOps\VortexInstaller\Tests\Unit namespace.


8-12: Core imports aligned to new namespace
Updated imports for the Internal handler, upstream traits, and utility classes to DrevOps\VortexInstaller.


16-44: PromptManagerTest imports refactored
All prompt handler and utility imports have been migrated to DrevOps\VortexInstaller.

.vortex/installer/tests/Unit/FileTest.php (4)

5-5: Namespace updated to VortexInstaller
FileTest now uses the DrevOps\VortexInstaller\Tests\Unit namespace.


7-7: Import of File utility updated
The File class import has been updated to DrevOps\VortexInstaller\Utils\File.


72-74: Test for multiple empty lines remains valid
The input test for collapsing multiple empty lines after the pipe correctly verifies the behavior without modifications.


85-86: Whitespace-only empty lines test added
Including whitespace-only lines in the YAML literal block input enhances coverage of the collapse logic.

.vortex/installer/src/Prompts/PromptManager.php (1)

5-5:

Details

✅ Verification successful

Namespace Declaration Updated
The new namespace DrevOps\VortexInstaller\Prompts aligns with the refactoring. Please verify that your PSR-4 autoload mapping in composer.json has been updated from "DrevOps\\Installer\\": to "DrevOps\\VortexInstaller\\": accordingly.

Run this to confirm:


🏁 Script executed:

rg '"DrevOps\\\\VortexInstaller"' composer.json

Length of output: 49


I wasn’t able to find the PSR-4 mapping with the previous pattern—let’s search for any occurrences of “VortexInstaller” in your composer.json to be sure:


🏁 Script executed:

#!/bin/bash
rg 'VortexInstaller' -n composer.json

Length of output: 37


To be sure we’re not missing any PSR-4 entries, let’s search for all “DrevOps” occurrences in your composer.json:


🏁 Script executed:

#!/bin/bash
grep -n '"DrevOps' composer.json

Length of output: 34


Let’s inspect the PSR-4 autoload block to confirm the mapping update:


🏁 Script executed:

#!/bin/bash
grep -n -C 2 '"psr-4"' composer.json

Length of output: 38


Let’s locate every composer.json in the repo and inspect its PSR-4 block:


🏁 Script executed:

#!/bin/bash
find . -type f -name composer.json -exec grep -nC2 '"psr-4"' {} \;

Length of output: 44376


PSR-4 Autoload Mapping for DrevOps\VortexInstaller Confirmed

The composer.json already contains the correct PSR-4 entry:

• composer.json (lines 45–47)
"autoload": { "psr-4": { "DrevOps\\VortexInstaller\\": "src/" } }

No further changes are needed.

* Centralised place for providing prompts and their processing.
*
* @package DrevOps\Installer
* @package DrevOps\VortexInstaller
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick (assertive)

Docblock @Package Tag
The @package annotation currently points to DrevOps\VortexInstaller. Consider including the sub-namespace for clarity: DrevOps\VortexInstaller\Prompts.

🤖 Prompt for AI Agents
In .vortex/installer/src/Prompts/PromptManager.php at line 54, update the
docblock @package annotation to include the sub-namespace by changing it from
DrevOps\VortexInstaller to DrevOps\VortexInstaller\Prompts for better clarity
and accuracy.

$classes = [];
foreach ($handler_files as $file) {
$class = 'DrevOps\\Installer\\Prompts\\Handlers\\' . basename($file, '.php');
$class = 'DrevOps\\VortexInstaller\\Prompts\\Handlers\\' . basename($file, '.php');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick (assertive)

Use __NAMESPACE__ for Dynamic Handler Discovery
Hard-coding the namespace string can lead to drift if the namespace changes again. Refactor to use the __NAMESPACE__ constant:

-     $class = 'DrevOps\\VortexInstaller\\Prompts\\Handlers\\' . basename($file, '.php');
+     $class = __NAMESPACE__ . '\\Handlers\\' . basename($file, '.php');
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
$class = 'DrevOps\\VortexInstaller\\Prompts\\Handlers\\' . basename($file, '.php');
$class = __NAMESPACE__ . '\\Handlers\\' . basename($file, '.php');
🤖 Prompt for AI Agents
In .vortex/installer/src/Prompts/PromptManager.php at line 663, the namespace
for the handler class is hard-coded as a string. Replace the hard-coded
namespace string with the __NAMESPACE__ constant concatenated with the handler
class name to ensure the namespace remains accurate if it changes. This involves
using __NAMESPACE__ instead of the literal
'DrevOps\\VortexInstaller\\Prompts\\Handlers\\' prefix.

* PromptManager constructor.
*
* @param \DrevOps\Installer\Utils\Config $config
* @param \DrevOps\VortexInstaller\Utils\Config $config
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick (assertive)

Simplify Docblock Param
You’ve imported Config; update the @param to use the short class name:

- * @param \DrevOps\VortexInstaller\Utils\Config $config
+ * @param Config $config
🤖 Prompt for AI Agents
In .vortex/installer/src/Prompts/PromptManager.php at line 73, the docblock for
the parameter currently uses the fully qualified class name
\DrevOps\VortexInstaller\Utils\Config. Since Config is already imported, update
the @param annotation to use the short class name Config instead of the fully
qualified name to simplify the docblock.

* Array of handlers.
*
* @var array<string, \DrevOps\Installer\Prompts\Handlers\HandlerInterface>
* @var array<string, \DrevOps\VortexInstaller\Prompts\Handlers\HandlerInterface>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick (assertive)

Simplify Docblock Type Hint
Since HandlerInterface is imported at the top, you can drop the fully-qualified name in the @var tag.
Apply:

- * @var array<string, \DrevOps\VortexInstaller\Prompts\Handlers\HandlerInterface>
+ * @var array<string, HandlerInterface>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* @var array<string, \DrevOps\VortexInstaller\Prompts\Handlers\HandlerInterface>
* @var array<string, HandlerInterface>
🤖 Prompt for AI Agents
In .vortex/installer/src/Prompts/PromptManager.php at line 66, simplify the
docblock type hint by removing the fully-qualified namespace from the @var
annotation since HandlerInterface is already imported. Change the type hint from
array<string, \DrevOps\VortexInstaller\Prompts\Handlers\HandlerInterface> to
array<string, HandlerInterface>.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.75%. Comparing base (08bec4b) to head (a11b44e).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1721   +/-   ##
========================================
  Coverage    71.75%   71.75%           
========================================
  Files           77       77           
  Lines         4376     4376           
========================================
  Hits          3140     3140           
  Misses        1236     1236           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AlexSkrypnyk AlexSkrypnyk merged commit c8f94bc into develop Jun 4, 2025
30 checks passed
@AlexSkrypnyk AlexSkrypnyk deleted the feature/1656-update-installer-namespace branch June 4, 2025 02:38
@github-project-automation github-project-automation Bot moved this from BACKLOG to Release queue in Vortex Jun 4, 2025
@AlexSkrypnyk AlexSkrypnyk moved this from Release queue to Released in 25.6.0 in Vortex Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Move Installer namespace from DrevOps\Installer to DrevOps\VortexInstaller

1 participant