mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 02:39:47 +02:00
20 lines
382 B
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
|
|
}
|
|
}
|