Skip to content
New issue

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

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

Already on GitHub? # to your account

The "minishlink_web_push" service or alias has been removed or inlined when the container was compiled. #18

Open
galphanet opened this issue Apr 8, 2020 · 1 comment

Comments

@galphanet
Copy link

When using Symfony 4, this bundle cannot be called with $this->getContainer()->get('minishlink_web_push');

The fix is to declare the minishlink_web_push service as public.

Thanks !

@veldenb
Copy link

veldenb commented Oct 23, 2020

When using dependency injection no public service is required, but it would be nice if the readme reflects this :)

namespace App\Service;

use Minishlink\WebPush\WebPush;

class SomeService
{

    private WebPush $webPush;

    public function __construct(WebPush $webpush)
    {
        $this->webPush = $webpush;
    }
}

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

No branches or pull requests

2 participants