Skip to content

Conversation

serpentblade
Copy link
Contributor

The method that checks for a cached configuration file uses is_file (and was changed a few years back from file_exists during a mass update). These methods weren't updated as they weren't directly calling file_exists, but under the hood that's effectively all this method does after looking up the Filesystem service.

This brings these methods in line with other usages of is_file and trims an unnecessary service lookup from the call stack.

The method that checks for a cached configuration file uses is_file (and was changed a few years back from file_exists during a mass update).  These methods weren't updated as they weren't directly calling file_exists, but under the hood that's effectively all this method does after looking up the Filesystem service.

This brings these methods in line with other usages of is_file and trims an unnecessary service lookup from the call stack.
@taylorotwell
Copy link
Member

Going to leave as is in case the container binding has been changed in existing apps.

@serpentblade
Copy link
Contributor Author

Fair enough. How about for 11.x?

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