AggregateRootController

Extends \Ascmvc\Mvc\Controller

Class AggregateRootController

The Controller class extends the AbstractController and implements the AscmvcEventManagerListenerInterface.

package

Ascmvc\EventSourcing

Methods

Initializes this class by assigning the objects and arrays contained in the referenced application object to the corresponding properties.

__construct(array $baseConfig, \Ascmvc\EventSourcing\EventDispatcher $eventDispatcher) 
inherited abstract

Arguments

$baseConfig

array

Method corresponding to the controller's default action.

indexAction(null $vars = null) : mixed|void
inherited abstract

Arguments

$vars

null

Response

mixed|void

OnBootstrap listener method.

onBootstrap(\Ascmvc\Mvc\AscmvcEvent $event) : mixed|void
inherited static

Arguments

Response

mixed|void

OnDispatch listener method.

onDispatch(\Ascmvc\Mvc\AscmvcEvent $event) : mixed|void
inherited

Arguments

Response

mixed|void

OnFinish listener method.

onFinish(\Ascmvc\Mvc\AscmvcEvent $event) : mixed|void
inherited

Arguments

Response

mixed|void

OnRender listener method.

onRender(\Ascmvc\Mvc\AscmvcEvent $event) : mixed|void
inherited

Arguments

Response

mixed|void

Runs before the controller's default action.

preIndexAction(null $vars = null) : mixed|void

Arguments

$vars

null

Response

mixed|void

Properties

Contains the name of the Aggregate Root.

aggregateRootName : string
var

Type(s)

string

Contains a list of listeners for this aggregate, where the key is the name of the event and the value is the FQCN of the class that is to become a listener of the specified event.

aggregateListenerNames : array
var

Type(s)

array

Contains a reference to the array containing some of the app's basic configurations useful to controllers.

baseConfig : array|null
inherited
var

Type(s)

array|null

Array contains all of the values that will be assigned to the View manager's template.

view : array|null
inherited
var

Type(s)

array|null

Contains an instance of the Ascmvc\EventSourcing\EventDispatcher class.

eventDispatcher : \Ascmvc\EventSourcing\EventDispatcher
inherited

Array contains the controller's helper objects.

helpers : array|null
inherited
var

Type(s)

array|null