Symfony 3 OneUp Flysystem error: There is no extension able to load the configuration for "oneup_flysystem"

Symfony 3 OneUp Flysystem error: There is no extension able to load the configuration for "oneup_flysystem"

根据 Flysystem 的 configuration,我在 config.yml 上进行了以下设置:

oneup_flysystem:
    adapters:
        acme.flysystem_adapter:
            awss3v3:
                client: acme.s3_client
                bucket: "%s3_bucket_name%"
                prefix: "symfotest_"

并且我在 services.yml 上提供了以下设置:

acme.s3_client:
        class: Aws\S3\S3Client
        arguments:
            -
                version: 'latest' # or 'latest'
                region: "%s3_region%" # 'eu-central-1' for example
                credentials:
                    key: "%s3_key%"
                    secret: "%s3_secret%"

结束 我通过SetEnv设置了以下环境变量:

SetEnv SYMFONY_S3_BUCKET_NAME   symphotest
SetEnv SYMFONY_S3_REGION    eu_west_1
SetEnv SYMFONY_S3_KEY       akey 
SetEnv SYMFONY_S3_SECRET    asuperseccret 

但是我在 error.log 上收到以下错误:

[Wed Jul 06 21:11:56.424801 2016] [:error] [pid 21876] [client 127.0.0.1:60488] PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: There is no extension able to load the configuration for "oneup_flysystem" (in /home/pcmagas/Kwdikas/web/apps/symphotest/app/config/config.yml). Looked for namespace "oneup_flysystem", found "framework", "security", "twig", "monolog", "swiftmailer", "doctrine", "sensio_framework_extra" in /home/pcmagas/Kwdikas/web/apps/symphotest/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php:368\nStack trace:\n#0 /home/pcmagas/Kwdikas/web/apps/symphotest/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php(338): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->validate(Array, '/home/pcmagas/K...')\n#1 /home/pcmagas/Kwdikas/web/apps/symphotest/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php(44): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadFile('/home/pcmagas/K...')\n#2 /home/pcmagas/Kwdikas/we in /home/pcmagas/Kwdikas/web/apps/symphotest/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/FileLoader.php on line 118

你有什么想法这个修好了没?

当 OneUpBundle 未在 AppKernel 中注册时会发生这种情况。将相应的包 class 添加到 registerBundles 方法中的其他包,你应该是 golden.

有关详细信息,请查看 here