mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 03:49:56 +02:00
Move from React 0.4.0 to 0.3.4 for PHP 5.3 compatibility reasons
This commit is contained in:
parent
d3f01a3bc7
commit
7f82bea13e
50 changed files with 608 additions and 1937 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
namespace React\EventLoop;
|
||||
|
||||
use React\EventLoop\StreamSelectLoop;
|
||||
use React\EventLoop\LibEventLoop;
|
||||
|
||||
class Factory
|
||||
{
|
||||
public static function create()
|
||||
|
@ -9,10 +12,6 @@ class Factory
|
|||
// @codeCoverageIgnoreStart
|
||||
if (function_exists('event_base_new')) {
|
||||
return new LibEventLoop();
|
||||
} else if (class_exists('libev\EventLoop')) {
|
||||
return new LibEvLoop;
|
||||
} else if (class_exists('EventBase')) {
|
||||
return new ExtEventLoop;
|
||||
}
|
||||
|
||||
return new StreamSelectLoop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue