Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
3af2941e
Commit
3af2941e
authored
Jan 17, 2013
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1889244
by klausi: Fixed Remove JSON-LD encoder array as there is only one JSON-LD encoder.
parent
4aaa7252
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
core/modules/jsonld/lib/Drupal/jsonld/JsonldBundle.php
core/modules/jsonld/lib/Drupal/jsonld/JsonldBundle.php
+4
-10
No files found.
core/modules/jsonld/lib/Drupal/jsonld/JsonldBundle.php
View file @
3af2941e
...
...
@@ -44,11 +44,6 @@ public function build(ContainerBuilder $container) {
'jsonld'
=>
'Drupal\jsonld\JsonldRdfSchemaNormalizer'
,
),
);
// Encoders can only specify which format they support in
// Encoder::supportsEncoding().
$encoders
=
array
(
'jsonld'
=>
'Drupal\jsonld\JsonldEncoder'
,
);
// Add Normalizers to service container.
foreach
(
$normalizers
as
$supported_class
=>
$formats
)
{
...
...
@@ -60,11 +55,10 @@ public function build(ContainerBuilder $container) {
}
}
// Add Encoders to service container.
foreach
(
$encoders
as
$format
=>
$encoder_class
)
{
$container
->
register
(
"serializer.encoder.
{
$format
}
"
,
$encoder_class
)
->
addTag
(
'encoder'
,
array
(
'priority'
=>
$priority
));
}
// Add the encoder to the service container. Encoders can only specify which
// format they support in Encoder::supportsEncoding().
$container
->
register
(
'serializer.encoder.jsonld'
,
'Drupal\jsonld\JsonldEncoder'
)
->
addTag
(
'encoder'
,
array
(
'priority'
=>
$priority
));
$container
->
register
(
'jsonld.subscriber'
,
'Drupal\jsonld\EventSubscriber\JsonldSubscriber'
)
->
addTag
(
'event_subscriber'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment