Пример #1
0
 /**
  * Enforces types...
  *
  * @param ConsumerLike $source
  * @param RequestLike  $request
  */
 public function __construct(ConsumerLike $source, RequestLike $request = null)
 {
     parent::__construct($source, $request);
 }
Пример #2
0
 /**
  * @param \Kisma\Core\Events\SeedEvent $event
  *
  * @return string
  */
 public static function generateEventId($event)
 {
     return hash('sha256', $event->getSource()->getId() . getmypid() . microtime(true)) . '.' . self::$_lastEventId++;
 }