1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00
ampache/modules/React/EventLoop/Factory.php

20 lines
382 B
PHP

<?php
namespace React\EventLoop;
use React\EventLoop\StreamSelectLoop;
use React\EventLoop\LibEventLoop;
class Factory
{
public static function create()
{
// @codeCoverageIgnoreStart
if (function_exists('event_base_new')) {
return new LibEventLoop();
}
return new StreamSelectLoop();
// @codeCoverageIgnoreEnd
}
}