/**
  * AbstractTransactionEvent constructor.
  *
  * @param string $managerName
  * @param string $actionName
  */
 public function __construct($managerName, $actionName)
 {
     $this->managerName = $managerName;
     $this->actionName = $actionName;
     $this->commandUuid = Uuid::uuid4()->toString();
     parent::__construct();
 }
예제 #2
0
 /**
  * 
  * @param object $target
  * @param string $message
  * @param int $priority
  * @param array $extras
  */
 public function __construct($target, $message, $priority, array $extras = [])
 {
     $this->message = $message;
     $this->priority = $priority;
     $this->extras = $extras;
     parent::__construct(__CLASS__, $target);
 }
예제 #3
0
 /**
  * @param null|string|object $subject
  * @param array $data
  * @param SerializerInterface $serializer
  */
 public function __construct($subject, &$data, SerializerInterface $serializer)
 {
     $this->subject = $subject;
     $this->data =& $data;
     $this->serializer = $serializer;
     parent::__construct();
 }
예제 #4
0
 /**
  * Конструктор
  *
  * @param object $object
  * @param string $previous
  * @param string $next
  * @param string $event
  * @param string $machine
  * @param string $signal
  * @param array  $parameters
  */
 public function __construct(object $object, string $previous, string $next, string $event, string $machine, string $signal, array $parameters)
 {
     parent::__construct($event, $machine, $parameters);
     $this->object = $object;
     $this->previous = $previous;
     $this->next = $next;
     $this->signal = $signal;
 }
예제 #5
0
 public function __construct(array $params)
 {
     parent::__construct('rest-error-event', null, []);
     // Set params manually, so we can validate and stuff.
     $setParamUsing = function ($methodName, $value) use($params) {
         if (isset($params[$value])) {
             call_user_func([$this, $methodName], $params[$value]);
         }
     };
     $setParamUsing('setError', 'error');
     $setParamUsing('setErrorConfig', 'errorConfig');
     $setParamUsing('setViewModel', 'viewModel');
 }
예제 #6
0
파일: Event.php 프로젝트: Baft/Zend-Form
 /**
  * Constructor
  *
  * Accept a storage adapter and its parameters.
  *
  * @param  string           $name Event name
  * @param  StorageInterface $storage
  * @param  ArrayObject      $params
  */
 public function __construct($name, StorageInterface $storage, ArrayObject $params)
 {
     parent::__construct($name, $storage, $params);
 }
예제 #7
0
 /**
  * Constructor
  *
  * Accept a target and its parameters.
  *
  * @param  string $name Event name
  * @param  string|object $target
  * @param  array|\ArrayAccess $params
  */
 public function __construct($name = null, $target = null, $params = null)
 {
     parent::__construct(self::EVENT_JOB_ENDED, $target, $params);
 }
 /**
  * OAuthConnectEvent constructor.
  *
  * @param \Sta\OAuthConnect\OAuthService\AuthorizationResult $authorizationResult
  * @param \Sta\OAuthConnect\OAuthService\OAuthServiceInterface $oAuthService
  */
 public function __construct(\Sta\OAuthConnect\OAuthService\AuthorizationResult $authorizationResult, \Sta\OAuthConnect\OAuthService\OAuthServiceInterface $oAuthService)
 {
     $this->authorizationResult = $authorizationResult;
     $this->oAuthService = $oAuthService;
     parent::__construct();
 }
예제 #9
0
파일: Event.php 프로젝트: nevvermind/zf2
 /**
  * Constructor
  *
  * Accept a storage adapter and its parameters.
  *
  * @param  string $name Event name
  * @param  Adapter $storage
  * @param  ArrayObject $params
  * @return void
  */
 public function __construct($name, Adapter $storage, ArrayObject $params)
 {
     parent::__construct($name, $storage, $params);
 }
예제 #10
0
 /**
  * Creates an instance.
  *
  * Instantiates a new PriorityList for the view models.
  *
  * @param string|null $name
  * @param string|null $target
  * @param array|null $params
  */
 public function __construct($name = null, $target = null, $params = null)
 {
     parent::__construct($name, $target, $params);
     $this->models = new PriorityList();
 }
예제 #11
0
 /**
  * @param string                  $eventName
  * @param ServiceLocatorInterface $serviceLocator
  * @param mixed                   $instance
  * @param string                  $requestedName
  * @param                         $canonicalName
  */
 public function __construct($eventName, ServiceLocatorInterface $serviceLocator, $instance, $requestedName, $canonicalName)
 {
     parent::__construct($eventName, $this->serviceLocator = $serviceLocator, array('instance' => $this->instance = $instance, 'requested_name' => $this->requestedName = $requestedName, 'canonical_name' => $this->canonicalName = $canonicalName, 'trace' => $this->trace = debug_backtrace(true)));
 }
예제 #12
0
 public function __construct(MailServiceInterface $mailService, $name = self::EVENT_MAIL_PRE_SEND)
 {
     parent::__construct($name);
     $this->mailService = $mailService;
 }