Class DomainProxy
Proxy service to remote REST-like API for basic domain operations such as searching, counting and event sourcing. It is preferred to use domain patterns instead of this proxy service.
public
|
|
public static
|
|
public
array
|
|
public
array
|
|
public
array
|
#
searchWithSpecification( string $class,
Returns a list of domain objects satisfying |
public
type
|
#
searchGeneric( string|
Returns a list of domain objects satisfying conditions in |
public
type
|
#
countGeneric( type $class, array $filters = null )
Count total number of domain objects satisfying conditions in |
public
integer
|
|
public
integer
|
#
countWithSpecification(
Count number of domain objects satisfying |
public
string
|
#
submitEvent(
Send domain event to the server. Server will return identity under which it was stored. Events can't be modified once they are submitted. Only new events can be created. |
public
|
#
submitAggregateEvent(
Apply domain event to a single aggregate. Server will return modified aggregate root. Events can't be modified once they are submitted. Only new events can be created. |
string |
DOMAIN_URI
|
'Domain.svc' |
protected
|
$http |
|
#
Instance of RestHttp client |
protected static
|
$instance |
|
#
Singleton instance |