Mark Story
Mark Story
I don't entirely understand what commands you're running and what you're expecting the results to be. Could you provide the commands you were running?
Would getting the resolvers from the DIC allow you to inject the required dependencies/container into the resolver as needed? Or are you trying to solve for built-in resolvers needing to...
Ok. Then a factory makes sense.
Doing the change for 2.x and backporting is probably easier as we won't miss typehints.
I think additional methods are preferable. Options arrays are hard to typehint/check, and the can() method already has optional parameters making adding more slightly more clunky than a separate method.
If you have no resource how would the policy resolvers know which resource you want to check the add permission of?
You could pass an new entity into 'create' permission checks. Or make the create permission use the Table object as a resource.
> ... is there a reason why mapping/resolving class names isn't supported? ie so that one could do something like `$user->can('create', Article::class)`? The only limitation thus far has been a...
Could we skip `_hidden` fields? Or is this different than that. Having two lists of hidden/skipped fields on 2 different classes is a bit confusing to me.
Its not that I'm not interested. I'm just trying to make it consistent with other features we have. Is the reason you don't want to use CLI flags that these...