Skip to content

Improve container performance and developer experience#19

Merged
Chemaclass merged 4 commits into
mainfrom
feat/more-dx-improvements
Nov 8, 2025
Merged

Improve container performance and developer experience#19
Chemaclass merged 4 commits into
mainfrom
feat/more-dx-improvements

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

This PR introduces three key improvements to the container

Fuzzy Service Name Suggestions

When a service is not found, the container now suggests similar service names to help catch typos quickly:
No concrete class was found that implements: "App\LogerInterface"

  Did you mean one of these?
    - App\LoggerInterface
    - App\Service\LoggerInterface

Alias Resolution Caching

Service alias resolution is now cached, eliminating redundant lookups and improving performance for containers with heavy alias usage.

Container Statistics

New getStats() method provides debugging and monitoring information:

  $stats = $container->getStats();
  // Returns: registered_services, frozen_services, factory_services,
  //          bindings, cached_dependencies, memory_usage

@Chemaclass Chemaclass self-assigned this Nov 8, 2025
@Chemaclass Chemaclass added the enhancement New feature or request label Nov 8, 2025
@Chemaclass Chemaclass merged commit 74092d7 into main Nov 8, 2025
12 checks passed
@Chemaclass Chemaclass deleted the feat/more-dx-improvements branch November 8, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant