Environment
dev, prod
Sonata packages
show
$ composer show --latest 'sonata-project/*'
# Put the result here.
Direct dependencies required in composer.json:
sonata-project/admin-bundle 4.42.0 4.42.0 The missing Symfony Admin Generator
sonata-project/doctrine-orm-admin-bundle 4.21.0 4.21.0 Integrate Doctrine ORM into the SonataAdminBundle
Transitive dependencies not required in composer.json:
sonata-project/block-bundle 5.4.0 5.4.0 Symfony SonataBlockBundle
sonata-project/doctrine-extensions 2.6.0 2.6.0 Doctrine2 behavioral extensions
sonata-project/exporter 3.4.0 3.4.0 Lightweight Exporter library
sonata-project/form-extensions 2.7.0 2.7.0 Symfony form extensions
sonata-project/twig-extensions 2.6.0 2.6.0 Sonata twig extensions
</p>
</details>
#### Symfony packages
<details><summary>show</summary>
<p>
$ composer show --latest 'symfony/*'
Put the result here.
symfony/console 8.0.6 8.0.6 Eases the creation of beautiful and testable command line interfaces
symfony/dotenv 8.0.6 8.0.6 Registers environment variables from a .env file
symfony/flex 2.10.0 2.10.0 Composer plugin for Symfony
symfony/framework-bundle 8.0.6 8.0.6 Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/maker-bundle 1.66.0 1.66.0 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so...
symfony/runtime 8.0.1 8.0.1 Enables decoupling PHP applications from global state
symfony/yaml 8.0.6 8.0.6 Loads and dumps YAML files
Transitive dependencies not required in composer.json:
symfony/asset 8.0.6 8.0.6 Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript fil...
symfony/cache 8.0.6 8.0.6 Provides extended PSR-6, PSR-16 (and tags) implementations
symfony/cache-contracts 3.6.0 3.6.0 Generic abstractions related to caching
symfony/clock 8.0.0 8.0.0 Decouples applications from the system clock
symfony/config 8.0.6 8.0.6 Helps you find, load, combine, autofill and validate configuration values of any kind
symfony/dependency-injection 8.0.6 8.0.6 Allows you to standardize and centralize the way objects are constructed in your application
symfony/deprecation-contracts 3.6.0 3.6.0 A generic function and convention to trigger deprecation notices
symfony/doctrine-bridge 8.0.6 8.0.6 Provides integration for Doctrine with various Symfony components
symfony/error-handler 8.0.4 8.0.4 Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher 8.0.4 8.0.4 Provides tools that allow your application components to communicate with each other by dis...
symfony/event-dispatcher-contracts 3.6.0 3.6.0 Generic abstractions related to dispatching event
symfony/expression-language 8.0.4 8.0.4 Provides an engine that can compile and evaluate expressions
symfony/filesystem 8.0.6 8.0.6 Provides basic utilities for the filesystem
symfony/finder 8.0.6 8.0.6 Finds files and directories via an intuitive fluent interface
symfony/form 8.0.6 8.0.6 Allows to easily create, process and reuse HTML forms
symfony/http-foundation 8.0.6 8.0.6 Defines an object-oriented layer for the HTTP specification
symfony/http-kernel 8.0.6 8.0.6 Provides a structured process for converting a Request into a Response
symfony/options-resolver 8.0.0 8.0.0 Provides an improved replacement for the array_replace PHP function
symfony/password-hasher 8.0.6 8.0.6 Provides password hashing utilities
symfony/polyfill-intl-grapheme 1.33.0 1.33.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-icu 1.33.0 1.33.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-normalizer 1.33.0 1.33.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring 1.33.0 1.33.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php85 1.33.0 1.33.0 Symfony polyfill backporting some PHP 8.5+ features to lower PHP versions
symfony/process 8.0.5 8.0.5 Executes commands in sub-processes
symfony/property-access 8.0.4 8.0.4 Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info 8.0.6 8.0.6 Extracts information about PHP class' properties using metadata of popular sources
symfony/routing 8.0.6 8.0.6 Maps an HTTP request to a set of configuration variables
symfony/security-bundle 8.0.6 8.0.6 Provides a tight integration of the Security component into the Symfony full-stack framework
symfony/security-core 8.0.4 8.0.4 Symfony Security Component - Core Library
symfony/security-csrf 8.0.6 8.0.6 Symfony Security Component - CSRF Library
symfony/security-http 8.0.6 8.0.6 Symfony Security Component - HTTP Integration
symfony/serializer 8.0.6 8.0.6 Handles serializing and deserializing data structures, including object graphs, into array ...
symfony/service-contracts 3.6.1 3.6.1 Generic abstractions related to writing services
symfony/stimulus-bundle 2.32.0 2.32.0 Integration with your Symfony app & Stimulus!
symfony/stopwatch 8.0.0 8.0.0 Provides a way to profile code
symfony/string 8.0.6 8.0.6 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grap...
symfony/translation 8.0.6 8.0.6 Provides tools to internationalize your application
symfony/translation-contracts 3.6.1 3.6.1 Generic abstractions related to translation
symfony/twig-bridge 8.0.6 8.0.6 Provides integration for Twig with various Symfony components
symfony/twig-bundle 8.0.4 8.0.4 Provides a tight integration of Twig into the Symfony full-stack framework
symfony/type-info 8.0.6 8.0.6 Extracts PHP types information.
symfony/validator 8.0.6 8.0.6 Provides tools to validate values
symfony/var-dumper 8.0.6 8.0.6 Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter 8.0.0 8.0.0 Allows exporting any serializable PHP data structure to plain PHP code
PHP version
$ php -v
# Put the result here.
PHP 8.5.3
Zend Engine v4.5.3, Copyright (c) Zend Technologies
with Zend OPcache v8.5.3, Copyright (c), by Zend Technologies
## Subject
<!--
Give here as many details as possible.
Next sections are for ERRORS only.
-->
## Minimal repository with the bug
## Steps to reproduce
composer require sonata-project/admin-bundle
Enable the Bundle
Configure the Installed Bundles
Define routes
## Expected results
## Actual results
Cannot load resource "@SonataAdminBundle/Resources/config/routing/sonata_admin.xml". Make sure the "SonataAdminBundle" bundle is correctly
registered and loaded in the application kernel class. If the bundle is registered, make sure the bundle path "@SonataAdminBundle/Resources
/config/routing/sonata_admin.xml" is not empty.
Symfony 7.4 deprecates XmlFileLoader for service definitions and routing. It is removed in 8.0. The following XML files loaded via Symfony's XmlFileLoader need to be migrated to PHP or YAML
I resolved the error by changing:
# config/routes/sonata_admin.yaml
admin_area:
resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.php'
type: php
prefix: /admin
_sonata_admin:
resource: .
type: sonata_admin
prefix: /admin
Environment
dev, prod
Sonata packages
show
$ composer show --latest 'symfony/*'
Put the result here.
symfony/console 8.0.6 8.0.6 Eases the creation of beautiful and testable command line interfaces
symfony/dotenv 8.0.6 8.0.6 Registers environment variables from a .env file
symfony/flex 2.10.0 2.10.0 Composer plugin for Symfony
symfony/framework-bundle 8.0.6 8.0.6 Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/maker-bundle 1.66.0 1.66.0 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so...
symfony/runtime 8.0.1 8.0.1 Enables decoupling PHP applications from global state
symfony/yaml 8.0.6 8.0.6 Loads and dumps YAML files
Transitive dependencies not required in composer.json:
symfony/asset 8.0.6 8.0.6 Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript fil...
symfony/cache 8.0.6 8.0.6 Provides extended PSR-6, PSR-16 (and tags) implementations
symfony/cache-contracts 3.6.0 3.6.0 Generic abstractions related to caching
symfony/clock 8.0.0 8.0.0 Decouples applications from the system clock
symfony/config 8.0.6 8.0.6 Helps you find, load, combine, autofill and validate configuration values of any kind
symfony/dependency-injection 8.0.6 8.0.6 Allows you to standardize and centralize the way objects are constructed in your application
symfony/deprecation-contracts 3.6.0 3.6.0 A generic function and convention to trigger deprecation notices
symfony/doctrine-bridge 8.0.6 8.0.6 Provides integration for Doctrine with various Symfony components
symfony/error-handler 8.0.4 8.0.4 Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher 8.0.4 8.0.4 Provides tools that allow your application components to communicate with each other by dis...
symfony/event-dispatcher-contracts 3.6.0 3.6.0 Generic abstractions related to dispatching event
symfony/expression-language 8.0.4 8.0.4 Provides an engine that can compile and evaluate expressions
symfony/filesystem 8.0.6 8.0.6 Provides basic utilities for the filesystem
symfony/finder 8.0.6 8.0.6 Finds files and directories via an intuitive fluent interface
symfony/form 8.0.6 8.0.6 Allows to easily create, process and reuse HTML forms
symfony/http-foundation 8.0.6 8.0.6 Defines an object-oriented layer for the HTTP specification
symfony/http-kernel 8.0.6 8.0.6 Provides a structured process for converting a Request into a Response
symfony/options-resolver 8.0.0 8.0.0 Provides an improved replacement for the array_replace PHP function
symfony/password-hasher 8.0.6 8.0.6 Provides password hashing utilities
symfony/polyfill-intl-grapheme 1.33.0 1.33.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-icu 1.33.0 1.33.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-normalizer 1.33.0 1.33.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring 1.33.0 1.33.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php85 1.33.0 1.33.0 Symfony polyfill backporting some PHP 8.5+ features to lower PHP versions
symfony/process 8.0.5 8.0.5 Executes commands in sub-processes
symfony/property-access 8.0.4 8.0.4 Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info 8.0.6 8.0.6 Extracts information about PHP class' properties using metadata of popular sources
symfony/routing 8.0.6 8.0.6 Maps an HTTP request to a set of configuration variables
symfony/security-bundle 8.0.6 8.0.6 Provides a tight integration of the Security component into the Symfony full-stack framework
symfony/security-core 8.0.4 8.0.4 Symfony Security Component - Core Library
symfony/security-csrf 8.0.6 8.0.6 Symfony Security Component - CSRF Library
symfony/security-http 8.0.6 8.0.6 Symfony Security Component - HTTP Integration
symfony/serializer 8.0.6 8.0.6 Handles serializing and deserializing data structures, including object graphs, into array ...
symfony/service-contracts 3.6.1 3.6.1 Generic abstractions related to writing services
symfony/stimulus-bundle 2.32.0 2.32.0 Integration with your Symfony app & Stimulus!
symfony/stopwatch 8.0.0 8.0.0 Provides a way to profile code
symfony/string 8.0.6 8.0.6 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grap...
symfony/translation 8.0.6 8.0.6 Provides tools to internationalize your application
symfony/translation-contracts 3.6.1 3.6.1 Generic abstractions related to translation
symfony/twig-bridge 8.0.6 8.0.6 Provides integration for Twig with various Symfony components
symfony/twig-bundle 8.0.4 8.0.4 Provides a tight integration of Twig into the Symfony full-stack framework
symfony/type-info 8.0.6 8.0.6 Extracts PHP types information.
symfony/validator 8.0.6 8.0.6 Provides tools to validate values
symfony/var-dumper 8.0.6 8.0.6 Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter 8.0.0 8.0.0 Allows exporting any serializable PHP data structure to plain PHP code
PHP version