Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
ckeditor.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
24 May 2013 at 19:22 UTC
Updated:
29 Jul 2014 at 22:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ebeyrent commentedComment #3
ddrozdik commentedAttached new patch with some modifications.
Comment #4
podarok#3 clean conversion
RTBC
Comment #5
ebeyrent commentedIs it confusing for developers new to Drupal 8 to see $this->container->get() vs. Drupal::service()?
Comment #6
ddrozdik commentedebeyrent, No, we should use $this->container in tests instead Drupal::service(), and it's ok, because container already available from parent class and don't need to call again it, just look at parent clases.
Comment #7
alexpottNeeds a reroll
Comment #8
pwieck commentedRe-rolled
Comment #10
pwieck commented#8: ckeditor-module-replace-drupal_container-2003430-8.patch queued for re-testing.
Comment #11
pwieck commentedBad testbot...Bad! Don't know why this failed so bad the first time. I guess submitting a test in the middle of the night is a not a good idea.
Comment #12
pwieck commentedckeditor seems to work as it should without errors on this mornings build.
Comment #13
alexpottNow that #1903346: Establish a new DefaultPluginManager to encapsulate best practices has landed lets do the inject properly here...
This means that CKEditorPluginManager will need to be converted to the new DefaultPluginManager class and then the CKEditor plugin will need to be converted to implement ContainerFactoryPluginBase.
This is because replacing drupal_container for \Drupal::service is just replacing a static with a static...
Comment #14
wim leersUpdating title.
Are you still up for it, DmitryDrozdik or pwieck? I promise fast reviews if you still are! :)
Comment #15
wim leersFix typo.
Comment #16
wim leers#13:
DefaultPluginManagerin #2039425: Convert CKEditorPluginManager to extend DefaultPluginManager.\Drupal\ckeditor\Plugin\Editor\CKEditoris implementingContainerFactoryPluginInterfaceas of #1879120: Use Drupal-specific image and link plugins — use core dialogs rather than CKEditor dialogs, containing alterable Drupal forms.ContainerFactoryPluginInterface, since none of them use anything in the container.Hence the scope of this issue has been reduced to just removing the leftover
drupal_container()calls in CKEditor's tests.Patch attached for just that.
Comment #18
wim leersComment #19
ebeyrent commentedLooks good.
Comment #20
wim leers.
Comment #21
webchickLooks pretty straight-forward.
Committed and pushed to 8.x. Thanks!
Comment #22
wim leers.
Comment #23.0
(not verified) commentedUpdated issue summary.