Open galphanet opened 4 years ago
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;
}
}
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 aspublic
.Thanks !