thephpleague / flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications
https://github.com/thephpleague/flysystem
MIT License
363 stars 68 forks source link

Registering the bundle ("There is no extension able to load") #28

Closed jukuan closed 4 years ago

jukuan commented 5 years ago

Hello guys,

Thanks for your work. I found your various packages very helpful. I'm going to integrate the flysystem for S3 cloud in my Symfony4 application. And after quick research and reading your installation documentation I did steps like those:

  1. composer require league/flysystem-bundle
  2. composer require league/flysystem-aws-s3-v3
  3. Added content into config/packages/flysystem.yaml (hope steps are fine)

And I got the error: There is no extension able to load the configuration for "flysystem" (in config/packages/flysystem.yaml).

I understand, it because I didn't register your bundle (didn't update AppKernel.php or list of bundles). But I didn't find anything about BundleInterface in the vendor/league directory. What should I register? I'm just going through steps from your documentation. It seems something is missed there.

So, my questions:

  1. Are my steps correct?
  2. Should I use both packages (flysystem-bundle and flysystem-aws-s3-v3)?
  3. Should I add OneupFlysystemBundle package too?
  4. Should I register a bundle in my AppKernel.php file and how?

Thanks in advance.

jukuan commented 5 years ago

My answers on those are:

  1. Yes.
  2. Not needed.
  3. yes, League\FlysystemBundle\FlysystemBundle::class needs to be registered in the Kernel.php file