PHP code example of tourze / symfony-scan-detect-bundle
1. Go to this page and download the library: Download tourze/symfony-scan-detect-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/ */
tourze / symfony-scan-detect-bundle example snippets
return [
// ...
Tourze\ScanDetectBundle\ScanDetectBundle::class => ['all' => true],
];
// The bundle works automatically once installed
// No manual configuration e Tourze\ScanDetectBundle\EventSubscriber\ScanDetect404Subscriber;
// The subscriber is automatically registered via services.yaml
$cache = $container->get(CacheInterface::class);
$subscriber = new ScanDetect404Subscriber($cache);