Skip to content
Snippets Groups Projects
Commit 8b4d973c authored by Tobias Zimmermann's avatar Tobias Zimmermann
Browse files

by tstoeckler: Revert the decision to switch from YAML to JSON

parent 6432c929
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,7 @@ services:
- '@libraries.php_file_loader'
libraries.registry:
class: Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistry
# @todo Reconsider the decision to go with JSON instead of YAML.
arguments: ['@serialization.json', '@plugin.manager.libraries.locator']
arguments: ['@serialization.yaml', '@plugin.manager.libraries.locator']
plugin.manager.libraries.locator:
class: Drupal\libraries\ExternalLibrary\Local\LocatorManager
parent: default_plugin_manager
......
{
"id": "test_asset_library",
"class": "Drupal\\libraries\\ExternalLibrary\\Asset\\AssetLibrary",
"remote_url": "http://example.com",
"css": {
"base": {
"example.css": []
}
},
"js": {
"example.js": []
}
}
id: test_asset_library
class: Drupal\libraries\ExternalLibrary\Asset\AssetLibrary
remote_url: http://example.com
css:
base:
example.css: { }
js:
example.js: { }
{
"id": "test_php_file_library",
"class": "Drupal\\libraries\\ExternalLibrary\\PhpFile\\PhpFileLibrary",
"files": [
"test_php_file_library.php"
]
}
id: test_php_file_library
class: Drupal\libraries\ExternalLibrary\PhpFile\PhpFileLibrary
files: [test_php_file_library.php]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment