PHP Classes

File: src/DependencyInjection/SpamBotExtension.php

Recommend this page to a friend!
  Classes of stefan   contao PHP Spambot Detection   src/DependencyInjection/SpamBotExtension.php   Download  
File: src/DependencyInjection/SpamBotExtension.php
Role: Class source
Content type: text/plain
Description: Class source
Class: contao PHP Spambot Detection
Detect and block spam bots from accessing sites
Author: By
Last change:
Date: 1 year ago
Size: 810 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);

/*
 * sync*gw SpamBot Bundle
 *
 * @copyright https://syncgw.com, 2013 - 2022
 * @author Florian Daeumling, https://syncgw.com
 * @license http://opensource.org/licenses/lgpl-3.0.html
 */

namespace syncgw\SpamBotBundle\DependencyInjection;

use
Symfony\Component\Config\FileLocator;
use
Symfony\Component\DependencyInjection\ContainerBuilder;
use
Symfony\Component\DependencyInjection\Extension\Extension;
use
Symfony\Component\DependencyInjection\Loader\YamlFileLoader;

class
SpamBotExtension extends Extension {

    public function
load(array $configs, ContainerBuilder $container): void {
       
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
       
$loader->load('services.yml');
    }
}

?>