Skip to content

Installation and Configuration Problems with Bundle #3

@powernic

Description

@powernic

Hello!

First, thank you for the great project and the additional features you've provided for Sonata Admin through the partITech/sonata-extra bundle. I tried to integrate it into a test project, but encountered some issues during installation and configuration.

Steps to Reproduce:

  1. I created a new project using:
    • PHP >= 8.2
    • Symfony 7.x
    • Latest Sonata Admin Bundle
  2. The admin panel works correctly and is accessible at http://127.0.0.1/admin when using sonata-project/admin-bundle.
  3. After that, I replaced the sonata-project/admin-bundle line in the composer.json file with the following command:
    composer require partitech/sonata-extra

Problems:

  1. After running the composer require partitech/sonata-extra command, I encountered the following dependency issue:

    Problem 1
    - Root composer.json requires partitech/sonata-extra * -> satisfiable by partitech/sonata-extra[dev-main, 1.0.1, ..., 1.0.11].
    - partitech/sonata-extra[dev-main, 1.0.1, ..., 1.0.11] require sonata-project/page-bundle 5.x-dev -> satisfiable by sonata-project/page-bundle[5.x-dev].
    - sonata-project/page-bundle 5.x-dev requires symfony/config ^5.4 || ^6.2 -> found symfony/config[v5.4.0-BETA1, ..., 5.4.x-dev, v6.2.0-BETA1, ..., 6.4.x-dev] but the package is fixed to v7.1.1 (lock file version).
  2. After replacing sonata-project/admin-bundle with partitech/sonata-extra in the composer.json file, I encountered a configuration error when running:

    docker compose up -d --build

    The error message was:

    The child config "default_formatter" under "sonata_formatter" must be configured.

Request:

Could you please provide a working demo project using your bundle so that I can better understand how to integrate it correctly? I also created a minimal demo project that works without errors when using the standard sonata-project/admin-bundle: Sonata Extra Demo. It could be used as a base for showcasing how to set up partitech/sonata-extra.

Any help or guidance on how to properly install and configure your bundle would be greatly appreciated. Thank you for your hard work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions