public static function getHttpTransports()
	{
		$names    = array();
		$iterator = new \DirectoryIterator(__DIR__ . '/Transport');

		/** @var  $file  \DirectoryIterator */
		foreach ($iterator as $file)
		{
			$fileName = $file->getFilename();

			// Only load for php files.
			if ($file->isFile() && $file->getExtension() == 'php')
			{
				$names[] = substr($fileName, 0, strrpos($fileName, '.'));
			}
		}

		// Keep alphabetical order across all environments
		sort($names);

		// If curl is available set it to the first position
		$key = array_search('Curl', $names);

		if ($key)
		{
			unset($names[$key]);
			array_unshift($names, 'Curl');
		}

		return $names;
	}
public static function getHttpTransports()
	{
		$names    = array();
		$iterator = new \DirectoryIterator(__DIR__ . '/Transport');

		/** @var  $file  \DirectoryIterator */
		foreach ($iterator as $file)
		{
			$fileName = $file->getFilename();

			// Only load for php files.
			if ($file->isFile() && $file->getExtension() == 'php')
			{
				$names[] = substr($fileName, 0, strrpos($fileName, '.'));
			}
		}

		// Keep alphabetical order across all environments
		sort($names);

		// If curl is available set it to the first position
		$key = array_search('Curl', $names);

		if ($key)
		{
			unset($names[$key]);
			array_unshift($names, 'Curl');
		}

		return $names;
	}
public static function getHttpTransports ( ) { $ names = array ( ) ; $ iterator = new \ DirectoryIterator ( __DIR__ . '/Transport' ) ; /** @var  $file  \DirectoryIterator */ foreach ( $ iterator as $ file ) { $ fileName = $ file -> getFilename ( ) ; // Only load for php files. if ( $ file -> isFile ( ) && $ file -> getExtension ( ) == 'php' ) { $ names [ ] = substr ( $ fileName , 0 , strrpos ( $ fileName , '.' ) ) ; } } // Keep alphabetical order across all environments sort ( $ names ) ; // If curl is available set it to the first position $ key = array_search ( 'Curl' , $ names ) ; if ( $ key ) { unset ( $ names [ $ key ] ) ; array_unshift ( $ names , 'Curl' ) ; } return $ names ; }
Get the HTTP transport handlers

@return  array  An array of available transport handlers

@since   1.0
Get the HTTP transport handlers