Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor instance creation logic for clarity
Consolidate the logic for adding prototype or singleton instances into a single conditional expression, improving code readability and maintainability. This change eliminates redundant checks and ensures that the corresponding method is invoked directly based on the $isSingleton condition.
- Loading branch information