Skip to content

Conversation

@ejunker
Copy link
Contributor

@ejunker ejunker commented May 14, 2025

In the old BedrockServiceProvider.php it was calling $this->app->get('prism-manager') which would resolve PrismManager from the container on every Laravel application boot. It would resolve and extend PrismManager even if the request being served did not need PrismManager. By updating it to use app->extend() it will only run that code if PrismManager is resolved from the container which is more efficient.

@sixlive sixlive merged commit 5b74567 into prism-php:main May 16, 2025
14 checks passed
@sixlive sixlive changed the title Lazily extend PrismManager refactor: Lazily extend PrismManager May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants