spl_autoload_register

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Register given function as __autoload() implementation
<?php spl_autoload_register(?callable $callback = null, bool $throw = true, bool $prepend = false): bool
<?php     protected function prependToLoaderStack()

    {

        spl_autoload_register([$this, 'load'], true, true);

    }