PHP code example of sofyco / facebook-security-voter-bundle
1. Go to this page and download the library: Download sofyco/facebook-security-voter-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sofyco / facebook-security-voter-bundle example snippets
use Sofyco\Bundle\FacebookSecurityVoterBundle\Security\Voter\FacebookWebhookVoter;
use Symfony\Component\Security\Http\Attribute\IsGranted;
#[IsGranted(FacebookWebhookVoter::SIGNATURE)]
public function __invoke(): Response
{
// ...
}