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

A final class can't be proxied #6443

Closed
videni opened this issue Oct 18, 2016 · 0 comments
Closed

A final class can't be proxied #6443

videni opened this issue Oct 18, 2016 · 0 comments
Labels
Potential Bug Potential bugs or bugfixes, that needs to be reproduced.

Comments

@videni
Copy link
Contributor

videni commented Oct 18, 2016

[ProxyManager\Exception\InvalidProxiedClassException] Provided class "Sylius\Bundle\CoreBundle\OAuth\UserProvider" is final and cannot be proxied

 <service id="sylius.oauth.user_provider" class="Sylius\Bundle\CoreBundle\OAuth\UserProvider" lazy="true">
            <argument type="string" id="%sylius.model.admin_user.class%" />
            <argument type="service" id="sylius.factory.customer" />
            <argument type="service" id="sylius.factory.admin_user" />
            <argument type="service" id="sylius.repository.admin_user" />
            <argument type="service" id="sylius.factory.admin_oauth_user" />
            <argument type="service" id="sylius.repository.admin_oauth_user" />
            <argument type="service" id="sylius.manager.admin_user" />
            <argument type="service" id="sylius.canonicalizer" />
        </service>

Interesting , this exception doesn't happen in Sylius full installation , but it happens in my customization, I found that lots of class are defined as final, after I update to the latest commit, as the exception shows a final class can't be proxied , how does Sylius bypass this trouble?

@michalmarcinkowski michalmarcinkowski added the Potential Bug Potential bugs or bugfixes, that needs to be reproduced. label Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Potential bugs or bugfixes, that needs to be reproduced.
Projects
None yet
Development

No branches or pull requests

2 participants