Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Mar 2015 at 12:24 UTC
Updated:
12 Apr 2015 at 22:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alexpottComment #2
dawehnerThere is indeed no reason for it, not to be private. You should never access it, but instead
this is not the way how you define private services http://symfony.com/doc/current/components/dependency_injection/advanced....
Comment #3
alexpottOkay - let's fix where I c&p'd this from
Comment #4
dawehnerThis will break the following code:
$format = \Drupal::service('http_negotiation.format_negotiator')->getContentType($request);Comment #5
alexpottokay let's leave that for another issue.
Last patch :)
Comment #6
dawehnerYou should not be able to complain about a one line patch.
Comment #8
webchickCan't really argue with a one-line performance fix. :)
Committed and pushed to 8.0.x. Thanks!