Sindbad~EG File Manager

Current Path : /proc/2302468/cwd/plugins/fluentform/app/Services/fluentvalidator/
Upload File :
Current File : //proc/2302468/cwd/plugins/fluentform/app/Services/fluentvalidator/autoload.php

<?php

spl_autoload_register(function ($class) {
    $namespace = 'FluentValidator';

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

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

    $basePath = plugin_dir_path(__FILE__);

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

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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists