protected static function findControllerForStream($path) { foreach (static::$streams as $stream) { if ($stream->getPath() === $path) { return $stream; } } return null; }