-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
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
Add support for scanning inside Symfony's bundles.php #146
Comments
Files without namespace and use statements have limited support as stated in readme. So just use FQN or use statements. |
@janedbal Hmm, interesting. When you have a bundles.php file with 50 bundles, having to import all them, makes the file 100+ lines instead of 50 lines. So I would prefer not to have to do that. Would it be possible to improve this limited support? |
If it is, I could try to provide a PR for it. |
So use FQN like this: <?php
return [
\Symfonycasts\TailwindBundle\SymfonycastsTailwindBundle::class => ['all' => true],
\Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
];
Definitelly not easy. I'll try to think about that again. |
That works, although PHPStorm / PHP CS Fixer now automatically imports it. Not ideal. |
Ok, I dived into it and turns out it was quite easy (#148). Can you try |
@janedbal It works 🎉 ⚡ Thank you!! |
If you have time, it would be great to have it tagged too. |
Released as 1.6.0 |
In my Symfony Application, we have a
config/bundles.php
that looks like this:My configuration looks like this:
But even though those bundles are used, the analyzer complains:
Am I missing something, or is a FQCN class reference not seen as usage?
The text was updated successfully, but these errors were encountered: