Overview

Namespaces

  • Evenement
  • None
  • PHP
  • Psr
    • Http
      • Message
  • Ratchet
    • Http
    • RFC6455
      • Handshake
      • Messaging
    • Server
    • Session
      • Serialize
      • Storage
        • Proxy
    • Wamp
    • WebSocket
  • React
    • EventLoop
      • Tick
      • Timer
    • Socket
    • Stream
  • Symfony
    • Component
      • HttpFoundation
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
      • Routing
        • Annotation
        • Exception
        • Generator
          • Dumper
        • Loader
          • DependencyInjection
        • Matcher
          • Dumper
        • Tests
          • Annotation
          • Fixtures
            • AnnotatedClasses
            • OtherAnnotatedClasses
          • Generator
            • Dumper
          • Loader
          • Matcher
            • Dumper

Classes

  • ExtEventLoop
  • Factory
  • LibEventLoop
  • LibEvLoop
  • StreamSelectLoop

Interfaces

  • LoopInterface
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace React\EventLoop;
 4: 
 5: class Factory
 6: {
 7:     public static function create()
 8:     {
 9:         // @codeCoverageIgnoreStart
10:         if (function_exists('event_base_new')) {
11:             return new LibEventLoop();
12:         } elseif (class_exists('libev\EventLoop', false)) {
13:             return new LibEvLoop;
14:         } elseif (class_exists('EventBase', false)) {
15:             return new ExtEventLoop;
16:         }
17: 
18:         return new StreamSelectLoop();
19:         // @codeCoverageIgnoreEnd
20:     }
21: }
22: 
Ratchet API documentation generated by ApiGen 2.8.0