# fluentform/3.6.51/app/Services/wpfluent/libs/viocon/autoload.php

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

- Page: https://pluginprobe.com/plugins/fluentform/3.6.51/code/app/Services/wpfluent/libs/viocon/autoload.php
- Raw: https://pluginprobe.com/plugins/fluentform/3.6.51/raw/app/Services/wpfluent/libs/viocon/autoload.php
- Modified: 2017-12-29T16:40:50+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/3.6.51/code/app/Services/wpfluent/libs/viocon/autoload.php#L10-L20`.

```php
<?php

spl_autoload_register(function ($class) {

    $namespace = 'Viocon';

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

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

    $basePath = plugin_dir_path(__FILE__);

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

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