Skip to content

Addressing PR comments#85

Merged
MekDrop merged 5 commits intomainfrom
claude/let-user-configure-censorstring
Apr 2, 2026
Merged

Addressing PR comments#85
MekDrop merged 5 commits intomainfrom
claude/let-user-configure-censorstring

Conversation

@Claude
Copy link
Copy Markdown
Contributor

@Claude Claude AI commented Apr 2, 2026

No description provided.

@Claude Claude AI assigned Claude and MekDrop Apr 2, 2026
@Claude Claude AI linked an issue Apr 2, 2026 that may be closed by this pull request
@Claude Claude AI changed the title [WIP] Add ability for users to configure censorString functionality Replace icms_core_DataFilter stub with configurable CensorString system Apr 2, 2026
@Claude Claude AI requested a review from MekDrop April 2, 2026 10:23
Comment thread src/Contracts/CensorStringInterface.php Outdated
Comment thread src/Internal/Facades/CensorString.php Outdated
@MekDrop MekDrop marked this pull request as ready for review April 2, 2026 10:32
- Changed CensorStringInterface to use __invoke magic method for cleaner API
- Updated DefaultCensorString implementation to use __invoke
- Removed CensorString facade as it was just a one-liner wrapper
- Updated StringType to use ServiceLocator directly with invokable interface
- Updated tests to work with new __invoke approach

Agent-Logs-Url: https://github.com/imponeer/properties/sessions/94424d24-3031-44a8-bd50-1cef7e973185

Co-authored-by: MekDrop <342641+MekDrop@users.noreply.github.com>
@Claude Claude AI requested a review from MekDrop April 2, 2026 10:38
@MekDrop
Copy link
Copy Markdown
Member

MekDrop commented Apr 2, 2026

@claude[agent] resolve conflicts

Co-authored-by: MekDrop <342641+MekDrop@users.noreply.github.com>
@Claude
Copy link
Copy Markdown
Contributor Author

Claude AI commented Apr 2, 2026

@claude[agent] resolve conflicts

Conflicts resolved in commit ad99eb4. The main branch had refactored ServiceLocator to use lazy initialization instead of a const array, so I adopted that pattern while preserving the CensorStringInterface registration.

@Claude Claude AI changed the title Replace icms_core_DataFilter stub with configurable CensorString system Addressing PR comments Apr 2, 2026
@MekDrop
Copy link
Copy Markdown
Member

MekDrop commented Apr 2, 2026

@claude[agent] make sure tests passes, phpcs and phpstan too!!!!

@MekDrop MekDrop merged commit b995b60 into main Apr 2, 2026
5 checks passed
@MekDrop MekDrop deleted the claude/let-user-configure-censorstring branch April 2, 2026 10:54
Copilot stopped work on behalf of MekDrop due to an error April 2, 2026 10:55
@Claude Claude AI requested a review from MekDrop April 2, 2026 10:55
@Claude Claude AI mentioned this pull request Apr 2, 2026
Claude AI added a commit that referenced this pull request Apr 2, 2026
Following the same pattern as CensorStringInterface (PR #85), replace the
icms_core_Textsanitizer stub with a proper interface-based solution:

- Added TextSanitizerInterface for text sanitization functionality
- Added DefaultTextSanitizer as default implementation (pass-through)
- Updated ServiceLocator to register TextSanitizerInterface
- Modified StringType to use TextSanitizerInterface via ServiceLocator
- Removed icms_core_Textsanitizer class from legacy-stubs.php
- Kept phpstan-stubs.php for static analysis compatibility

Users can now configure their own text sanitizer by registering a custom
implementation with ServiceLocator, allowing integration with ImpressCMS
or other sanitization libraries.

Agent-Logs-Url: https://github.com/imponeer/properties/sessions/48caf56e-c644-4502-bd10-c59d175bbc3b

Co-authored-by: MekDrop <342641+MekDrop@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Let user configure how censorString works

2 participants