Skip to content

Commit

Permalink
fix references to the deprecated factory
Browse files Browse the repository at this point in the history
the readme should not recommend to use the factory anymore but Loop::create

Co-authored-by: Simon Frings <simon.frings1@web.de>
  • Loading branch information
dbu and SimonFrings committed Oct 20, 2021
1 parent be6dee4 commit c929ba9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ All of the event loops support these features:

For most consumers of this package, the underlying event loop implementation is
an implementation detail.
You should use the [`Factory`](#factory) to automatically create a new instance.
You should use the [`Loop` class](#loop) to automatically create a new instance.

Advanced! If you explicitly need a certain event loop implementation, you can
manually instantiate one of the following classes.
Expand All @@ -356,7 +356,7 @@ function and is the only implementation which works out of the box with PHP.
This event loop works out of the box on PHP 5.3 through PHP 7+ and HHVM.
This means that no installation is required and this library works on all
platforms and supported PHP versions.
Accordingly, the [`Factory`](#factory) will use this event loop by default if
Accordingly, the [`Loop` class](#loop) and the deprecated [`Factory`](#factory) will use this event loop by default if
you do not install any of the event loop extensions listed below.

Under the hood, it does a simple `select` system call.
Expand Down Expand Up @@ -433,7 +433,7 @@ This event loop does only work with PHP 5.
An [unofficial update](https://github.com/php/pecl-event-libevent/pull/2) for
PHP 7 does exist, but it is known to cause regular crashes due to `SEGFAULT`s.
To reiterate: Using this event loop on PHP 7 is not recommended.
Accordingly, the [`Factory`](#factory) will not try to use this event loop on
Accordingly, neither the [`Loop` object](#loop) nor the deprecated [`Factory`](#factory) will try to use this event loop on
PHP 7.

This event loop is known to trigger a readable listener only if
Expand Down

0 comments on commit c929ba9

Please sign in to comment.