|
@@ -25,10 +25,10 @@ use Composer\Json\JsonFile;
|
|
|
class RepositoryFactory
|
|
|
{
|
|
|
/**
|
|
|
- * @param IOInterface $io
|
|
|
- * @param Config $config
|
|
|
- * @param string $repository
|
|
|
- * @param bool $allowFilesystem
|
|
|
+ * @param IOInterface $io
|
|
|
+ * @param Config $config
|
|
|
+ * @param string $repository
|
|
|
+ * @param bool $allowFilesystem
|
|
|
* @return array|mixed
|
|
|
*/
|
|
|
public static function configFromString(IOInterface $io, Config $config, $repository, $allowFilesystem = false)
|
|
@@ -56,10 +56,10 @@ class RepositoryFactory
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param IOInterface $io
|
|
|
- * @param Config $config
|
|
|
- * @param string $repository
|
|
|
- * @param bool $allowFilesystem
|
|
|
+ * @param IOInterface $io
|
|
|
+ * @param Config $config
|
|
|
+ * @param string $repository
|
|
|
+ * @param bool $allowFilesystem
|
|
|
* @return RepositoryInterface
|
|
|
*/
|
|
|
public static function fromString(IOInterface $io, Config $config, $repository, $allowFilesystem = false)
|
|
@@ -70,9 +70,9 @@ class RepositoryFactory
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param IOInterface $io
|
|
|
- * @param Config $config
|
|
|
- * @param array $repoConfig
|
|
|
+ * @param IOInterface $io
|
|
|
+ * @param Config $config
|
|
|
+ * @param array $repoConfig
|
|
|
* @return RepositoryInterface
|
|
|
*/
|
|
|
public static function createRepo(IOInterface $io, Config $config, array $repoConfig)
|
|
@@ -84,9 +84,9 @@ class RepositoryFactory
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param IOInterface|null $io
|
|
|
- * @param Config|null $config
|
|
|
- * @param RepositoryManager|null $rm
|
|
|
+ * @param IOInterface|null $io
|
|
|
+ * @param Config|null $config
|
|
|
+ * @param RepositoryManager|null $rm
|
|
|
* @return RepositoryInterface[]
|
|
|
*/
|
|
|
public static function defaultRepos(IOInterface $io = null, Config $config = null, RepositoryManager $rm = null)
|