Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
routing system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Jul 2014 at 22:31 UTC
Updated:
15 Aug 2014 at 14:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
l0keAdded the constants for 'ANY'/'ALL' access modes, replaced entries.
Comment #3
l0keAdd missing
use Drupal\Core\Access\AccessManager;to Drupal\Tests\Core\Access\CsrfAccessCheckTest.Comment #4
l0keComment #5
dawehnerNice work so far! Let's expand the documentation a bit to have something more helpful.
Let's describe that all access checkers have to return AccessInterface::ALLOW
Let's describe that at least one access checker has to return AccessInterface::ALLOW and none should return AccessInterface::KILL
Comment #6
l0ke@dawehner, thank you for quick response. Changing the documentation considering your notes.
Comment #7
dawehnerNice!
Comment #8
tim.plunkettDarn, it'd be nice if we had AccessManagerInterface before making this change everywhere :\
Comment #9
dawehnerI disagree with that comment. A constant on a class is not worse than on an interface
Comment #10
alexpottI agree with Tim - let's introduce the interface and just put the constants on it. Since AccessManager is a service it can be swapped out - it is great if the constants are enforced by the interface and not the class.
Comment #11
tim.plunkettSorry, for causing it to be unRTBC i'll do fix it
Comment #12
dawehnerThere was an intention when I created the issue: #2302093: add an access manager interface
Comment #13
alexpottYeah but this could introduce a bare bones Interface to have the constants and that issue could flesh it out. Otherwise we just going to change all the same lines again.
Comment #14
tim.plunkettSorry @dawehner.
UGH double crosspost. Sorry for the confusion and mess.
Comment #16
tim.plunkettAmusingly enough, doctrine also has 17 usages of "Inteface".
Comment #17
dawehnerSome small details.
Comment #18
tim.plunkettLooks good to me.
Comment #19
alexpottCommitted 4a45c16 and pushed to 8.x. Thanks!
Comment #22
m1r1k commented