Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Gate to resolve interface? #11965

Closed
hiendv opened this issue Jan 20, 2016 · 3 comments
Closed

Allow Gate to resolve interface? #11965

hiendv opened this issue Jan 20, 2016 · 3 comments

Comments

@hiendv
Copy link
Contributor

hiendv commented Jan 20, 2016

In my case, I'm trying to resolve objects by using interfaces. E.g.

    protected $policies = [
        Acme\Contracts\ItemInterface::class => ItemPolicy::class,
    ];

I was expecting that Gate would resolve callbacks with something like instanceof, but it turns out to be get_class. So, my question is, should Gate implement a type checking resolver besides names?

@GrahamCampbell
Copy link
Member

Sorry, we don't process questions here. Please ask on the forums.

@hiendv
Copy link
Contributor Author

hiendv commented Jan 20, 2016

It's not a question, it's more like a proposal @GrahamCampbell

@ronlinet
Copy link

ronlinet commented Mar 24, 2021

@GrahamCampbell as mentioned by @hiendv this is not a question but a Legit Design Improvement proposal would you consider to reopen the issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants