Skip to content

Commit

Permalink
move git relative code to MBO\RemoteGit
Browse files Browse the repository at this point in the history
  • Loading branch information
mborne committed Nov 24, 2018
1 parent c8f7bb3 commit 8845f1d
Show file tree
Hide file tree
Showing 21 changed files with 56 additions and 56 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MBO\SatisGitlab\Git;
namespace MBO\RemoteGit;

use Psr\Log\LoggerInterface;
use \GuzzleHttp\Client as GuzzleHttpClient;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MBO\SatisGitlab\Git;
namespace MBO\RemoteGit;

/**
* Lightweight client interface to list hosted git project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MBO\SatisGitlab\Git;
namespace MBO\RemoteGit;

/**
* Git connection options
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace MBO\SatisGitlab\Filter;
namespace MBO\RemoteGit\Filter;

use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
use MBO\SatisGitlab\Git\ProjectInterface;
use MBO\RemoteGit\ProjectInterface;

/**
* Compose a list of filter to simplify command line integration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MBO\SatisGitlab\Filter;
namespace MBO\RemoteGit\Filter;

use MBO\SatisGitlab\Git\ProjectInterface;
use MBO\SatisGitlab\Git\ClientInterface as GitClientInterface;
use MBO\RemoteGit\ProjectInterface;
use MBO\RemoteGit\ClientInterface as GitClientInterface;
use Psr\Log\LoggerInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace MBO\SatisGitlab\Filter;
namespace MBO\RemoteGit\Filter;

use MBO\SatisGitlab\Git\ProjectInterface;
use MBO\RemoteGit\ProjectInterface;

/**
* Ignore project according to a regular expression
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MBO\SatisGitlab\Filter;
namespace MBO\RemoteGit\Filter;

use MBO\SatisGitlab\Git\ProjectInterface;
use MBO\SatisGitlab\Git\ClientInterface as GitClientInterface;
use MBO\RemoteGit\ProjectInterface;
use MBO\RemoteGit\ClientInterface as GitClientInterface;
use Psr\Log\LoggerInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace MBO\SatisGitlab\Filter;
namespace MBO\RemoteGit\Filter;

use MBO\SatisGitlab\Git\ProjectInterface;
use MBO\RemoteGit\ProjectInterface;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MBO\SatisGitlab\Filter;
namespace MBO\RemoteGit\Filter;

use MBO\SatisGitlab\Git\ProjectInterface;
use MBO\SatisGitlab\Git\ClientInterface as GitClientInterface;
use MBO\RemoteGit\ProjectInterface;
use MBO\RemoteGit\ClientInterface as GitClientInterface;
use Psr\Log\LoggerInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace MBO\SatisGitlab\Git;
namespace MBO\RemoteGit;

use MBO\SatisGitlab\Filter\FilterCollection;
use MBO\RemoteGit\Filter\FilterCollection;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace MBO\SatisGitlab\Git;
namespace MBO\RemoteGit;

use \GuzzleHttp\Client as GuzzleHttpClient;
use Psr\Log\LoggerInterface;
use MBO\SatisGitlab\Filter\ProjectFilterInterface;
use MBO\RemoteGit\Filter\ProjectFilterInterface;

/**
* Client implementation for github
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MBO\SatisGitlab\Git;
namespace MBO\RemoteGit;

/**
* Project implementation for github
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace MBO\SatisGitlab\Git;
namespace MBO\RemoteGit;

use \GuzzleHttp\Client as GuzzleHttpClient;
use Psr\Log\LoggerInterface;

use MBO\SatisGitlab\Filter\ProjectFilterInterface;
use MBO\RemoteGit\Filter\ProjectFilterInterface;

/**
* Find gitlab projects
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MBO\SatisGitlab\Git;
namespace MBO\RemoteGit;

/**
* Common project properties between different git project host (gitlab, github, etc.)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MBO\SatisGitlab\Git;
namespace MBO\RemoteGit;

/**
* Common project properties between different git project host (gitlab, github, etc.)
Expand Down
26 changes: 13 additions & 13 deletions src/MBO/SatisGitlab/Command/GitlabToConfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@

use MBO\SatisGitlab\Satis\ConfigBuilder;
use GuzzleHttp\Client as GuzzleHttpClient;
use MBO\SatisGitlab\Git\GitlabClient;
use MBO\SatisGitlab\Git\ProjectInterface;
use MBO\SatisGitlab\Git\ClientOptions;
use MBO\SatisGitlab\Git\GitlabProject;
use MBO\SatisGitlab\Filter\FilterCollection;

use MBO\SatisGitlab\Filter\GitlabNamespaceFilter;
use MBO\SatisGitlab\Filter\IgnoreRegexpFilter;
use MBO\SatisGitlab\Filter\IncludeIfHasFileFilter;
use MBO\SatisGitlab\Filter\ProjectTypeFilter;
use MBO\SatisGitlab\Git\ClientFactory;
use MBO\SatisGitlab\Git\Filter;
use MBO\SatisGitlab\Git\FindOptions;
use MBO\RemoteGit\GitlabClient;
use MBO\RemoteGit\ProjectInterface;
use MBO\RemoteGit\ClientOptions;
use MBO\RemoteGit\GitlabProject;
use MBO\RemoteGit\Filter\FilterCollection;

use MBO\RemoteGit\Filter\GitlabNamespaceFilter;
use MBO\RemoteGit\Filter\IgnoreRegexpFilter;
use MBO\RemoteGit\Filter\IncludeIfHasFileFilter;
use MBO\RemoteGit\Filter\ProjectTypeFilter;
use MBO\RemoteGit\ClientFactory;
use MBO\RemoteGit\Filter;
use MBO\RemoteGit\FindOptions;



Expand Down
6 changes: 3 additions & 3 deletions tests/Filter/FilterCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

use Psr\Log\NullLogger;

use MBO\SatisGitlab\Filter\FilterCollection;
use MBO\SatisGitlab\Git\ProjectInterface;
use MBO\SatisGitlab\Filter\ProjectFilterInterface;
use MBO\RemoteGit\Filter\FilterCollection;
use MBO\RemoteGit\ProjectInterface;
use MBO\RemoteGit\Filter\ProjectFilterInterface;

/**
* Test FilterCollection
Expand Down
4 changes: 2 additions & 2 deletions tests/Filter/IgnoreRegexpFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use Symfony\Component\Console\Tester\CommandTester;

use MBO\SatisGitlab\Filter\IgnoreRegexpFilter;
use MBO\SatisGitlab\Git\ProjectInterface;
use MBO\RemoteGit\Filter\IgnoreRegexpFilter;
use MBO\RemoteGit\ProjectInterface;

/**
* Test IgnoreRegexpFilter
Expand Down
12 changes: 6 additions & 6 deletions tests/Git/GithubClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
use Tests\SatisGitlab\TestCase;

use GuzzleHttp\Client as GuzzleHttpClient;
use MBO\SatisGitlab\Git\GitlabClient;
use MBO\RemoteGit\GitlabClient;

use Psr\Log\NullLogger;
use MBO\SatisGitlab\Git\ClientOptions;
use MBO\SatisGitlab\Git\ClientFactory;
use MBO\SatisGitlab\Git\GithubClient;
use MBO\SatisGitlab\Git\GithubProject;
use MBO\SatisGitlab\Git\FindOptions;
use MBO\RemoteGit\ClientOptions;
use MBO\RemoteGit\ClientFactory;
use MBO\RemoteGit\GithubClient;
use MBO\RemoteGit\GithubProject;
use MBO\RemoteGit\FindOptions;

class GithubClientTest extends TestCase {

Expand Down
8 changes: 4 additions & 4 deletions tests/Git/GitlabClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
use Tests\SatisGitlab\TestCase;

use GuzzleHttp\Client as GuzzleHttpClient;
use MBO\SatisGitlab\Git\GitlabClient;
use MBO\RemoteGit\GitlabClient;

use Psr\Log\NullLogger;
use MBO\SatisGitlab\Git\ClientOptions;
use MBO\SatisGitlab\Git\ClientFactory;
use MBO\SatisGitlab\Git\FindOptions;
use MBO\RemoteGit\ClientOptions;
use MBO\RemoteGit\ClientFactory;
use MBO\RemoteGit\FindOptions;


class GitlabClientTest extends TestCase {
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use PHPUnit\Framework\TestCase as BaseTestCase;

use MBO\SatisGitlab\Git\ProjectInterface;
use MBO\RemoteGit\ProjectInterface;

class TestCase extends BaseTestCase {

Expand Down

0 comments on commit 8845f1d

Please sign in to comment.