Gush\Factory\AdapterFactory::allOfType PHP Method

allOfType() public method

Returns all registered adapters of a specific type.
public allOfType ( string $type ) : array[]
$type string AdapterFactory::SUPPORT_REPOSITORY_MANAGER or AdapterFactorySUPPORT_ISSUE_TRACKER
return array[]
    public function allOfType($type)
    {
        return array_filter($this->adapters, function ($adapter) use($type) {
            return $adapter[$type];
        });
    }