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
class CaBundle does not extends from class Bundle -> BundleInterface #56
Comments
This CaBundle class has nothing to do with symfony or symfony bundles. It therefore does not implement the interface. It's called CA Bundle because it represents a bundle of certificate authorities. Bundle just means |
Hi Seldaek, yes I know. But Composer still adds that line to bundles.php: Composer\CaBundle\CaBundle::class => ['dev' => true, 'test' => true], after "composer install" which outputs: Removing that entry from bundles.php manually solves that issue. But still, I wonder why Composer adds that entry to bundles.php which causes the error finally. |
Composer does not do anything. Some symfony integration / flex or whatever plugin does this. That looks like a bug, but it's not something we can fix here. Should be reported on flex or in symfony recipes. I am not sure what is responsible for this. |
Ok thanks, that makes then sense. |
Seems to be https://github.com/symfony/flex/blob/89999fdaad52cab14637709f2d2ce25835a051e6/src/SymfonyBundle.php#L78 at fault. It just checks for the Bundle ending. Probably should do more checks than that.. |
Created an issue here: symfony/flex#622 |
Hi,
BundleInterface implements method getName():
The recipe adds an entry for CaBundle to bundles.php in Symfony.
https://github.com/symfony/http-kernel/blame/master/Kernel.php implements:
Method getName() is not existing in composer/ca-bundle. This leads to
Attempted to call an undefined method named "getName" of class "Composer\CaBundle\CaBundle". on "dev" environment.
The text was updated successfully, but these errors were encountered: