public static function build($name, array $configs = array())
    {
        if (isset(self::$instantiated[$name])) {
            return self::$instantiated[$name];
        }

        self::instantiateDefaultBroadcasters();
        if (!isset(self::$broadcasters[$name])) {
            throw new InvalidArgumentException(sprintf('Undefined broadcaster with name "%s".', $name));
        }

        self::$instantiated[$name] = self::instantiate(self::$broadcasters[$name], $configs);

        return self::$instantiated[$name];
    }
public static function build($name, array $configs = array())
    {
        if (isset(self::$instantiated[$name])) {
            return self::$instantiated[$name];
        }

        self::instantiateDefaultBroadcasters();
        if (!isset(self::$broadcasters[$name])) {
            throw new InvalidArgumentException(sprintf('Undefined broadcaster with name "%s".', $name));
        }

        self::$instantiated[$name] = self::instantiate(self::$broadcasters[$name], $configs);

        return self::$instantiated[$name];
    }
public static function build ( $ name , array $ configs = array ( ) ) { if ( isset ( self :: $ instantiated [ $ name ] ) ) { return self :: $ instantiated [ $ name ] ; } self :: instantiateDefaultBroadcasters ( ) ; if ( ! isset ( self :: $ broadcasters [ $ name ] ) ) { throw new InvalidArgumentException ( sprintf ( 'Undefined broadcaster with name "%s".' , $ name ) ) ; } self :: $ instantiated [ $ name ] = self :: instantiate ( self :: $ broadcasters [ $ name ] , $ configs ) ; return self :: $ instantiated [ $ name ] ; }
Build a broadcaster.

@param string $name
@param array  $configs

@return BroadcasterInterface
Build a broadcaster .