protected function handleExtension(InputInterface $input, OutputInterface $output)
	{
		$source = $input->getArgument('extension');

		if (strpos($source, '://'))
		{
			$tmpPath = $this->handleDownload($output, $source);
		}
		elseif (is_dir($source))
		{
			$tmpPath = $this->handleDirectory($output, $source);
		}
		else
		{
			$tmpPath = $this->handleArchive($output, $source);
		}

		return $tmpPath;
	}
protected function handleExtension(InputInterface $input, OutputInterface $output)
	{
		$source = $input->getArgument('extension');

		if (strpos($source, '://'))
		{
			$tmpPath = $this->handleDownload($output, $source);
		}
		elseif (is_dir($source))
		{
			$tmpPath = $this->handleDirectory($output, $source);
		}
		else
		{
			$tmpPath = $this->handleArchive($output, $source);
		}

		return $tmpPath;
	}
protected function handleExtension ( InputInterface $ input , OutputInterface $ output ) { $ source = $ input -> getArgument ( 'extension' ) ; if ( strpos ( $ source , '://' ) ) { $ tmpPath = $ this -> handleDownload ( $ output , $ source ) ; } elseif ( is_dir ( $ source ) ) { $ tmpPath = $ this -> handleDirectory ( $ output , $ source ) ; } else { $ tmpPath = $ this -> handleArchive ( $ output , $ source ) ; } return $ tmpPath ; }
Handle the specified extension
An extension can be provided as a download, a directory, or an archive.
This method prepares the installation by providing the extension in a
temporary directory ready for install.

@param   InputInterface  $input  An InputInterface instance
@param   OutputInterface $output An OutputInterface instance

@return  string  The location of the prepared extension
Handle the specified extension An extension can be provided as a download a directory or an archive . This method prepares the installation by providing the extension in a temporary directory ready for install .