示例#1
0
 /**
  * Handle the command.
  *
  * @param  StreamRepositoryInterface                                      $streams
  * @return \Anomaly\Streams\Platform\Stream\Contract\StreamInterface|null
  */
 public function handle(StreamRepositoryInterface $streams)
 {
     return $streams->findAllByNamespace($this->namespace);
 }
 /**
  * Create a new VariableRepository instance.
  *
  * @param VariableCollection        $variables
  * @param StreamRepositoryInterface $streams
  */
 public function __construct(VariableCollection $variables, StreamRepositoryInterface $streams)
 {
     $this->variables = $variables->make($streams->findAllByNamespace('variables')->all());
 }