Example #1
0
 /**
  * Service constructor.
  */
 public function __construct()
 {
     $streams = self::convertArgs(func_get_args());
     foreach ($streams as $stream) {
         if ($stream instanceof Service) {
             $this->streams = $stream->get();
         } elseif (is_array($streams)) {
             $this->streams = StreamDriver::getStreams($streams, static::$service);
         }
     }
 }