Comments

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new20.06 KB
ParisLiakos’s picture

maybe as a first step, we should fix all references to the old controller to point to the new one, so people copying and pasting from elsewhere, use the new namespace and then after, as a second step remove the interface
this would ensure that a lot less patches break

ParisLiakos’s picture

StatusFileSize
new19.46 KB

here is the patch, same as #1 but without removing the controller

Crell’s picture

Status: Needs review » Reviewed & tested by the community

I like the second approach. Break as few patches as possible. (But then go review patches and tell them to change before they're RTBC.)

Crell’s picture

Status: Reviewed & tested by the community » Needs work

Er, no. Sorry. We should NOT change HtmlFormController et al yet, because we want existing RTBC patches to still work. We can change that when we remove the old interface outright, which is probably another week or two.

ParisLiakos’s picture

Status: Needs work » Needs review
Issue tags: +WSCCI
StatusFileSize
new20.06 KB

problem is that

in_array('Drupal\Core\ControllerInterface', class_implements($form_arg))

returns FALSE for classes using the new Drupal\Core\Controller\ControllerInterface
so here is a re-upload of #1

Status: Needs review » Needs work
Issue tags: -WSCCI

The last submitted patch, drupal-1998140-6.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
Issue tags: +WSCCI

#6: drupal-1998140-6.patch queued for re-testing.

ParisLiakos’s picture

i think the more conversions are being commited this patch would need a reroll, as more usages are being added..so maybe postpone this, stick to the old interface for now and revisit before release, or when conversions are commited in a lot slower pace:P

Status: Needs review » Needs work

The last submitted patch, drupal-1998140-6.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new19.97 KB

Just another rerole.

Status: Needs review » Needs work

The last submitted patch, drupal-1998140-11.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new10.87 KB
new27.23 KB

Let's kill every reference to the old interface.

Status: Needs review » Needs work
Issue tags: -WSCCI

The last submitted patch, drupal-1998140-13.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
Issue tags: +WSCCI

#13: drupal-1998140-13.patch queued for re-testing.

dawehner’s picture

StatusFileSize
new501 bytes
new27.88 KB

Rerolled.

Status: Needs review » Needs work

The last submitted patch, drupal-1998140-16.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new28.56 KB

Just another rerole.

tim.plunkett’s picture

StatusFileSize
new28.63 KB

Rerolled.

vijaycs85’s picture

Tested below steps manually

1. applied batch and checked code base for Drupal\Core\ControllerInterface - No occurance
2. Re-installed drupal after patch - Installed without any error.

to me, it is RTBC :)

vijaycs85’s picture

Status: Needs review » Reviewed & tested by the community

Setting RTBC.

ParisLiakos’s picture

Issue tags: +Avoid commit conflicts

Ok we either do not commit other conversions and commit this first or we keep rerolling..so addding tag..lets get this in asap

amateescu’s picture

I fully agree with getting this in now. Learning the new ways of doing page callbacks is hard enough for D8 newcomers, so let's not trouble them even more by using a class that IDEs show as deprecated, while using the new one doesn't even work actually.

alexpott’s picture

Priority: Normal » Major
Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

Needs reroll and bumping priority as two ways of doing stuff not good...

curl https://drupal.org/files/controller-1998140-19.patch | git a
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 29318  100 29318    0     0  21389      0  0:00:01  0:00:01 --:--:-- 24803
error: patch failed: core/modules/aggregator/lib/Drupal/aggregator/Routing/AggregatorController.php:9
error: core/modules/aggregator/lib/Drupal/aggregator/Routing/AggregatorController.php: patch does not apply
error: patch failed: core/modules/config/lib/Drupal/config/Controller/ConfigController.php:7
error: core/modules/config/lib/Drupal/config/Controller/ConfigController.php: patch does not apply
error: patch failed: core/modules/field_ui/lib/Drupal/field_ui/Form/FieldInstanceEditForm.php:8
error: core/modules/field_ui/lib/Drupal/field_ui/Form/FieldInstanceEditForm.php: patch does not apply
error: patch failed: core/modules/field_ui/lib/Drupal/field_ui/Form/FieldWidgetTypeForm.php:8
error: core/modules/field_ui/lib/Drupal/field_ui/Form/FieldWidgetTypeForm.php: patch does not apply
error: patch failed: core/modules/field_ui/lib/Drupal/field_ui/OverviewBase.php:9
error: core/modules/field_ui/lib/Drupal/field_ui/OverviewBase.php: patch does not apply
ParisLiakos’s picture

Status: Needs work » Needs review
StatusFileSize
new28.53 KB

reroll

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

No instances of this class found anymore.

Status: Reviewed & tested by the community » Needs work
Issue tags: -WSCCI, -Avoid commit conflicts, -Needs reroll

The last submitted patch, controller-1998140-25.patch, failed testing.

vijaycs85’s picture

Status: Needs work » Needs review
Issue tags: +WSCCI, +Avoid commit conflicts, +Needs reroll

#25: controller-1998140-25.patch queued for re-testing.

Crell’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Title: Remove backward compatible ControllerInterface » Change notice: Remove backward compatible ControllerInterface
Priority: Major » Critical
Status: Reviewed & tested by the community » Active
Issue tags: -Needs reroll +Needs change record

Committed 07bf168 and pushed to 8.x. Thanks!

Need to update at least one change record https://drupal.org/node/1800686

Crell’s picture

Title: Change notice: Remove backward compatible ControllerInterface » Remove backward compatible ControllerInterface
Priority: Critical » Major
Status: Active » Fixed
Issue tags: -Needs change record

Change notice updated.

effulgentsia’s picture

Issue tags: -Avoid commit conflicts

Removing no longer needed tag.

Automatically closed -- issue fixed for 2 weeks with no activity.