OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
php
/
Composer
/
Repository
/
Vcs
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/20/2024 06:32:22 AM
rwxr-xr-x
📄
BitbucketDriver.php
12.69 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
FossilDriver.php
6.98 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
GitBitbucketDriver.php
2.32 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
GitDriver.php
6.44 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
GitHubDriver.php
16.92 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
GitLabDriver.php
14.68 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
HgBitbucketDriver.php
2.32 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
HgDriver.php
6.87 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
PerforceDriver.php
3.61 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
SvnDriver.php
11.26 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
VcsDriver.php
4.84 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
VcsDriverInterface.php
3.12 KB
01/31/2018 03:28:18 PM
rw-r--r--
Editing: VcsDriverInterface.php
Close
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Repository\Vcs; use Composer\Config; use Composer\IO\IOInterface; /** * @author Jordi Boggiano <j.boggiano@seld.be> */ interface VcsDriverInterface { /** * Initializes the driver (git clone, svn checkout, fetch info etc) */ public function initialize(); /** * Return the composer.json file information * * @param string $identifier Any identifier to a specific branch/tag/commit * @return array containing all infos from the composer.json file */ public function getComposerInformation($identifier); /** * Return the content of $file or null if the file does not exist. * * @param string $file * @param string $identifier * @return string */ public function getFileContent($file, $identifier); /** * Get the changedate for $identifier. * * @param string $identifier * @return \DateTime */ public function getChangeDate($identifier); /** * Return the root identifier (trunk, master, default/tip ..) * * @return string Identifier */ public function getRootIdentifier(); /** * Return list of branches in the repository * * @return array Branch names as keys, identifiers as values */ public function getBranches(); /** * Return list of tags in the repository * * @return array Tag names as keys, identifiers as values */ public function getTags(); /** * @param string $identifier Any identifier to a specific branch/tag/commit * @return array With type, url reference and shasum keys. */ public function getDist($identifier); /** * @param string $identifier Any identifier to a specific branch/tag/commit * @return array With type, url and reference keys. */ public function getSource($identifier); /** * Return the URL of the repository * * @return string */ public function getUrl(); /** * Return true if the repository has a composer file for a given identifier, * false otherwise. * * @param string $identifier Any identifier to a specific branch/tag/commit * @return bool Whether the repository has a composer file for a given identifier. */ public function hasComposerFile($identifier); /** * Performs any cleanup necessary as the driver is not longer needed */ public function cleanup(); /** * Checks if this driver can handle a given url * * @param IOInterface $io IO instance * @param Config $config current $config * @param string $url URL to validate/check * @param bool $deep unless true, only shallow checks (url matching typically) should be done * @return bool */ public static function supports(IOInterface $io, Config $config, $url, $deep = false); }