Skip to content

Commit

Permalink
Merge 340e437 into d200388
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Dec 8, 2018
2 parents d200388 + 340e437 commit 875f68d
Show file tree
Hide file tree
Showing 89 changed files with 673 additions and 2,612 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
new EndPoint('localhost', 2133),
]);

$connection = EventStoreAsyncConnectionFactory::createFromSettings(
$connection = EventStoreConnectionFactory::createFromSettings(
$builder->build(),
'cluster-connection'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
->setClusterGossipPort(2113)
->build();

$connection = EventStoreAsyncConnectionFactory::createFromSettings(
$connection = EventStoreConnectionFactory::createFromSettings(
$settings,
'dns-cluster-connection'
);
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-persistent-subscription-with-dns-cluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/

Loop::run(function () {
$connection = EventStoreAsyncConnectionFactory::createFromConnectionString(
$connection = EventStoreConnectionFactory::createFromConnectionString(
'Connect To=discover://127.0.0.1:2113',
null,
'dns-cluster-connection'
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-persistent-subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
require __DIR__ . '/../vendor/autoload.php';

Loop::run(function () {
$connection = EventStoreAsyncConnectionFactory::createFromEndPoint(
$connection = EventStoreConnectionFactory::createFromEndPoint(
new EndPoint('eventstore', 1113)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$builder->enableVerboseLogging();
$builder->useConsoleLogger();

$connection = EventStoreAsyncConnectionFactory::createFromEndPoint(
$connection = EventStoreConnectionFactory::createFromEndPoint(
new EndPoint('eventstore', 1113),
$builder->build()
);
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-async.php → examples/demo-read.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
require __DIR__ . '/../vendor/autoload.php';

Loop::run(function () {
$connection = EventStoreAsyncConnectionFactory::createFromEndPoint(
$connection = EventStoreConnectionFactory::createFromEndPoint(
new EndPoint('eventstore', 1113)
);

Expand Down
2 changes: 1 addition & 1 deletion examples/demo-subscribe-to-all-from.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require __DIR__ . '/../vendor/autoload.php';

Loop::run(function () {
$connection = EventStoreAsyncConnectionFactory::createFromEndPoint(
$connection = EventStoreConnectionFactory::createFromEndPoint(
new EndPoint('eventstore', 1113)
);

Expand Down
2 changes: 1 addition & 1 deletion examples/demo-subscribe-to-all.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require __DIR__ . '/../vendor/autoload.php';

Loop::run(function () {
$connection = EventStoreAsyncConnectionFactory::createFromEndPoint(
$connection = EventStoreConnectionFactory::createFromEndPoint(
new EndPoint('eventstore', 1113)
);

Expand Down
2 changes: 1 addition & 1 deletion examples/demo-subscribe-to-stream-from-with-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$builder->enableVerboseLogging();
$builder->useConsoleLogger();

$connection = EventStoreAsyncConnectionFactory::createFromEndPoint(
$connection = EventStoreConnectionFactory::createFromEndPoint(
new EndPoint('eventstore', 1113),
$builder->build()
);
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-subscribe-to-stream-from.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require __DIR__ . '/../vendor/autoload.php';

Loop::run(function () {
$connection = EventStoreAsyncConnectionFactory::createFromEndPoint(
$connection = EventStoreConnectionFactory::createFromEndPoint(
new EndPoint('eventstore', 1113)
);

Expand Down
2 changes: 1 addition & 1 deletion examples/demo-subscribe-to-stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require __DIR__ . '/../vendor/autoload.php';

Loop::run(function () {
$connection = EventStoreAsyncConnectionFactory::createFromEndPoint(
$connection = EventStoreConnectionFactory::createFromEndPoint(
new EndPoint('eventstore', 1113)
);

Expand Down
65 changes: 0 additions & 65 deletions examples/demo-sync.php

This file was deleted.

6 changes: 3 additions & 3 deletions src/ClientAuthenticationFailedEventArgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@

class ClientAuthenticationFailedEventArgs implements EventArgs
{
/** @var EventStoreAsyncConnection */
/** @var EventStoreConnection */
private $connection;
/** @var string */
private $reason;

public function __construct(EventStoreAsyncConnection $connection, string $reason)
public function __construct(EventStoreConnection $connection, string $reason)
{
$this->connection = $connection;
$this->reason = $reason;
}

public function connection(): EventStoreAsyncConnection
public function connection(): EventStoreConnection
{
return $this->connection;
}
Expand Down
6 changes: 3 additions & 3 deletions src/ClientClosedEventArgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@

class ClientClosedEventArgs implements EventArgs
{
/** @var EventStoreAsyncConnection */
/** @var EventStoreConnection */
private $connection;
/** @var string */
private $reason;

public function __construct(EventStoreAsyncConnection $connection, string $reason)
public function __construct(EventStoreConnection $connection, string $reason)
{
$this->connection = $connection;
$this->reason = $reason;
}

public function connection(): EventStoreAsyncConnection
public function connection(): EventStoreConnection
{
return $this->connection;
}
Expand Down
6 changes: 3 additions & 3 deletions src/ClientConnectionEventArgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@

class ClientConnectionEventArgs implements EventArgs
{
/** @var EventStoreAsyncConnection */
/** @var EventStoreConnection */
private $connection;
/** @var EndPoint */
private $remoteEndPoint;

public function __construct(EventStoreAsyncConnection $connection, EndPoint $remoteEndPoint)
public function __construct(EventStoreConnection $connection, EndPoint $remoteEndPoint)
{
$this->connection = $connection;
$this->remoteEndPoint = $remoteEndPoint;
}

public function connection(): EventStoreAsyncConnection
public function connection(): EventStoreConnection
{
return $this->connection;
}
Expand Down
6 changes: 3 additions & 3 deletions src/ClientErrorEventArgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@

class ClientErrorEventArgs implements EventArgs
{
/** @var EventStoreAsyncConnection */
/** @var EventStoreConnection */
private $connection;
/** @var Throwable */
private $exception;

public function __construct(EventStoreAsyncConnection $connection, Throwable $exception)
public function __construct(EventStoreConnection $connection, Throwable $exception)
{
$this->connection = $connection;
$this->exception = $exception;
}

public function connection(): EventStoreAsyncConnection
public function connection(): EventStoreConnection
{
return $this->connection;
}
Expand Down
146 changes: 0 additions & 146 deletions src/ClientOperations/StartAsyncTransactionOperation.php

This file was deleted.

0 comments on commit 875f68d

Please sign in to comment.