Ejemplo n.º 1
0
 public function __construct(DatabaseStorageInterface $storage, $id = null, $eventDispatcher = null)
 {
     $this->reset()->setStorage($storage)->setId($id)->setEventDispatcher($eventDispatcher ?? EventDispatcher::getGlobal());
 }
Ejemplo n.º 2
0
 public function __construct(RouterInterface $router, EnvironmentInterface $environment, EventDispatcherInterface $eventDisptacher = null)
 {
     $this->setRouter($router)->setEnvironment($environment)->setEventDispatcher($eventDisptacher ?? EventDispatcher::getGlobal());
 }
Ejemplo n.º 3
0
 public function __construct(DatabaseStorageInterface $storage, array $models, $eventDispatcher = null)
 {
     $this->reset()->setStorage($storage)->setModels($models)->setEventDispatcher($eventDispatcher ?? EventDispatcher::getGlobal());
 }
Ejemplo n.º 4
0
 public function __construct(string $name, bool $canQueue = true, bool $canRevert = false, EventDispatcherInterface $eventDispatcher = null)
 {
     $this->setName($name)->setCanQueue($canQueue)->setCanRevert($canRevert)->setEventDispatcher($eventDispatcher ?? EventDispatcher::getGlobal());
 }