PHP code example of netgen / siteaccess-routes-bundle
1. Go to this page and download the library: Download netgen/siteaccess-routes-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/ */
netgen / siteaccess-routes-bundle example snippets
// if using PHP attributes
#[Route(path: '/home', defaults: ['allowed_siteaccess' => 'cro'], methods: ['GET'])]
// if using PHP attributes
#[Route(path: '/home', defaults: ['allowed_siteaccess' => ['cro', '_default']], methods: ['GET'])]
Netgen\Bundle\SiteAccessRoutesBundle\NetgenSiteAccessRoutesBundle::class => ['all' => true],