Updated: Comment #N

Problem/Motivation

Proposed resolution

Instead of injecting request service, rather use the Symfony 2.4 request_stack in LocalActionManager and LocalTaskManager.

Remaining tasks

User interface changes

API changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

znerol’s picture

Status: Active » Needs review
FileSize
14.16 KB

Status: Needs review » Needs work

The last submitted patch, 1: 2223615-use-request-stack-in-local-task-action.diff, failed testing.

znerol’s picture

Status: Needs work » Needs review
FileSize
15.47 KB
1.31 KB

Also fix LocalTaskIntegrationTest.

znerol’s picture

Reroll, no changes.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Perfect!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 4: 2223615-use-request-stack-in-local-task-action-4.diff, failed testing.

znerol’s picture

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

re-rtbc

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 7: 2223615-use-request-stack-in-local-task-action-7.diff, failed testing.

znerol’s picture

Status: Needs work » Needs review
dawehner’s picture

Status: Needs review » Reviewed & tested by the community

re-rtbc

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 7: 2223615-use-request-stack-in-local-task-action-7.diff, failed testing.

znerol’s picture

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Still fine.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed bd468f2 and pushed to 8.x. Thanks!

alexpott’s picture

Looks like the https://drupal.org/node/2026025 could do with an update

  • Commit bd468f2 on 8.x by alexpott:
    Issue #2223615 by znerol: Use request stack in local task/action manager...
znerol’s picture

Status: Fixed » Closed (fixed)

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

YesCT’s picture

this issue took out where $request was used, but didn't take out where it was set.
core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTest.php
$request = $this->getMock('Symfony\Component\HttpFoundation\Request');

I suppose taking out the now unused var in #2081153: Remove unused local variables from core/tests is fine.
adding that as a related issue to this.