Skip to content

Replace nette/robot-loader with custom class indexing - #152

Merged
TomasVotruba merged 1 commit into
mainfrom
remove-robot-loader
Oct 1, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
remove-robot-loader

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Drop the nette/robot-loader runtime dependency (PHP 8.1 floor) in favor of entropy's token-based ClassNameResolver (^0.4.23) combined with the existing PhpFilesFinder.

Both PhpClassLoader and TestCaseClassFinder built a class-to-file map via RobotLoader; they now scan PHP files and resolve declared class-likes (class, interface, trait, enum) per file, including files holding multiple classes.

Added PhpClassLoaderTest covering single-class, multi-class, and excluded-path cases.

Removes the last non-PHP-7.4 nette floor. Remaining for full 7.4-8.5: source syntax downgrade + composer php constraint.

@TomasVotruba
TomasVotruba merged commit 7f381b7 into main Oct 1, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the remove-robot-loader branch October 1, 2026 12:36
@TomasVotruba TomasVotruba mentioned this pull request Oct 1, 2026
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.

1 participant