mirror of
https://github.com/danog/amp.git
synced 2025-01-22 05:11:42 +01:00
Change namespace to AsyncInterop\Loop
This commit is contained in:
parent
9a2d30c3c0
commit
b9b49b3eaf
@ -13,12 +13,12 @@
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Interop\\Async\\": "src"
|
||||
"AsyncInterop\\": "src"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Interop\\Async\\Loop\\Test\\": "test"
|
||||
"AsyncInterop\\Loop\\Test\\": "test"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
14
src/Loop.php
14
src/Loop.php
@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Interop\Async;
|
||||
namespace AsyncInterop;
|
||||
|
||||
use Interop\Async\Loop\Driver;
|
||||
use Interop\Async\Loop\DriverFactory;
|
||||
use Interop\Async\Loop\InvalidWatcherException;
|
||||
use Interop\Async\Loop\UnsupportedFeatureException;
|
||||
use AsyncInterop\Loop\Driver;
|
||||
use AsyncInterop\Loop\DriverFactory;
|
||||
use AsyncInterop\Loop\InvalidWatcherException;
|
||||
use AsyncInterop\Loop\UnsupportedFeatureException;
|
||||
|
||||
/**
|
||||
* Accessor to allow global access to the event loop.
|
||||
*
|
||||
* @see \Interop\Async\Loop\Driver
|
||||
* @see \AsyncInterop\Loop\Driver
|
||||
*/
|
||||
final class Loop
|
||||
{
|
||||
@ -64,7 +64,7 @@ final class Loop
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @see \Interop\Async\Loop::setFactory()
|
||||
* @see \AsyncInterop\Loop::setFactory()
|
||||
*/
|
||||
public static function execute(callable $callback, Driver $driver = null)
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Interop\Async\Loop;
|
||||
namespace AsyncInterop\Loop;
|
||||
|
||||
/**
|
||||
* Event loop driver which implements all basic operations to allow interoperability.
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Interop\Async\Loop;
|
||||
namespace AsyncInterop\Loop;
|
||||
|
||||
/**
|
||||
* Allows creating new driver instances.
|
||||
*
|
||||
* @see \Interop\Async\Loop::setFactory()
|
||||
* @see \AsyncInterop\Loop::setFactory()
|
||||
*/
|
||||
interface DriverFactory
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Interop\Async\Loop;
|
||||
namespace AsyncInterop\Loop;
|
||||
|
||||
/**
|
||||
* MUST be thrown if any operation (except disable() and cancel()) is attempted with an invalid watcher identifier.
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Interop\Async\Loop;
|
||||
namespace AsyncInterop\Loop;
|
||||
|
||||
/**
|
||||
* MUST be thrown if a feature is not supported by the system.
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Interop\Async\Loop\Test;
|
||||
namespace AsyncInterop\Loop\Test;
|
||||
|
||||
use Interop\Async\Loop\Driver;
|
||||
use AsyncInterop\Loop\Driver;
|
||||
|
||||
class DummyDriver extends Driver
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Interop\Async\Loop;
|
||||
namespace AsyncInterop\Loop;
|
||||
|
||||
class LoopStateTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Interop\Async\Loop\Test;
|
||||
namespace AsyncInterop\Loop\Test;
|
||||
|
||||
use Interop\Async\Loop;
|
||||
use AsyncInterop\Loop;
|
||||
|
||||
class LoopTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user