Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
aggregator.module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
17 Apr 2013 at 00:02 UTC
Updated:
29 Jul 2014 at 22:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ParisLiakos commentedoops
Comment #2
ParisLiakos commentedlets postpone it on #1972262: Convert aggregator_feed_add to a new style controller to get AggregatorController in
Comment #3
ParisLiakos commentedalso #1972246: Allow a queue worker callback to be a class method would be nice to have
Comment #4
ParisLiakos commentedup for grabs:)
Comment #5
marcingy commentedComment #6
marcingy commentedThis is going to fail, the main issue is that auto loading of aggregator_feed is not being triggered. Help welcome
Comment #8
ParisLiakos commentedLooks good:)
it is not loaded cause you named it $feed here. you should name the variable the way you registered it in route..here $aggregator_feed should work
as a bonus you could try to convert it to RedirectResponse().not sure if it is supposed to work though
Comment #9
marcingy commentedOk think I have got to bottom of the issues. Parameters passed into a controller need to match those defined in the route.
Comment #10
marcingy commentedYes I just worked out the parameter stuff :)
This is being covered in another issue and yes it might work but lets not scope creep. #1668866: Replace drupal_goto() with RedirectResponse
Comment #11
ParisLiakos commentedSure
We are supposed now to typehint with the Interface, so it should be FeedInterface now, not Feed. Make sure you pulled before trying it:)
#1391694: Use type-hinting for entity-parameters
Otherwise i cant see what else can be done here
Comment #12
marcingy commentedUpdated to use interface type hinting
Comment #13
dawehnerYeah more wscci conversions!
It would be cool to have them ordered properly.
I thought we store the Request :)
Please let's also use the interface in the documentation of the method.
Comment #14
marcingy commentedRe-ordered Use statements and updated docs :)
Comment #15
dawehnerGreat!
Comment #16
ParisLiakos commentedi think this is no longer needed since we are using the Interface, right?
Comment #17
dawehnerGood catch!
Comment #18
ParisLiakos commentedsomething new i learned:
should be _content
if we keep it to _controller then drupal_goto should be RedirectResponse
Comment #19
ParisLiakos commentedComment #21
ParisLiakos commentedah we need absolute url
Comment #22
dawehnerGreat stuff!
Comment #23
ParisLiakos commentedrerolled for the admin overview conversion
Comment #24
dawehnerActually I realized that we don't need to store the request on the object. Controllers have the magic to pass in the request object, if specified in the controller method. Just try that out, it works. Fancy right?
Comment #25
ParisLiakos commentedyou mean setRequest method? i dont understand what you tried
Comment #26
ParisLiakos commentedah i got it eventually...controller resolver does some nice tricks:) so if you add $request argument to your method it just works
Comment #27
ParisLiakos commentedhrmpff forgot the docblock
Comment #28
marcingy commentedLooks good
Comment #29
alexpottCommitted 0a7825c and pushed to 8.x. Thanks!