You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 !
The text was updated successfully, but these errors were encountered: