symfony-cmf / resource-bundle

Resource Location for CMF documents based on Puli
https://cmf.symfony.com
5 stars 7 forks source link

Non-existent parameter cmf_resource.repositories.default_name #59

Closed Bomere closed 5 years ago

Bomere commented 5 years ago

Environment

PHP 7.3.6

Symfony packages

$ composer show --latest 'symfony/*'

symfony/assetic-bundle        v2.8.2  v2.8.2  Integrates Assetic into Symfony2
Package symfony/assetic-bundle is abandoned, you should avoid using it. Use symfony/webpack-encore-pack instead.
symfony/http-client           v4.3.2  v4.3.2  Symfony HttpClient component
symfony/http-client-contracts v1.1.5  v1.1.5  Generic abstractions related t...
symfony/mime                  v4.3.2  v4.3.2  A library to manipulate MIME m...
symfony/monolog-bundle        v2.12.1 v3.4.0  Symfony MonologBundle
symfony/polyfill-apcu         v1.11.0 v1.11.0 Symfony polyfill backporting a...
symfony/polyfill-ctype        v1.11.0 v1.11.0 Symfony polyfill for ctype fun...
symfony/polyfill-intl-icu     v1.11.0 v1.11.0 Symfony polyfill for intl's IC...
symfony/polyfill-intl-idn     v1.11.0 v1.11.0 Symfony polyfill for intl's id...
symfony/polyfill-mbstring     v1.11.0 v1.11.0 Symfony polyfill for the Mbstr...
symfony/polyfill-php54        v1.11.0 v1.11.0 Symfony polyfill backporting s...
symfony/polyfill-php55        v1.11.0 v1.11.0 Symfony polyfill backporting s...
symfony/polyfill-php56        v1.11.0 v1.11.0 Symfony polyfill backporting s...
symfony/polyfill-php70        v1.11.0 v1.11.0 Symfony polyfill backporting s...
symfony/polyfill-php72        v1.11.0 v1.11.0 Symfony polyfill backporting s...
symfony/polyfill-php73        v1.11.0 v1.11.0 Symfony polyfill backporting s...
symfony/polyfill-util         v1.11.0 v1.11.0 Symfony utilities for portabil...
symfony/security-acl          v3.0.2  v3.0.2  Symfony Security Component - A...
symfony/swiftmailer-bundle    v2.6.7  v3.2.8  Symfony SwiftmailerBundle
symfony/symfony               v2.8.51 v4.3.2  The Symfony PHP framework

Symfony CMF and Sonata packages

$ composer show --latest 'symfony-cmf/*'

symfony-cmf/block-bundle                          2.1.1 2.1.1
symfony-cmf/content-bundle                        2.1.0 2.1.0
symfony-cmf/core-bundle                           2.1.1 2.1.1
symfony-cmf/menu-bundle                           2.2.0 2.2.0
symfony-cmf/resource                              1.1.0 1.1.0
symfony-cmf/resource-bundle                       1.1.0 1.1.0
symfony-cmf/resource-rest-bundle                  1.1.0 1.1.0
symfony-cmf/routing                               2.1.0 2.1.0
symfony-cmf/routing-auto                          2.1.0 2.1.0
symfony-cmf/routing-auto-bundle                   2.1.0 2.1.0
symfony-cmf/routing-bundle                        2.1.1 2.1.1
symfony-cmf/slugifier-api                         2.0.0 2.0.0
symfony-cmf/sonata-phpcr-admin-integration-bundle 1.1.0 1.1.0
symfony-cmf/symfony-cmf                           2.1.0 2.1.0
symfony-cmf/tree-browser-bundle                   2.1.1 2.1.1

$ composer show --latest 'sonata-project/*'

sonata-project/admin-bundle                3.51.0 3.51.0 The missing Symfony Admin Generator
sonata-project/block-bundle                3.15.0 3.15.0 Symfony SonataBlockBundle
sonata-project/cache                       2.0.1  2.0.1  Cache library
sonata-project/core-bundle                 3.17.0 3.17.0 Symfony SonataCoreBundle
sonata-project/datagrid-bundle             2.4.0  3.0.0  Symfony SonataDatagridBundle
sonata-project/doctrine-extensions         1.3.0  1.3.0  Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle   3.9.0  3.9.0  Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/doctrine-phpcr-admin-bundle 2.2.0  2.2.0  Symfony Sonata / Integrate Doctrine PHPCR into the SonataAdminBundle
sonata-project/exporter                    2.0.1  2.0.1  Lightweight Exporter library
sonata-project/translation-bundle          2.4.1  2.4.1  SonataTranslationBundle

Hi,

I am updating bundles to switch to symfony 3 but I catch an error:

[Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]
  The service "sonata.admin.doctrine_phpcr.tree_controller" has a dependency
  on a non-existent parameter "cmf_resource.repositories.default_name".

Where can I set this parameter ?

When I add the parameter into my config file, I get another error.

cmf_resource:
    repositories:
        default:
            type: doctrine/phpcr-odm
 [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
  There is no extension able to load the configuration for "cmf_resource"

I don't know where to look ... and the link to the documentation doesn't work: https://symfony.com/doc/master/cmf/bundles/resource-rest/index.html

I have already reset the cache and reinstall all bundles.

Does someone have an idea?

Thank you!

Bomere commented 5 years ago

Avec les bonnes info, ça roule !

https://github.com/symfony-cmf/tree-browser-bundle/issues/144#issuecomment-301544866