Skip to content

refactor: rename namespace to deployer - #110

Merged
loadinglucian merged 6 commits into
mainfrom
refactor/rename-namespace-to-deployer
Dec 3, 2025
Merged

refactor: rename namespace to deployer#110
loadinglucian merged 6 commits into
mainfrom
refactor/rename-namespace-to-deployer

Conversation

@loadinglucian

@loadinglucian loadinglucian commented Dec 3, 2025

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features
    • Simplified CLI banner and renamed application to "Deployer" for a cleaner startup display.
  • Documentation
    • Updated README title, badges, and tagline to reflect rebranding.
  • Refactor
    • Rebranded namespaces across the codebase from PHP Deployer to Deployer with no behavior changes.
  • Chores
    • Updated package metadata and autoload configuration to the new package name and namespace.
  • Tests
    • Adjusted tests to match the new namespaces.
  • Other
    • Version reporting now targets the new package name.

✏️ Tip: You can customize this high-level summary in your review settings.

@loadinglucian

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Dec 3, 2025

Copy link
Copy Markdown
Contributor
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

This pull request renames the project's top-level PHP namespace from PHPDeployer to Deployer, updates PSR-4 autoloading and package metadata, adjusts application branding/banners, and updates corresponding use/imports and test expectations across the codebase.

Changes

Cohort / File(s) Summary
Namespace-wide refactor (app/...)
app/...
Mass rename of top-level namespace from PHPDeployer\ to Deployer\ across application code under app/ (classes, traits, DTOs, enums, exceptions, repositories, services).
Console Commands
app/Console/*, app/Console/.../*
All console command files moved from PHPDeployer\Console\* to Deployer\Console\*; corresponding imports updated to Deployer\....
Contracts & Core
app/Contracts/BaseCommand.php, app/Container.php
BaseCommand and Container namespaces changed to Deployer\...; constructor/property type-hints updated to new namespaces.
DigitalOcean services
app/Services/DigitalOcean/*, app/Services/DigitalOceanService.php
DigitalOcean-specific services moved to Deployer\Services\DigitalOcean; imports and enum references adjusted.
Services (general)
app/Services/*.php
Service classes (Env, Filesystem, Git, Http, IO, Inventory, Process, SSH, VersionService) moved to Deployer\Services; VersionService default package name changed to loadinglucian/deployer.
Traits
app/Traits/*.php
All traits updated to Deployer\Traits with dependent service/import updates; minor user-facing message text updated in ServersTrait.
DTOs & Enums
app/DTOs/*, app/Enums/*
DTOs and enums renamed to Deployer\DTOs / Deployer\Enums (namespace-only changes).
Repositories
app/Repositories/*
Repositories moved to Deployer\Repositories; DTO and service imports updated.
Application / CLI entry
app/SymfonyApp.php, bin/deployer
Application namespace and imports updated to Deployer\...; app name changed from "Deployer PHP" to "Deployer"; banner simplified; bin/deployer imports updated.
Composer / packaging
composer.json
Package name changed to loadinglucian/deployer; description updated; PSR-4 autoload mapping changed from "PHPDeployer\\": "app" to "Deployer\\": "app".
README & Tests
README.md, tests/Integration/ArchitectureTest.php, tests/TestCase.php
README header/tagline updated; tests and TestCase namespace/expectations adjusted to Deployer\....

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20–30 minutes

  • Rationale: Large number of files but predominantly consistent, mechanical namespace and import substitutions; verify autoloading, type-hints, and a few behavioral changes (banner text, VersionService default package).
  • Areas to double-check:
    • composer.json PSR-4 mapping and package name alignment with CI/build tooling
    • Constructor/property type-hints in app/Contracts/BaseCommand.php and any DI wiring
    • VersionService default package name impact on release/version lookups
    • ServersTrait updated user-facing messages and any newly-added SiteRepository import usage
    • Tests' expectations and autoloading under new namespace

Possibly related PRs

Poem

🐰 I hopped through files both near and far,

Changed names from PHPDeployer to Deployer, hurrah!
Imports aligned, the banner made sleek,
Composer remapped in just one tweak.
A tiny rabbit cheers this tidy refactor — squeak! 🥕

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'refactor: rename namespace to deployer' directly and clearly describes the primary change across all files in the changeset, which is a comprehensive namespace refactoring from PHPDeployer to Deployer.
Docstring Coverage ✅ Passed Docstring coverage is 83.33% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refactor/rename-namespace-to-deployer

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c926e69 and 4b1c8cf.

📒 Files selected for processing (2)
  • app/SymfonyApp.php (3 hunks)
  • app/Traits/ServersTrait.php (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • app/SymfonyApp.php
🧰 Additional context used
🧬 Code graph analysis (1)
app/Traits/ServersTrait.php (7)
app/DTOs/ServerDTO.php (1)
  • ServerDTO (7-40)
app/DTOs/SiteDTO.php (1)
  • SiteDTO (7-24)
app/Repositories/ServerRepository.php (1)
  • ServerRepository (15-195)
app/Repositories/SiteRepository.php (1)
  • SiteRepository (15-202)
app/Services/IOService.php (1)
  • IOService (30-489)
app/Services/SSHService.php (1)
  • SSHService (37-333)
app/Contracts/BaseCommand.php (1)
  • info (198-201)
🔇 Additional comments (3)
app/Traits/ServersTrait.php (3)

100-100: LGTM! Branding update is appropriate.

The text correctly reflects the new project name "Deployer" in the user-facing error message.


111-111: LGTM! Branding update is appropriate.

The text correctly reflects the new project name "Deployer" in the user-facing error message.


5-13: Namespace refactor is complete and consistent.

The namespace has been correctly updated from PHPDeployer to Deployer, all imports have been updated accordingly, and the PSR-4 autoload configuration in composer.json is properly configured. No remaining references to the old namespace exist in the codebase.


Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (4)
composer.json (1)

2-3: Composer package rename and PSR-4 root look correct

"name": "loadinglucian/deployer" and "Deployer\\": "app" align with the new namespaces used in app/*. This will be a breaking change for users depending on the old PHPDeployer\\ namespace or package name, so it’s worth treating the next release as a major and documenting the migration path.

Also applies to: 38-38

app/Traits/ServersTrait.php (2)

5-25: Add missing SiteRepository import for accurate docblocks

The docblock advertises @property SiteRepository $sites, but there’s no use Deployer\Repositories\SiteRepository; in this file, so tools will resolve it as Deployer\Traits\SiteRepository.

Consider adding the import so the documented type matches the actual repository class:

 namespace Deployer\Traits;

 use Deployer\DTOs\ServerDTO;
 use Deployer\DTOs\SiteDTO;
 use Deployer\Enums\Distribution;
 use Deployer\Repositories\ServerRepository;
+use Deployer\Repositories\SiteRepository;
 use Deployer\Services\IOService;
 use Deployer\Services\SSHService;

95-116: Consider aligning user-facing messages with new project name

The messages:

  • "DeployerPHP only supports Debian and Ubuntu."
  • "DeployerPHP requires root or passwordless sudo permissions:"

still reference “DeployerPHP” while the namespace/CLI have been renamed to Deployer. If the product name has changed as well, consider updating these strings to avoid confusion; if not, no change is required.

app/SymfonyApp.php (1)

117-118: Remove leftover commented code.

These commented lines appear to be remnants from the previous banner implementation and serve no purpose.

-    // <fg=cyan>▒</>
-    // ━━━━━━━━━━━━━━━
-
     /**
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f724640 and c926e69.

📒 Files selected for processing (55)
  • README.md (1 hunks)
  • app/Console/HelloCommand.php (1 hunks)
  • app/Console/Key/KeyAddDigitalOceanCommand.php (1 hunks)
  • app/Console/Key/KeyDeleteDigitalOceanCommand.php (1 hunks)
  • app/Console/Key/KeyListDigitalOceanCommand.php (1 hunks)
  • app/Console/ScaffoldHooksCommand.php (1 hunks)
  • app/Console/Server/ServerAddCommand.php (1 hunks)
  • app/Console/Server/ServerDeleteCommand.php (1 hunks)
  • app/Console/Server/ServerInfoCommand.php (1 hunks)
  • app/Console/Server/ServerInstallCommand.php (1 hunks)
  • app/Console/Server/ServerListCommand.php (1 hunks)
  • app/Console/Server/ServerLogsCommand.php (1 hunks)
  • app/Console/Server/ServerProvisionDigitalOceanCommand.php (1 hunks)
  • app/Console/Server/ServerRunCommand.php (1 hunks)
  • app/Console/Site/SiteAddCommand.php (1 hunks)
  • app/Console/Site/SiteDeleteCommand.php (1 hunks)
  • app/Console/Site/SiteDeployCommand.php (1 hunks)
  • app/Console/Site/SiteHttpsCommand.php (1 hunks)
  • app/Console/Site/SiteListCommand.php (1 hunks)
  • app/Console/Site/SiteSharedPullCommand.php (1 hunks)
  • app/Console/Site/SiteSharedPushCommand.php (1 hunks)
  • app/Container.php (1 hunks)
  • app/Contracts/BaseCommand.php (3 hunks)
  • app/DTOs/ServerDTO.php (1 hunks)
  • app/DTOs/SiteDTO.php (1 hunks)
  • app/Enums/Distribution.php (1 hunks)
  • app/Enums/DistributionFamily.php (1 hunks)
  • app/Exceptions/SSHTimeoutException.php (1 hunks)
  • app/Repositories/ServerRepository.php (1 hunks)
  • app/Repositories/SiteRepository.php (1 hunks)
  • app/Services/DigitalOcean/BaseDigitalOceanService.php (1 hunks)
  • app/Services/DigitalOcean/DigitalOceanAccountService.php (1 hunks)
  • app/Services/DigitalOcean/DigitalOceanDropletService.php (1 hunks)
  • app/Services/DigitalOcean/DigitalOceanKeyService.php (1 hunks)
  • app/Services/DigitalOceanService.php (1 hunks)
  • app/Services/EnvService.php (1 hunks)
  • app/Services/FilesystemService.php (1 hunks)
  • app/Services/GitService.php (1 hunks)
  • app/Services/HttpService.php (1 hunks)
  • app/Services/IOService.php (1 hunks)
  • app/Services/InventoryService.php (1 hunks)
  • app/Services/ProcessService.php (1 hunks)
  • app/Services/SSHService.php (1 hunks)
  • app/Services/VersionService.php (2 hunks)
  • app/SymfonyApp.php (3 hunks)
  • app/Traits/DigitalOceanTrait.php (1 hunks)
  • app/Traits/KeysTrait.php (1 hunks)
  • app/Traits/PlaybooksTrait.php (1 hunks)
  • app/Traits/ServersTrait.php (1 hunks)
  • app/Traits/SiteSharedPathsTrait.php (1 hunks)
  • app/Traits/SitesTrait.php (1 hunks)
  • bin/deployer (1 hunks)
  • composer.json (2 hunks)
  • tests/Integration/ArchitectureTest.php (3 hunks)
  • tests/TestCase.php (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (26)
app/Console/Server/ServerProvisionDigitalOceanCommand.php (2)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/DTOs/ServerDTO.php (1)
  • ServerDTO (7-40)
app/Traits/SitesTrait.php (2)
app/DTOs/ServerDTO.php (1)
  • ServerDTO (7-40)
app/DTOs/SiteDTO.php (1)
  • SiteDTO (7-24)
app/Console/Server/ServerRunCommand.php (1)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/Repositories/SiteRepository.php (2)
app/DTOs/SiteDTO.php (1)
  • SiteDTO (7-24)
app/Services/InventoryService.php (1)
  • InventoryService (33-264)
app/Console/Site/SiteSharedPushCommand.php (2)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/DTOs/ServerDTO.php (1)
  • ServerDTO (7-40)
tests/Integration/ArchitectureTest.php (1)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/Console/Site/SiteDeleteCommand.php (1)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/Repositories/ServerRepository.php (2)
app/DTOs/ServerDTO.php (1)
  • ServerDTO (7-40)
app/Services/InventoryService.php (1)
  • InventoryService (33-264)
app/Services/DigitalOcean/DigitalOceanKeyService.php (1)
app/Services/FilesystemService.php (1)
  • FilesystemService (28-179)
app/Console/Site/SiteListCommand.php (1)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/Console/Key/KeyAddDigitalOceanCommand.php (1)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/Console/Key/KeyListDigitalOceanCommand.php (1)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/Console/Server/ServerAddCommand.php (2)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/DTOs/ServerDTO.php (1)
  • ServerDTO (7-40)
app/Services/SSHService.php (2)
app/DTOs/ServerDTO.php (1)
  • ServerDTO (7-40)
app/Exceptions/SSHTimeoutException.php (1)
  • SSHTimeoutException (10-19)
app/Traits/ServersTrait.php (5)
app/DTOs/ServerDTO.php (1)
  • ServerDTO (7-40)
app/DTOs/SiteDTO.php (1)
  • SiteDTO (7-24)
app/Repositories/ServerRepository.php (1)
  • ServerRepository (15-195)
app/Services/IOService.php (1)
  • IOService (30-489)
app/Services/SSHService.php (1)
  • SSHService (37-333)
app/Console/Server/ServerInstallCommand.php (2)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/DTOs/ServerDTO.php (1)
  • ServerDTO (7-40)
app/Console/Site/SiteDeployCommand.php (2)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/DTOs/SiteDTO.php (1)
  • SiteDTO (7-24)
app/Console/ScaffoldHooksCommand.php (1)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/Services/DigitalOceanService.php (3)
app/Services/DigitalOcean/DigitalOceanAccountService.php (1)
  • DigitalOceanAccountService (17-186)
app/Services/DigitalOcean/DigitalOceanDropletService.php (1)
  • DigitalOceanDropletService (14-186)
app/Services/DigitalOcean/DigitalOceanKeyService.php (1)
  • DigitalOceanKeyService (14-75)
app/Traits/SiteSharedPathsTrait.php (1)
app/DTOs/SiteDTO.php (1)
  • SiteDTO (7-24)
app/Console/Site/SiteHttpsCommand.php (1)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/Console/Server/ServerListCommand.php (1)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/Console/Server/ServerDeleteCommand.php (1)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/Console/Server/ServerLogsCommand.php (2)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/DTOs/ServerDTO.php (1)
  • ServerDTO (7-40)
app/Console/Server/ServerInfoCommand.php (1)
app/Contracts/BaseCommand.php (1)
  • BaseCommand (30-355)
app/SymfonyApp.php (1)
app/Services/VersionService.php (1)
  • VersionService (12-39)
🔇 Additional comments (55)
app/Services/FilesystemService.php (1)

5-5: Namespace rename is consistent with the new structure

Deployer\Services matches the directory and the PR-wide namespace refactor; no functional impact here.

app/Services/HttpService.php (1)

5-5: HTTP service namespace updated correctly

Namespace switched to Deployer\Services in line with the rest of the refactor; no code behavior changes.

app/Container.php (1)

5-5: Root Container moved under Deployer namespace

Top-level namespace Deployer fits the project-wide rename and container role; no other changes required here.

app/Services/IOService.php (1)

5-5: IOService namespace aligned with services

Deployer\Services correctly reflects the service layer namespace and matches related trait imports.

app/DTOs/SiteDTO.php (1)

5-5: SiteDTO now under Deployer\DTOs

Namespace Deployer\DTOs is consistent with the DTO folder and the rest of the refactor.

app/Enums/Distribution.php (1)

5-5: Distribution enum namespace updated appropriately

Placing Distribution in Deployer\Enums is consistent with enum usage and the parallel DistributionFamily enum.

app/Services/GitService.php (1)

5-5: GitService correctly moved to Deployer\Services

Namespace matches its collaborating services (ProcessService, FilesystemService) and the services directory layout.

app/Services/ProcessService.php (1)

5-5: ProcessService namespace matches service layer refactor

Deployer\Services is consistent with FilesystemService and other services; type-hints remain valid.

app/Enums/DistributionFamily.php (1)

5-5: Namespace rename in DistributionFamily is consistent and non-breaking internally

Namespace Deployer\Enums matches the file path and PSR-4 "Deployer\\": "app"; enum behavior is unchanged.

app/Services/DigitalOcean/BaseDigitalOceanService.php (1)

5-5: DigitalOcean base service namespace updated correctly

Namespace now aligns with Deployer\Services\DigitalOcean and PSR-4 mapping; API client handling is unchanged.

README.md (1)

2-9: README branding and badge target align with new package identity

Project title, tests badge URL, and tagline now consistently use Deployer / loadinglucian/deployer; no technical issues here.

app/Services/InventoryService.php (1)

5-5: InventoryService namespace realigned with PSR-4 mapping

Moving to Deployer\Services keeps type hints valid and matches "Deployer\\": "app"; inventory behavior is unchanged.

app/Services/VersionService.php (1)

5-5: VersionService default package name correctly updated

Namespace now Deployer\Services, and the default $packageName = 'loadinglucian/deployer' matches composer.json, keeping version resolution consistent after the rename.

Also applies to: 19-21

app/DTOs/ServerDTO.php (1)

5-5: ServerDTO namespace now matches directory and autoload config

Deployer\DTOs is consistent with the file path and PSR-4 setup; DTO semantics remain unchanged.

app/Traits/KeysTrait.php (1)

5-7: KeysTrait namespace and FilesystemService import updated coherently

Trait now lives under Deployer\Traits and imports Deployer\Services\FilesystemService, keeping the $this->fs contract intact with the new namespace scheme.

tests/TestCase.php (1)

5-12: Test namespace rename looks correct

namespace Deployer\Tests; aligns this base test class with the new root namespace; no behavioral changes introduced.

app/Console/Server/ServerInfoCommand.php (1)

5-10: Console command namespace/import refactor is consistent

Namespace and imports now target Deployer\Console\Server and Deployer\* symbols; the command’s behavior remains unchanged.

app/Traits/SiteSharedPathsTrait.php (1)

5-8: Trait namespace and DTO import update look good

SiteSharedPathsTrait now lives under Deployer\Traits and correctly imports Deployer\DTOs\SiteDTO; path helper behavior is unchanged.

app/Exceptions/SSHTimeoutException.php (1)

5-18: Exception namespace migration is safe

SSHTimeoutException now lives under Deployer\Exceptions; constructor and behavior remain identical, so dependent code just needs updated imports.

app/Console/Server/ServerAddCommand.php (1)

5-11: ServerAddCommand namespace/import updates look correct

The command is now under Deployer\Console\Server and imports Deployer\Contracts\BaseCommand plus the relevant traits/DTOs; functionality of execute() and helpers is preserved.

app/Console/Server/ServerProvisionDigitalOceanCommand.php (1)

5-11: DigitalOcean provision command refactor maintains behavior

Namespace and imports now reference Deployer\Console\Server and Deployer\* symbols; droplet provisioning, rollback, and inventory registration logic are unchanged.

app/Services/EnvService.php (1)

5-25: EnvService namespace move is isolated

EnvService now resides in Deployer\Services with the same constructor and methods; env loading and lookup behavior are unaffected.

app/Console/Server/ServerDeleteCommand.php (1)

5-9: Namespace and imports correctly migrated to Deployer\

The namespace and related use statements now consistently reference Deployer\Contracts and Deployer\Traits, matching the rest of the file’s usage without altering behavior.

bin/deployer (1)

6-7: Entry-point imports aligned with new root namespace

The CLI bootstrap now imports Deployer\Container and Deployer\SymfonyApp, which matches the renamed application namespace and should keep runtime wiring intact.

app/Services/DigitalOcean/DigitalOceanKeyService.php (1)

5-8: DigitalOceanKeyService namespace/import update is consistent

Moving the class under Deployer\Services\DigitalOcean and importing Deployer\Services\FilesystemService matches the rest of the DigitalOcean service suite with no behavioral changes.

app/Services/DigitalOceanService.php (1)

5-9: Facade service now correctly targets Deployer\Services\DigitalOcean\*

The service’s namespace and its injected collaborators are updated to the Deployer\ tree, keeping constructor typing and API wiring coherent with the refactor.

app/Services/DigitalOcean/DigitalOceanDropletService.php (1)

5-5: Droplet service namespace migrated without functional impact

The class now lives under Deployer\Services\DigitalOcean; all internal usage remains the same, so only the exposed FQCN changes.

app/Console/ScaffoldHooksCommand.php (1)

5-8: Console command correctly moved under Deployer\Console

The namespace and BaseCommand import now reference Deployer\*, aligning this command with the rest of the console layer without altering its logic.

app/Traits/DigitalOceanTrait.php (1)

5-9: Trait imports aligned with new services namespace

The trait now lives under Deployer\Traits and imports the corresponding Deployer\Services\* types, keeping both the runtime expectations and docblocks in sync with the namespace rename.

app/Traits/SitesTrait.php (1)

5-13: SitesTrait now references DTOs, repositories, and services under Deployer\

The namespace and all related use statements are updated to Deployer\DTOs, Deployer\Repositories, and Deployer\Services, matching the trait’s type hints and docblocks without changing its behavior.

app/Console/HelloCommand.php (1)

5-7: Namespace refactor looks correct.

The namespace declaration and import statement are properly updated from PHPDeployer to Deployer, maintaining consistency with the PSR-4 autoloading structure.

app/Console/Key/KeyListDigitalOceanCommand.php (1)

5-8: Namespace and imports correctly updated.

The namespace and both trait/contract imports are properly migrated to the Deployer namespace, consistent with the codebase-wide refactoring.

app/Console/Key/KeyDeleteDigitalOceanCommand.php (1)

5-9: Namespace and imports correctly updated.

All internal namespace references (BaseCommand, DigitalOceanTrait, KeysTrait) are properly migrated to the Deployer namespace.

app/Services/DigitalOcean/DigitalOceanAccountService.php (1)

5-7: Namespace and import correctly updated.

The namespace declaration and Distribution enum import are properly migrated to the Deployer namespace. External library imports (DigitalOceanV2) remain correctly unchanged.

app/Console/Server/ServerListCommand.php (1)

5-9: Namespace and imports correctly updated.

All internal references (BaseCommand, ServersTrait, SitesTrait) are properly migrated to the Deployer namespace.

app/Services/SSHService.php (1)

5-8: Namespace and imports correctly updated.

The namespace declaration and internal imports (ServerDTO, SSHTimeoutException) are properly migrated to the Deployer namespace. External phpseclib3 imports remain correctly unchanged.

app/Console/Server/ServerRunCommand.php (1)

5-8: Namespace and imports correctly updated.

The namespace declaration and internal imports (BaseCommand, ServersTrait) are properly migrated to the Deployer namespace.

app/Console/Server/ServerInstallCommand.php (1)

5-11: Namespace and imports correctly updated.

All internal references (BaseCommand, ServerDTO, KeysTrait, PlaybooksTrait, ServersTrait) are properly migrated to the Deployer namespace, consistent with the codebase-wide refactoring.

tests/Integration/ArchitectureTest.php (1)

5-5: LGTM! Namespace refactoring applied correctly.

The import and test expectations have been updated consistently to reflect the new Deployer namespace.

Also applies to: 14-14, 28-28

app/Repositories/SiteRepository.php (1)

5-8: LGTM! Namespace and imports updated correctly.

The namespace declaration and use statements have been consistently updated to the Deployer namespace.

app/Console/Site/SiteSharedPullCommand.php (1)

5-12: LGTM! Namespace and imports updated correctly.

All namespace and import declarations have been consistently updated from PHPDeployer to Deployer.

app/Repositories/ServerRepository.php (1)

5-8: LGTM! Namespace and imports updated correctly.

The namespace declaration and use statements have been consistently updated to the Deployer namespace.

app/Console/Key/KeyAddDigitalOceanCommand.php (1)

5-9: LGTM! Namespace and imports updated correctly.

All namespace and import declarations have been consistently updated from PHPDeployer to Deployer.

app/Console/Site/SiteListCommand.php (1)

5-8: LGTM! Namespace and imports updated correctly.

The namespace declaration and use statements have been consistently updated to the Deployer namespace.

app/Console/Site/SiteDeleteCommand.php (1)

5-10: LGTM! Namespace and imports updated correctly.

All namespace and import declarations have been consistently updated from PHPDeployer to Deployer.

app/Console/Server/ServerLogsCommand.php (1)

5-10: LGTM! Namespace and imports updated correctly.

All namespace and import declarations have been consistently updated from PHPDeployer to Deployer. Verification confirms no remaining PHPDeployer references exist anywhere in the codebase—neither in namespace declarations, use statements, string literals, nor documentation. The composer.json autoload configuration correctly maps Deployer\\ to the app directory. The refactoring across all files is clean and complete.

app/SymfonyApp.php (3)

5-27: Namespace and import updates look correct.

The namespace declaration and all import statements have been consistently updated from PHPDeployer to Deployer, aligning with the refactor objective.


48-48: Application name simplification is appropriate.

The name change from "Deployer PHP" to "Deployer" is consistent with the namespace rename and provides cleaner branding.


110-114: Banner update looks good.

The simplified banner with colored output and explicit version line is a clean improvement over the previous format.

app/Traits/PlaybooksTrait.php (1)

5-12: Namespace and import updates are consistent.

The namespace and all internal imports have been correctly updated to use the new Deployer namespace.

app/Console/Site/SiteAddCommand.php (1)

5-11: Namespace and import updates are correct.

The namespace declaration and all trait/DTO imports have been properly migrated to the Deployer namespace.

app/Console/Site/SiteHttpsCommand.php (1)

5-10: Namespace and import updates are consistent.

The namespace and trait imports have been correctly updated to use the new Deployer namespace.

app/Console/Site/SiteSharedPushCommand.php (1)

5-12: Namespace and import updates are correct.

The namespace declaration and all imports (BaseCommand, ServerDTO, and traits) have been properly migrated to the Deployer namespace.

app/Contracts/BaseCommand.php (1)

5-18: Namespace and import updates are consistent.

The namespace declaration and all 12 use statements are correctly updated from PHPDeployer to Deployer. The imported types match the constructor parameter types throughout the class.

app/Console/Site/SiteDeployCommand.php (1)

5-11: Namespace refactoring is correct and complete.

No stale PHPDeployer references remain in the codebase. The namespace declaration and all use statements are consistently updated to Deployer, and the PSR-4 autoload mapping in composer.json ("Deployer\\" => "app") properly supports this structure.

- Remove unused decorative comment lines in SymfonyApp
- Update error messages to use 'Deployer' instead of 'DeployerPHP'
@loadinglucian
loadinglucian merged commit f2eceda into main Dec 3, 2025
5 checks passed
@loadinglucian
loadinglucian deleted the refactor/rename-namespace-to-deployer branch December 3, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant