AliasManager needs AliasWhitelist to do it's job. It currently accepts class as it is. We prefer to use interfaces in such cases, as it allows us to swap/alter selected dependencies.
Let's introduce AliasWhitelistInterface and make AliasManager accept it instead of a class.
Patch follows.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 2176963_1.patch | 2.57 KB | slashrsm |
Comments
Comment #1
slashrsm commentedPatch attached.
Comment #2
tim.plunkettI think this is better than changing AliasManager::__construct() to take CacheCollectorInterface explicitly.
Comment #3
catchCommitted/pushed to 8.x, thanks!