Predis\Autoloader::register PHP Метод

register() публичный статический Метод

Registers the autoloader class with the PHP SPL autoloader.
public static register ( boolean $prepend = false )
$prepend boolean Prepend the autoloader on the stack instead of appending it.
    public static function register($prepend = false)
    {
        spl_autoload_register(array(new self(), 'autoload'), true, $prepend);
    }

Usage Example

Пример #1
0
 static function init()
 {
     Autoloader::register();
     $serversObj = config("rediscluster");
     $servers = $serversObj->all();
     $options = ['cluster' => 'redis'];
     return new Client($servers, $options);
 }
All Usage Examples Of Predis\Autoloader::register