You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
621 B
PHP

<?php
namespace Gitlab\Api;
use Http\Promise\Promise;
class Group extends Base
{
public function projects(string $path, array $parameters) : Promise
{
$resolver = $this->createOptionsResolver();
$resolver->setDefined('include_subgroups')
->setAllowedTypes('include_subgroups', 'bool')
->setNormalizer('include_subgroups', $this->getBooleanNormaliser());
$queryPath = 'groups/' . $this->encodeObjectPath($path) . '/projects';
$resolvedParameters = $resolver->resolve($parameters);
return $this->post($queryPath, $resolvedParameters);
}
}