# fluentform/4.3.13/app/Services/fluentvalidator/autoload.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 4.3.13. 25 lines.

- Page: https://pluginprobe.com/plugins/fluentform/4.3.13/code/app/Services/fluentvalidator/autoload.php
- Raw: https://pluginprobe.com/plugins/fluentform/4.3.13/raw/app/Services/fluentvalidator/autoload.php
- Modified: 2022-10-07T15:25:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/4.3.13/code/app/Services/fluentvalidator/autoload.php#L10-L20`.

```php
<?php

spl_autoload_register(function ($class) {

    $namespace = 'FluentValidator';

    if (substr($class, 0, strlen($namespace)) !== $namespace) {
        return;
    }

    $className = str_replace(
        array('\\', $namespace, strtolower($namespace)),
        array('/', 'src', ''),
        $class
    );

    $basePath = plugin_dir_path(__FILE__);

    $file = $basePath.trim($className, '/').'.php';

    if (is_readable($file)) {
        include $file;
    }
});

```
