We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm working on the debug toolbar, and I'd like to display a table of the caches.
All of them implement some similar properties, having them implement an interface would make them easy to find.
We could add getters to a trait, too. No compelling reason yet to do so, but maybe someday.
foreach ($this->getWorkbox() as $var=>$val) { if (is_object($val)) { $name = $val::class; if (str_ends_with($name, 'Cache')) { $cache[] = (array)$val + ['name' => (new \ReflectionClass($name))->getShortName()]; } } }
Rather than checking if the class ends in Cache, I'd rather check for an interface.
Final result I think will be helpful
The text was updated successfully, but these errors were encountered:
That's really nice! OK for a CacheInterface. at least with the name and strategy. It could be more generic in the future.
Sorry, something went wrong.
Thanks! I'm going to add more to the toolbar today (e.g. manifest).
I see the different caches, but I don't see the Cache Strategy. Am I missing something?
Resolved the the HasCacheStratigies interface.
HasCacheStratigies
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Spomky
No branches or pull requests
Description
I'm working on the debug toolbar, and I'd like to display a table of the caches.
All of them implement some similar properties, having them implement an interface would make them easy to find.
We could add getters to a trait, too. No compelling reason yet to do so, but maybe someday.
Example
Rather than checking if the class ends in Cache, I'd rather check for an interface.
Final result I think will be helpful
The text was updated successfully, but these errors were encountered: