-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Labels
Description
Just to mention the issue we encountered while updating EasyAdminBundle for 3.0 support, keeping the exact same configuration (in tests):
framework:
secret: secret
translator: ~
default_locale: "%locale%"
test: ~
router: { resource: "%kernel.root_dir%/config/routing_base.yml" }
form: true
validation: { enable_annotations: true }
templating: { engines: ['twig'] }
profiler:
collect: true
session:
storage_id: session.storage.mock_file
This is the diff between the 2.8 and 3.0 processed configuration:
< array:23 [
---
> array:21 [
22,23c22,23
< "enabled" => null
< "field_name" => null
---
> "enabled" => false
> "field_name" => "_token"
47c47
< "profiler" => array:8 [
---
> "profiler" => array:5 [
53,55d52
< "username" => ""
< "password" => ""
< "lifetime" => 86400
69,72d65
< "csrf_protection" => array:2 [
< "enabled" => false
< "field_name" => "_token"
< ]
99,105d91
< "assets" => array:5 [
< "version" => null
< "version_format" => "%%s?%%s"
< "base_path" => ""
< "base_urls" => []
< "packages" => []
< ]
111c97
The issue we encountered was about the asset
twig function, which isn't loaded in 3.0, because the framework.assets
key doesn't have the "default values" it used to anymore, due to the framework bundle's Configuration class (the highlighted part is removed in 3.0).
I don't think it was mentioned anywhere. What do you think should be done about that ?