Skip to content

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Mar 12, 2025

Q A
Branch? 4.1 (feature is available inside symfony)
License MIT
Doc PR needs to be done

@soyuka soyuka force-pushed the feat/laravel-autoconfigure branch from 6b5527d to 44468ca Compare March 12, 2025 15:49
@soyuka soyuka force-pushed the feat/laravel-autoconfigure branch from 44468ca to a075d1d Compare March 12, 2025 15:56
private function tagServices(): void
{
$directory = app_path();
$classes = ReflectionClassRecursiveIterator::getReflectionClassesFromDirectories([$directory]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't you think we should serialize or cache the tree to avoid possible performance problems?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ReflectionClassRecursiveIterator has already a memory cache and in the Provider we can't use the cache yet as it's not properly booted...

Note that this will only fetch classes from the app directory so the impact shouldn't be that huge.

@soyuka soyuka merged commit dd1b89f into api-platform:4.1 Mar 13, 2025
76 of 77 checks passed
@soyuka soyuka deleted the feat/laravel-autoconfigure branch March 13, 2025 08:24
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.

3 participants