go/internal/cmd/php
Vi c83f9a25a7
chore(io): Migrate internal/cmd/php to Medium abstraction (#338)
Completes issue #112 by migrating all direct os.* filesystem calls in
internal/cmd/php to use the io.Medium abstraction via getMedium().

Changes:
- packages.go: os.ReadFile/WriteFile → getMedium().Read/Write
- container.go: os.WriteFile/Remove/MkdirAll/Stat → getMedium().Write/Delete/EnsureDir/IsFile
- services.go: os.MkdirAll/OpenFile/Open → getMedium().EnsureDir/Create/Open
- dockerfile.go: os.ReadFile/Stat → getMedium().Read/IsFile
- ssl.go: os.MkdirAll/Stat → getMedium().EnsureDir/IsFile
- cmd_ci.go: os.WriteFile → getMedium().Write
- cmd.go: os.Stat → getMedium().IsDir
- coolify.go: os.Open → getMedium().Read
- testing.go: os.Stat → getMedium().IsFile
- cmd_qa_runner.go: os.Stat → getMedium().IsFile
- detect.go: os.Stat/ReadFile → getMedium().Exists/Read
- quality.go: os.Stat/ReadFile → getMedium().Exists/IsFile/Read

All production files now use the consistent getMedium() pattern for
testability. Test files retain direct os.* calls as they manage test
fixtures directly.

Closes #112

Co-authored-by: Claude <developers@lethean.io>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 18:14:59 +00:00
..
locales feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
cmd.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
cmd_build.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
cmd_ci.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
cmd_commands.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
cmd_deploy.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
cmd_dev.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
cmd_packages.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
cmd_qa_runner.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
cmd_quality.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
container.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
container_test.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
coolify.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
coolify_test.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
deploy.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
deploy_internal_test.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
deploy_test.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
detect.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
detect_test.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
dockerfile.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
dockerfile_test.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
i18n.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
packages.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
packages_test.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
php.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
php_test.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
quality.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
quality_extended_test.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
quality_test.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
services.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
services_extended_test.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
services_test.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
services_unix.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
services_windows.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
ssl.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
ssl_extended_test.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
ssl_test.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00
testing.go chore(io): Migrate internal/cmd/php to Medium abstraction (#338) 2026-02-05 18:14:59 +00:00
testing_test.go feat(mcp): add workspace root validation to prevent path traversal (#100) 2026-02-01 21:59:34 +00:00