BrandOriented / PimcoreCiHubConnector

This bundle adds full integration between Pimcore and CI-HUB Connector. Now you can add, delete and download all assets, lock and unlock, get all versions for specified asset and much more.
https://brandoriented.io/
Other
5 stars 6 forks source link

There is no extension able to load the configuration for "nelmio_api_doc" #9

Closed betterapp closed 9 months ago

betterapp commented 9 months ago

Pimcore version(s) affected

11

Description

When I enable the PimcoreCIHubAdapterBundle

I got error:

2024-02-05T08:04:18+01:00 [critical] Uncaught Exception: There is no extension able to load the configuration for "nelmio_api_doc" (in "config.php"). Looked for namespace "nelmio_api_doc", found "framework", "security", "twig", 
"twig_extra", "monolog", "doctrine", "doctrine_migrations", "cmf_routing", "scheb_two_factor", "fos_js_routing", "flysystem", "knp_paginator", "debug", "web_profiler", "pimcore_admin", "pimcore_data_hub", "webpack_encore", "blackbit_data_director", "pimcore_web_to_print", "pimcore_file_explorer", "simple_rest_adapter", "pimcore".

How to reproduce

require package

composer require ci-hub/pimcore-ci-hub-adapter-bundle

then enable it in /config/bundles.php with

use CIHub\Bundle\SimpleRESTAdapterBundle\SimpleRESTAdapterBundle;

return [
    // ....
    SimpleRESTAdapterBundle::class => ['all' => true],
    // ....
];

Possible Solution

No response

Additional Context

No response

betterapp commented 9 months ago

The bundle need to be enabled in /config/bundles.php

use Nelmio\ApiDocBundle\NelmioApiDocBundle;

return [
   // ...
   NelmioApiDocBundle::class => ['all' => true],
   // ...
];
betterapp commented 9 months ago

After merge this https://github.com/BrandOriented/PimcoreCiHubConnector/pull/11

the bundle do not need to be enabled in config/bundles.php

labudzinski commented 9 months ago

Pull request has been merged