* Jordi Boggiano * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Downloader; use Composer\Package\PackageInterface; use Composer\Util\Perforce; /** * @author Jordi Boggiano */ class PerforceDownloader extends VcsDownloader { /** * {@inheritDoc} */ public function doDownload(PackageInterface $package, $path) { $ref = $package->getSourceReference(); $label = $package->getPrettyVersion(); $perforce = new Perforce("", "", $package->getSourceUrl(), $path); $perforce->setStream($ref); $perforce->writeP4ClientSpec(); $perforce->syncCodeBase($label); } /** * {@inheritDoc} */ public function doUpdate(PackageInterface $initial, PackageInterface $target, $path) { print("PerforceDownloader:doUpdate\n"); } /** * {@inheritDoc} */ public function getLocalChanges($path) { print("PerforceDownloader:getLocalChanges\n"); } /** * {@inheritDoc} */ protected function getCommitLogs($fromReference, $toReference, $path) { print("PerforceDownloader:getCommitLogs\n"); } }