From 2f26416f16bb20819b599f7028e39d65cc177cb2 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Mon, 18 Dec 2017 22:00:33 +0100 Subject: [PATCH] Move TimerInterface one level up --- examples/95-benchmark-memory.php | 2 +- src/ExtEventLoop.php | 2 +- src/ExtLibevLoop.php | 2 +- src/ExtLibeventLoop.php | 2 +- src/LoopInterface.php | 2 -- src/SignalsHandler.php | 2 +- src/StreamSelectLoop.php | 2 +- src/Timer/Timer.php | 2 ++ src/Timer/Timers.php | 1 + src/{Timer => }/TimerInterface.php | 2 +- 10 files changed, 10 insertions(+), 9 deletions(-) rename src/{Timer => }/TimerInterface.php (93%) diff --git a/examples/95-benchmark-memory.php b/examples/95-benchmark-memory.php index 7720aca1..4eb2df46 100644 --- a/examples/95-benchmark-memory.php +++ b/examples/95-benchmark-memory.php @@ -9,7 +9,7 @@ use React\EventLoop\Factory; use React\EventLoop\LoopInterface; -use React\EventLoop\Timer\TimerInterface; +use React\EventLoop\TimerInterface; require __DIR__ . '/../vendor/autoload.php'; diff --git a/src/ExtEventLoop.php b/src/ExtEventLoop.php index b1215de8..f64aa88f 100644 --- a/src/ExtEventLoop.php +++ b/src/ExtEventLoop.php @@ -7,7 +7,7 @@ use EventConfig as EventBaseConfig; use React\EventLoop\Tick\FutureTickQueue; use React\EventLoop\Timer\Timer; -use React\EventLoop\Timer\TimerInterface; +use React\EventLoop\TimerInterface; use SplObjectStorage; /** diff --git a/src/ExtLibevLoop.php b/src/ExtLibevLoop.php index 0d5a4f09..05c025a4 100644 --- a/src/ExtLibevLoop.php +++ b/src/ExtLibevLoop.php @@ -8,7 +8,7 @@ use libev\TimerEvent; use React\EventLoop\Tick\FutureTickQueue; use React\EventLoop\Timer\Timer; -use React\EventLoop\Timer\TimerInterface; +use React\EventLoop\TimerInterface; use SplObjectStorage; /** diff --git a/src/ExtLibeventLoop.php b/src/ExtLibeventLoop.php index 30750afb..c626ab67 100644 --- a/src/ExtLibeventLoop.php +++ b/src/ExtLibeventLoop.php @@ -6,7 +6,7 @@ use EventBase; use React\EventLoop\Tick\FutureTickQueue; use React\EventLoop\Timer\Timer; -use React\EventLoop\Timer\TimerInterface; +use React\EventLoop\TimerInterface; use SplObjectStorage; /** diff --git a/src/LoopInterface.php b/src/LoopInterface.php index 5467fb61..f3070405 100644 --- a/src/LoopInterface.php +++ b/src/LoopInterface.php @@ -2,8 +2,6 @@ namespace React\EventLoop; -use React\EventLoop\Timer\TimerInterface; - interface LoopInterface { /** diff --git a/src/SignalsHandler.php b/src/SignalsHandler.php index c91bf1e2..b7c779a9 100644 --- a/src/SignalsHandler.php +++ b/src/SignalsHandler.php @@ -2,7 +2,7 @@ namespace React\EventLoop; -use React\EventLoop\Timer\TimerInterface; +use React\EventLoop\TimerInterface; /** * @internal diff --git a/src/StreamSelectLoop.php b/src/StreamSelectLoop.php index f8d11529..99f82241 100644 --- a/src/StreamSelectLoop.php +++ b/src/StreamSelectLoop.php @@ -5,7 +5,7 @@ use React\EventLoop\Signal\Pcntl; use React\EventLoop\Tick\FutureTickQueue; use React\EventLoop\Timer\Timer; -use React\EventLoop\Timer\TimerInterface; +use React\EventLoop\TimerInterface; use React\EventLoop\Timer\Timers; /** diff --git a/src/Timer/Timer.php b/src/Timer/Timer.php index 8a8926c6..53424980 100644 --- a/src/Timer/Timer.php +++ b/src/Timer/Timer.php @@ -2,6 +2,8 @@ namespace React\EventLoop\Timer; +use React\EventLoop\TimerInterface; + /** * The actual connection implementation for TimerInterface * diff --git a/src/Timer/Timers.php b/src/Timer/Timers.php index 81a21735..17bbdac8 100644 --- a/src/Timer/Timers.php +++ b/src/Timer/Timers.php @@ -2,6 +2,7 @@ namespace React\EventLoop\Timer; +use React\EventLoop\TimerInterface; use SplObjectStorage; use SplPriorityQueue; diff --git a/src/Timer/TimerInterface.php b/src/TimerInterface.php similarity index 93% rename from src/Timer/TimerInterface.php rename to src/TimerInterface.php index cf9028f9..cdcf7732 100644 --- a/src/Timer/TimerInterface.php +++ b/src/TimerInterface.php @@ -1,6 +1,6 @@ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy