diff --git a/README.md b/README.md
index cb41402..96c028b 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-
Tracy Git version panel
+Tracy Git version
Simple and extensible panel for [Tracy](https://github.com/nette/tracy) that shows information from Git.
@@ -17,10 +17,10 @@ Simple and extensible panel for [Tracy](https://github.com/nette/tracy) that sho
## Installation
-The best way to install `68publishers/tracy-git-version-panel` is using Composer:
+The best way to install `68publishers/tracy-git-version` is using Composer:
```bash
-$ composer require 68publishers/tracy-git-version-panel
+$ composer require 68publishers/tracy-git-version
```
## Basic integration
@@ -33,7 +33,7 @@ The simplest way how to register the panel into Tracy is by creating a default i
addPanel(GitVersionPanel::createDefault());
```
@@ -44,7 +44,7 @@ Basic integration into Nette is really simple. Just register an extension.
```neon
extensions:
- 68publishers.tracy_git_version_panel: SixtyEightPublishers\TracyGitVersionPanel\Bridge\Nette\DI\TracyGitVersionPanelExtension
+ 68publishers.tracy_git_version: SixtyEightPublishers\TracyGitVersion\Bridge\Nette\DI\TracyGitVersionExtension
```
And everything works 😉
@@ -62,12 +62,12 @@ You must create repositories and the panel manually but there is not much work t
/git-version/repository.json -vv
+$ vendor/bin/tracy-git-version export-repository --output-file /git-version/repository.json -vv
```
## Advanced guide
diff --git a/composer.json b/composer.json
index 8cf449c..e2cc2f2 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,5 @@
{
- "name": "68publishers/tracy-git-version-panel",
+ "name": "68publishers/tracy-git-version",
"description": "Git version panel for Tracy.",
"keywords": ["68publishers", "tracy", "git", "git version", "nette"],
"license": "MIT",
@@ -33,19 +33,19 @@
},
"autoload": {
"psr-4": {
- "SixtyEightPublishers\\TracyGitVersionPanel\\": "src/"
+ "SixtyEightPublishers\\TracyGitVersion\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
- "SixtyEightPublishers\\TracyGitVersionPanel\\Tests\\": "tests/"
+ "SixtyEightPublishers\\TracyGitVersion\\Tests\\": "tests/"
}
},
"config": {
"sort-packages": true
},
"bin": [
- "tracy-git-version-panel"
+ "tracy-git-version"
],
"scripts": {
"php-cs-fixer": [
diff --git a/docs/advanced-guide.md b/docs/advanced-guide.md
index 6414d0a..3286c20 100644
--- a/docs/advanced-guide.md
+++ b/docs/advanced-guide.md
@@ -8,7 +8,7 @@
## Git repository service and extending
-All information from Git is provided through a service of type `SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface`.
+All information from Git is provided through a service of type `SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface`.
If you are using the Nette integration the service is accessible in the application's DI Container.
Following repository implementations are implemented:
@@ -29,7 +29,7 @@ The package comes with the following commands
### Custom commands and handlers
-Commands must implements an interface `SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandInterface` and handlers must implements an interface `SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandHandlerInterface`.
+Commands must implements an interface `SixtyEightPublishers\TracyGitVersion\Repository\GitCommandInterface` and handlers must implements an interface `SixtyEightPublishers\TracyGitVersion\Repository\GitCommandHandlerInterface`.
Also, there are these two interfaces for handlers:
@@ -41,9 +41,9 @@ Let's show an example. Suppose we want to create a command to find out the git h
```php
addHandler(ListHistoryCommand::class, new Export\ListHis
When you are using Nette integration then you should register the handlers in the configuration:
```neon
-68publishers.tracy_git_version_panel:
+68publishers.tracy_git_version:
command_handlers:
- App\GitRepositoryPanel\Command\ListHistoryCommand: App\GitRepositoryPanel\LocalDirectory\ListHistoryCommandHandler
+ App\TracyGitVersion\Command\ListHistoryCommand: App\TracyGitVersion\LocalDirectory\ListHistoryCommandHandler
-68publishers.tracy_git_version_panel.export:
+68publishers.tracy_git_version.export:
command_handlers:
- App\GitRepositoryPanel\Command\ListHistoryCommand: App\GitRepositoryPanel\Export\ListHistoryCommandHandler
+ App\TracyGitVersion\Command\ListHistoryCommand: App\TracyGitVersion\Export\ListHistoryCommandHandler
```
## Extending the panel
By default, the panel contains the most useful information like the current branch, commit hash, and latest tag. But you are able to add any information you want.
-The whole panel is made up of blocks which are classes that implement an interface `SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block\BlockInterface`.
+The whole panel is made up of blocks which are classes that implement an interface `SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block\BlockInterface`.
### Extending with a simple table
@@ -167,8 +167,8 @@ If you want to add some additional data that are not provided from Git you can u
```php
addBlock(new SimpleTableBlock([
@@ -179,10 +179,10 @@ $panel = GitVersionPanel::createDefault()
Respectively
```neon
-68publishers.tracy_git_version_panel:
+68publishers.tracy_git_version:
panel:
blocks:
- - SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block\SimpleTableBlock([
+ - SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block\SimpleTableBlock([
Version: %build_version%
], Build)
```
@@ -198,9 +198,9 @@ If you have declared some [custom commands](#custom-commands-and-handlers) and y
```php
setOutputFile(__DIR__ . '/temp/git-version/repository.json') # you can define the filename here so the option `--output-file` can be omitted
@@ -278,7 +278,7 @@ return Config::createDefault()
Now execute the following command that regenerates the export file:
```bash
-$ vendor/bin/tracy-git-version-panel export-repository --config git-version-config.php -vv
+$ vendor/bin/tracy-git-version export-repository --config git-version-config.php -vv
```
As you can see the option `--output-file` is not needed because we already defined the filename in the config.
diff --git a/src/Bridge/Nette/DI/TracyGitVersionPanelExportExtension.php b/src/Bridge/Nette/DI/TracyGitVersionExportExtension.php
similarity index 65%
rename from src/Bridge/Nette/DI/TracyGitVersionPanelExportExtension.php
rename to src/Bridge/Nette/DI/TracyGitVersionExportExtension.php
index 1ad1cf1..9be92ae 100644
--- a/src/Bridge/Nette/DI/TracyGitVersionPanelExportExtension.php
+++ b/src/Bridge/Nette/DI/TracyGitVersionExportExtension.php
@@ -2,21 +2,21 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Nette\DI;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Nette\DI;
use RuntimeException;
use Nette\Schema\Expect;
use Nette\Schema\Schema;
use Nette\DI\CompilerExtension;
use Nette\DI\Definitions\Statement;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\ExportedGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler\GetHeadCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler\GetLatestTagCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\ExportedGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler\GetHeadCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler\GetLatestTagCommandHandler;
-final class TracyGitVersionPanelExportExtension extends CompilerExtension
+final class TracyGitVersionExportExtension extends CompilerExtension
{
/**
* {@inheritDoc}
@@ -47,11 +47,11 @@ public function getConfigSchema(): Schema
*/
public function loadConfiguration(): void
{
- if (0 >= count($this->compiler->getExtensions(TracyGitVersionPanelExtension::class))) {
+ if (0 >= count($this->compiler->getExtensions(TracyGitVersionExtension::class))) {
throw new RuntimeException(sprintf(
'The extension %s can be used only with %s.',
static::class,
- TracyGitVersionPanelExtension::class
+ TracyGitVersionExtension::class
));
}
@@ -65,6 +65,6 @@ public function loadConfiguration(): void
'handlers' => $this->config->command_handlers,
'source' => $this->config->source_name,
])
- ->addTag(TracyGitVersionPanelExtension::TAG_GIT_REPOSITORY, 50);
+ ->addTag(TracyGitVersionExtension::TAG_GIT_REPOSITORY, 50);
}
}
diff --git a/src/Bridge/Nette/DI/TracyGitVersionPanelExtension.php b/src/Bridge/Nette/DI/TracyGitVersionExtension.php
similarity index 78%
rename from src/Bridge/Nette/DI/TracyGitVersionPanelExtension.php
rename to src/Bridge/Nette/DI/TracyGitVersionExtension.php
index 3416b6b..3e7b6b9 100644
--- a/src/Bridge/Nette/DI/TracyGitVersionPanelExtension.php
+++ b/src/Bridge/Nette/DI/TracyGitVersionExtension.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Nette\DI;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Nette\DI;
use Tracy\Bar;
use Nette\Schema\Expect;
@@ -10,19 +10,19 @@
use Nette\DI\CompilerExtension;
use Nette\DI\Definitions\Statement;
use Nette\DI\Definitions\ServiceDefinition;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\GitVersionPanel;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\ResolvableGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block\CurrentStateBlock;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\RuntimeCachedGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\GetHeadCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\GetLatestTagCommandHandler;
-
-final class TracyGitVersionPanelExtension extends CompilerExtension
+use SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\GitVersionPanel;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\ResolvableGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block\CurrentStateBlock;
+use SixtyEightPublishers\TracyGitVersion\Repository\RuntimeCachedGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\GetHeadCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\GetLatestTagCommandHandler;
+
+final class TracyGitVersionExtension extends CompilerExtension
{
public const TAG_GIT_REPOSITORY = '68publishers.tracy_git_version_panel.tag.git_repository';
diff --git a/src/Bridge/Symfony/Console/Application.php b/src/Bridge/Symfony/Console/Application.php
index 108610f..73da3cb 100644
--- a/src/Bridge/Symfony/Console/Application.php
+++ b/src/Bridge/Symfony/Console/Application.php
@@ -2,12 +2,12 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Symfony\Console;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Symfony\Console;
use PhpCsFixer\Console\Command\HelpCommand;
use Symfony\Component\Console\Command\ListCommand;
use Symfony\Component\Console\Application as BaseApplication;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Symfony\Console\Command\ExportRepositoryCommand;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Symfony\Console\Command\ExportRepositoryCommand;
final class Application extends BaseApplication
{
diff --git a/src/Bridge/Symfony/Console/Command/ExportRepositoryCommand.php b/src/Bridge/Symfony/Console/Command/ExportRepositoryCommand.php
index 038d0d7..53ab2aa 100644
--- a/src/Bridge/Symfony/Console/Command/ExportRepositoryCommand.php
+++ b/src/Bridge/Symfony/Console/Command/ExportRepositoryCommand.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Symfony\Console\Command;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Symfony\Console\Command;
use RuntimeException;
use Symfony\Component\Console\Command\Command;
@@ -10,9 +10,9 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Logger\ConsoleLogger;
use Symfony\Component\Console\Output\OutputInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\Config;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\LocalDirectoryExporter;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\ExportConfigException;
+use SixtyEightPublishers\TracyGitVersion\Export\Config;
+use SixtyEightPublishers\TracyGitVersion\Export\LocalDirectoryExporter;
+use SixtyEightPublishers\TracyGitVersion\Exception\ExportConfigException;
final class ExportRepositoryCommand extends Command
{
@@ -32,7 +32,7 @@ protected function configure(): void
/**
* {@inheritdoc}
*
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\ExportConfigException
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\ExportConfigException
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
@@ -72,8 +72,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
/**
* @param string|NULL $configFile
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Export\Config
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\ExportConfigException
+ * @return \SixtyEightPublishers\TracyGitVersion\Export\Config
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\ExportConfigException
*/
private function getConfig(?string $configFile): Config
{
@@ -83,8 +83,8 @@ private function getConfig(?string $configFile): Config
/**
* @param string $configFile
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Export\Config
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\ExportConfigException
+ * @return \SixtyEightPublishers\TracyGitVersion\Export\Config
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\ExportConfigException
*/
private function loadConfig(string $configFile): Config
{
diff --git a/src/Bridge/Tracy/Block/BlockInterface.php b/src/Bridge/Tracy/Block/BlockInterface.php
index f0c47ea..67b3790 100644
--- a/src/Bridge/Tracy/Block/BlockInterface.php
+++ b/src/Bridge/Tracy/Block/BlockInterface.php
@@ -2,14 +2,14 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface;
interface BlockInterface
{
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface $gitRepository
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface $gitRepository
*
* @return string
* @throws \Throwable
diff --git a/src/Bridge/Tracy/Block/CurrentStateBlock.php b/src/Bridge/Tracy/Block/CurrentStateBlock.php
index 36a478c..83a6b0e 100644
--- a/src/Bridge/Tracy/Block/CurrentStateBlock.php
+++ b/src/Bridge/Tracy/Block/CurrentStateBlock.php
@@ -2,13 +2,13 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Tag;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Head;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Tag;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Head;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
final class CurrentStateBlock implements BlockInterface
{
diff --git a/src/Bridge/Tracy/Block/SimpleTableBlock.php b/src/Bridge/Tracy/Block/SimpleTableBlock.php
index 31ec345..b72b024 100644
--- a/src/Bridge/Tracy/Block/SimpleTableBlock.php
+++ b/src/Bridge/Tracy/Block/SimpleTableBlock.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Helpers;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Helpers;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface;
final class SimpleTableBlock implements BlockInterface
{
diff --git a/src/Bridge/Tracy/GitVersionPanel.php b/src/Bridge/Tracy/GitVersionPanel.php
index 1ceb375..16016b9 100644
--- a/src/Bridge/Tracy/GitVersionPanel.php
+++ b/src/Bridge/Tracy/GitVersionPanel.php
@@ -2,25 +2,25 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Tracy;
use Tracy\IBarPanel;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block\BlockInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block\CurrentStateBlock;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\RuntimeCachedGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block\BlockInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block\CurrentStateBlock;
+use SixtyEightPublishers\TracyGitVersion\Repository\RuntimeCachedGitRepository;
final class GitVersionPanel implements IBarPanel
{
private GitRepositoryInterface $gitRepository;
- /** @var \SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block\BlockInterface[] */
+ /** @var \SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block\BlockInterface[] */
private array $blocks;
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface $gitRepository
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block\BlockInterface[] $blocks
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface $gitRepository
+ * @param \SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block\BlockInterface[] $blocks
*/
public function __construct(GitRepositoryInterface $gitRepository, array $blocks)
{
@@ -49,7 +49,7 @@ public static function createDefault(?string $workingDirectory = NULL, string $d
}
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block\BlockInterface $block
+ * @param \SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block\BlockInterface $block
*
* @return $this
*/
diff --git a/src/Bridge/Tracy/Helpers.php b/src/Bridge/Tracy/Helpers.php
index 3e2fd9c..3d5fa73 100644
--- a/src/Bridge/Tracy/Helpers.php
+++ b/src/Bridge/Tracy/Helpers.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Tracy;
use Throwable;
diff --git a/src/Bridge/Tracy/templates/GitVersionPanel.panel.phtml b/src/Bridge/Tracy/templates/GitVersionPanel.panel.phtml
index e267590..bb47ce1 100644
--- a/src/Bridge/Tracy/templates/GitVersionPanel.panel.phtml
+++ b/src/Bridge/Tracy/templates/GitVersionPanel.panel.phtml
@@ -2,12 +2,12 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Tracy;
use Tracy\Helpers;
-/** @var \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface $gitRepository */
-/** @var \SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Block\BlockInterface[] $blocks */
+/** @var \SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface $gitRepository */
+/** @var \SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Block\BlockInterface[] $blocks */
?>
diff --git a/src/Bridge/Tracy/templates/GitVersionPanel.tab.phtml b/src/Bridge/Tracy/templates/GitVersionPanel.tab.phtml
index 25360d3..2e30871 100644
--- a/src/Bridge/Tracy/templates/GitVersionPanel.tab.phtml
+++ b/src/Bridge/Tracy/templates/GitVersionPanel.tab.phtml
@@ -2,13 +2,13 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Tracy;
use Tracy\Helpers;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Head;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Head;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
-/** @var \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface $gitRepository */
+/** @var \SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface $gitRepository */
?>
diff --git a/src/Bridge/Tracy/templates/SimpleTable.block.phtml b/src/Bridge/Tracy/templates/SimpleTable.block.phtml
index eec1913..5a5f79c 100644
--- a/src/Bridge/Tracy/templates/SimpleTable.block.phtml
+++ b/src/Bridge/Tracy/templates/SimpleTable.block.phtml
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy;
+namespace SixtyEightPublishers\TracyGitVersion\Bridge\Tracy;
use Tracy\Helpers;
diff --git a/src/Exception/BadMethodCallException.php b/src/Exception/BadMethodCallException.php
index 064e6f5..ed81cd6 100644
--- a/src/Exception/BadMethodCallException.php
+++ b/src/Exception/BadMethodCallException.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Exception;
+namespace SixtyEightPublishers\TracyGitVersion\Exception;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\ExporterInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\ResolvableGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Export\ExporterInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\ResolvableGitRepository;
final class BadMethodCallException extends \BadMethodCallException implements ExceptionInterface
{
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Export\ExporterInterface $exporter
+ * @param \SixtyEightPublishers\TracyGitVersion\Export\ExporterInterface $exporter
*
* @return static
*/
diff --git a/src/Exception/ExceptionInterface.php b/src/Exception/ExceptionInterface.php
index d18219a..b9235fa 100644
--- a/src/Exception/ExceptionInterface.php
+++ b/src/Exception/ExceptionInterface.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Exception;
+namespace SixtyEightPublishers\TracyGitVersion\Exception;
use Throwable;
diff --git a/src/Exception/ExportConfigException.php b/src/Exception/ExportConfigException.php
index 3ba1e4e..83d9611 100644
--- a/src/Exception/ExportConfigException.php
+++ b/src/Exception/ExportConfigException.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Exception;
+namespace SixtyEightPublishers\TracyGitVersion\Exception;
use Exception;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\Config;
+use SixtyEightPublishers\TracyGitVersion\Export\Config;
final class ExportConfigException extends Exception implements ExceptionInterface
{
diff --git a/src/Exception/GitDirectoryException.php b/src/Exception/GitDirectoryException.php
index 45b507b..61ec57f 100644
--- a/src/Exception/GitDirectoryException.php
+++ b/src/Exception/GitDirectoryException.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Exception;
+namespace SixtyEightPublishers\TracyGitVersion\Exception;
use Exception;
diff --git a/src/Exception/UnhandledCommandException.php b/src/Exception/UnhandledCommandException.php
index e43de13..f2f3fb1 100644
--- a/src/Exception/UnhandledCommandException.php
+++ b/src/Exception/UnhandledCommandException.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Exception;
+namespace SixtyEightPublishers\TracyGitVersion\Exception;
use Exception;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitCommandInterface;
final class UnhandledCommandException extends Exception implements ExceptionInterface
{
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandInterface $command
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\GitCommandInterface $command
*
* @return static
*/
diff --git a/src/Export/Config.php b/src/Export/Config.php
index edc6f2a..a2519c3 100644
--- a/src/Export/Config.php
+++ b/src/Export/Config.php
@@ -2,16 +2,16 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Export;
+namespace SixtyEightPublishers\TracyGitVersion\Export;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\ExportConfigException;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\PartialExporter\HeadExporter;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\PartialExporter\LatestTagExporter;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\GetHeadCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\GetLatestTagCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Exception\ExportConfigException;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Export\PartialExporter\HeadExporter;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Export\PartialExporter\LatestTagExporter;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\GetHeadCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\GetLatestTagCommandHandler;
final class Config
{
@@ -87,7 +87,7 @@ public function hasOption(string $name): bool
* @param string $name
*
* @return mixed
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\ExportConfigException
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\ExportConfigException
*/
public function getOption(string $name)
{
@@ -99,7 +99,7 @@ public function getOption(string $name)
}
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory $gitDirectory
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory $gitDirectory
*
* @return $this
*/
@@ -109,7 +109,7 @@ public function setGitDirectory(GitDirectory $gitDirectory): self
}
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandHandlerInterface[] $handlers
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\GitCommandHandlerInterface[] $handlers
*
* @return $this
*/
@@ -119,7 +119,7 @@ public function addCommandHandlers(array $handlers): self
}
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Export\ExporterInterface[] $exporters
+ * @param \SixtyEightPublishers\TracyGitVersion\Export\ExporterInterface[] $exporters
*
* @return $this
*/
diff --git a/src/Export/ExporterInterface.php b/src/Export/ExporterInterface.php
index 588b5de..222e0cb 100644
--- a/src/Export/ExporterInterface.php
+++ b/src/Export/ExporterInterface.php
@@ -2,18 +2,18 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Export;
+namespace SixtyEightPublishers\TracyGitVersion\Export;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface;
interface ExporterInterface
{
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Export\Config $config
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface|null $gitRepository
+ * @param \SixtyEightPublishers\TracyGitVersion\Export\Config $config
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface|null $gitRepository
*
* @return array
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\ExportConfigException
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\ExportConfigException
*/
public function export(Config $config, ?GitRepositoryInterface $gitRepository): array;
}
diff --git a/src/Export/LocalDirectoryExporter.php b/src/Export/LocalDirectoryExporter.php
index 1b16202..6954951 100644
--- a/src/Export/LocalDirectoryExporter.php
+++ b/src/Export/LocalDirectoryExporter.php
@@ -2,10 +2,10 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Export;
+namespace SixtyEightPublishers\TracyGitVersion\Export;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface;
final class LocalDirectoryExporter implements ExporterInterface
{
diff --git a/src/Export/PartialExporter/HeadExporter.php b/src/Export/PartialExporter/HeadExporter.php
index 903fcee..4236c63 100644
--- a/src/Export/PartialExporter/HeadExporter.php
+++ b/src/Export/PartialExporter/HeadExporter.php
@@ -2,20 +2,20 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Export\PartialExporter;
+namespace SixtyEightPublishers\TracyGitVersion\Export\PartialExporter;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\Config;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\ExporterInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\BadMethodCallException;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface;
+use SixtyEightPublishers\TracyGitVersion\Export\Config;
+use SixtyEightPublishers\TracyGitVersion\Export\ExporterInterface;
+use SixtyEightPublishers\TracyGitVersion\Exception\BadMethodCallException;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface;
final class HeadExporter implements ExporterInterface
{
/**
* {@inheritDoc}
*
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\UnhandledCommandException
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\UnhandledCommandException
*/
public function export(Config $config, ?GitRepositoryInterface $gitRepository): array
{
@@ -27,7 +27,7 @@ public function export(Config $config, ?GitRepositoryInterface $gitRepository):
return [];
}
- /** @var \SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Head $head */
+ /** @var \SixtyEightPublishers\TracyGitVersion\Repository\Entity\Head $head */
$head = $gitRepository->handle(new GetHeadCommand());
return [
diff --git a/src/Export/PartialExporter/LatestTagExporter.php b/src/Export/PartialExporter/LatestTagExporter.php
index cebc1db..0eed8dd 100644
--- a/src/Export/PartialExporter/LatestTagExporter.php
+++ b/src/Export/PartialExporter/LatestTagExporter.php
@@ -2,21 +2,21 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Export\PartialExporter;
+namespace SixtyEightPublishers\TracyGitVersion\Export\PartialExporter;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\Config;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Tag;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\ExporterInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\BadMethodCallException;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Export\Config;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Tag;
+use SixtyEightPublishers\TracyGitVersion\Export\ExporterInterface;
+use SixtyEightPublishers\TracyGitVersion\Exception\BadMethodCallException;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
final class LatestTagExporter implements ExporterInterface
{
/**
* {@inheritDoc}
*
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\UnhandledCommandException
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\UnhandledCommandException
*/
public function export(Config $config, ?GitRepositoryInterface $gitRepository): array
{
diff --git a/src/Repository/AbstractGitRepository.php b/src/Repository/AbstractGitRepository.php
index f64adc9..e05b3ba 100644
--- a/src/Repository/AbstractGitRepository.php
+++ b/src/Repository/AbstractGitRepository.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Repository;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\UnhandledCommandException;
+use SixtyEightPublishers\TracyGitVersion\Exception\UnhandledCommandException;
abstract class AbstractGitRepository implements GitRepositoryInterface
{
- /** @var \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandHandlerInterface[] */
+ /** @var \SixtyEightPublishers\TracyGitVersion\Repository\GitCommandHandlerInterface[] */
private array $handlers = [];
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandHandlerInterface[] $handlers
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\GitCommandHandlerInterface[] $handlers
*/
public function __construct(array $handlers = [])
{
diff --git a/src/Repository/Command/GetHeadCommand.php b/src/Repository/Command/GetHeadCommand.php
index 372dfbb..7214f23 100644
--- a/src/Repository/Command/GetHeadCommand.php
+++ b/src/Repository/Command/GetHeadCommand.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\Command;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\Command;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitCommandInterface;
final class GetHeadCommand implements GitCommandInterface
{
diff --git a/src/Repository/Command/GetLatestTagCommand.php b/src/Repository/Command/GetLatestTagCommand.php
index 26c5328..e490318 100644
--- a/src/Repository/Command/GetLatestTagCommand.php
+++ b/src/Repository/Command/GetLatestTagCommand.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\Command;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\Command;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitCommandInterface;
final class GetLatestTagCommand implements GitCommandInterface
{
diff --git a/src/Repository/Entity/CommitHash.php b/src/Repository/Entity/CommitHash.php
index 6547a15..02a3b3b 100644
--- a/src/Repository/Entity/CommitHash.php
+++ b/src/Repository/Entity/CommitHash.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\Entity;
final class CommitHash
{
@@ -25,7 +25,7 @@ public function getValue(): string
}
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\CommitHash $commitHash
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\Entity\CommitHash $commitHash
*
* @return bool
*/
diff --git a/src/Repository/Entity/Head.php b/src/Repository/Entity/Head.php
index e4aae7a..70216e7 100644
--- a/src/Repository/Entity/Head.php
+++ b/src/Repository/Entity/Head.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\Entity;
final class Head
{
@@ -11,8 +11,8 @@ final class Head
private ?CommitHash $commitHash;
/**
- * @param string|NULL $branch
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\CommitHash|NULL $commitHash
+ * @param string|NULL $branch
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\Entity\CommitHash|NULL $commitHash
*/
public function __construct(?string $branch, ?CommitHash $commitHash)
{
@@ -29,7 +29,7 @@ public function getBranch(): ?string
}
/**
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\CommitHash|NULL
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\Entity\CommitHash|NULL
*/
public function getCommitHash(): ?CommitHash
{
diff --git a/src/Repository/Entity/Tag.php b/src/Repository/Entity/Tag.php
index 983eb47..500a776 100644
--- a/src/Repository/Entity/Tag.php
+++ b/src/Repository/Entity/Tag.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\Entity;
final class Tag
{
@@ -11,8 +11,8 @@ final class Tag
private CommitHash $commitHash;
/**
- * @param string $name
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\CommitHash $commitHash
+ * @param string $name
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\Entity\CommitHash $commitHash
*/
public function __construct(string $name, CommitHash $commitHash)
{
@@ -29,7 +29,7 @@ public function getName(): string
}
/**
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\CommitHash
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\Entity\CommitHash
*/
public function getCommitHash(): CommitHash
{
diff --git a/src/Repository/Export/CommandHandler/AbstractExportedCommandHandler.php b/src/Repository/Export/CommandHandler/AbstractExportedCommandHandler.php
index 6f316d8..2055922 100644
--- a/src/Repository/Export/CommandHandler/AbstractExportedCommandHandler.php
+++ b/src/Repository/Export/CommandHandler/AbstractExportedCommandHandler.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler;
abstract class AbstractExportedCommandHandler implements ExportedGitCommandHandlerInterface
{
diff --git a/src/Repository/Export/CommandHandler/ExportedGitCommandHandlerInterface.php b/src/Repository/Export/CommandHandler/ExportedGitCommandHandlerInterface.php
index a80c67f..b0ef5bc 100644
--- a/src/Repository/Export/CommandHandler/ExportedGitCommandHandlerInterface.php
+++ b/src/Repository/Export/CommandHandler/ExportedGitCommandHandlerInterface.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandHandlerInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitCommandHandlerInterface;
interface ExportedGitCommandHandlerInterface extends GitCommandHandlerInterface
{
diff --git a/src/Repository/Export/CommandHandler/GetHeadCommandHandler.php b/src/Repository/Export/CommandHandler/GetHeadCommandHandler.php
index 26a1d53..82f40da 100644
--- a/src/Repository/Export/CommandHandler/GetHeadCommandHandler.php
+++ b/src/Repository/Export/CommandHandler/GetHeadCommandHandler.php
@@ -2,18 +2,18 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Head;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\CommitHash;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Head;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\CommitHash;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
final class GetHeadCommandHandler extends AbstractExportedCommandHandler
{
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand $command
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand $command
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Head
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\Entity\Head
*/
public function __invoke(GetHeadCommand $command): Head
{
diff --git a/src/Repository/Export/CommandHandler/GetLatestTagCommandHandler.php b/src/Repository/Export/CommandHandler/GetLatestTagCommandHandler.php
index 2be970a..4b6f2e2 100644
--- a/src/Repository/Export/CommandHandler/GetLatestTagCommandHandler.php
+++ b/src/Repository/Export/CommandHandler/GetLatestTagCommandHandler.php
@@ -2,18 +2,18 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Tag;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\CommitHash;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Tag;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\CommitHash;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
final class GetLatestTagCommandHandler extends AbstractExportedCommandHandler
{
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand $command
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand $command
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Tag|NULL
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\Entity\Tag|NULL
*/
public function __invoke(GetLatestTagCommand $command): ?Tag
{
diff --git a/src/Repository/ExportedGitRepository.php b/src/Repository/ExportedGitRepository.php
index a51926d..18404f2 100644
--- a/src/Repository/ExportedGitRepository.php
+++ b/src/Repository/ExportedGitRepository.php
@@ -2,14 +2,14 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Repository;
use JsonException;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler\GetHeadCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler\GetLatestTagCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler\ExportedGitCommandHandlerInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler\GetHeadCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler\GetLatestTagCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler\ExportedGitCommandHandlerInterface;
final class ExportedGitRepository extends AbstractGitRepository
{
diff --git a/src/Repository/GitCommandHandlerInterface.php b/src/Repository/GitCommandHandlerInterface.php
index 83bdf4c..87974eb 100644
--- a/src/Repository/GitCommandHandlerInterface.php
+++ b/src/Repository/GitCommandHandlerInterface.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Repository;
interface GitCommandHandlerInterface
{
diff --git a/src/Repository/GitCommandInterface.php b/src/Repository/GitCommandInterface.php
index 5915eec..cc1af9e 100644
--- a/src/Repository/GitCommandInterface.php
+++ b/src/Repository/GitCommandInterface.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Repository;
interface GitCommandInterface
{
diff --git a/src/Repository/GitRepositoryInterface.php b/src/Repository/GitRepositoryInterface.php
index 2c68faf..8d661f5 100644
--- a/src/Repository/GitRepositoryInterface.php
+++ b/src/Repository/GitRepositoryInterface.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Repository;
interface GitRepositoryInterface
{
@@ -20,18 +20,18 @@ public function getSource(): string;
public function isAccessible(): bool;
/**
- * @param string $commandClassname
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandHandlerInterface $handler
+ * @param string $commandClassname
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\GitCommandHandlerInterface $handler
*
* @return void
*/
public function addHandler(string $commandClassname, GitCommandHandlerInterface $handler): void;
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandInterface $command
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\GitCommandInterface $command
*
* @return mixed
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\UnhandledCommandException
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\UnhandledCommandException
*/
public function handle(GitCommandInterface $command);
diff --git a/src/Repository/LocalDirectory/CommandHandler/AbstractLocalDirectoryCommandHandler.php b/src/Repository/LocalDirectory/CommandHandler/AbstractLocalDirectoryCommandHandler.php
index af390ca..d012947 100644
--- a/src/Repository/LocalDirectory/CommandHandler/AbstractLocalDirectoryCommandHandler.php
+++ b/src/Repository/LocalDirectory/CommandHandler/AbstractLocalDirectoryCommandHandler.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
abstract class AbstractLocalDirectoryCommandHandler implements LocalDirectoryGitCommandHandlerInterface
{
private ?GitDirectory $gitDirectory;
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory|NULL $gitDirectory
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory|NULL $gitDirectory
*/
public function __construct(?GitDirectory $gitDirectory = NULL)
{
@@ -28,8 +28,8 @@ public function withGitDirectory(GitDirectory $gitDirectory): LocalDirectoryGitC
}
/**
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException
*/
protected function getGitDirectory(): GitDirectory
{
diff --git a/src/Repository/LocalDirectory/CommandHandler/GetHeadCommandHandler.php b/src/Repository/LocalDirectory/CommandHandler/GetHeadCommandHandler.php
index 23d695d..ea55c6e 100644
--- a/src/Repository/LocalDirectory/CommandHandler/GetHeadCommandHandler.php
+++ b/src/Repository/LocalDirectory/CommandHandler/GetHeadCommandHandler.php
@@ -2,19 +2,19 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Head;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\CommitHash;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Head;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\CommitHash;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
final class GetHeadCommandHandler extends AbstractLocalDirectoryCommandHandler
{
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand $command
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand $command
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Head
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\Entity\Head
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException
*/
public function __invoke(GetHeadCommand $command): Head
{
diff --git a/src/Repository/LocalDirectory/CommandHandler/GetLatestTagCommandHandler.php b/src/Repository/LocalDirectory/CommandHandler/GetLatestTagCommandHandler.php
index e0cad83..09c5e05 100644
--- a/src/Repository/LocalDirectory/CommandHandler/GetLatestTagCommandHandler.php
+++ b/src/Repository/LocalDirectory/CommandHandler/GetLatestTagCommandHandler.php
@@ -2,19 +2,19 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Tag;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\CommitHash;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Tag;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\CommitHash;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
final class GetLatestTagCommandHandler extends AbstractLocalDirectoryCommandHandler
{
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand $getLatestTag
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand $getLatestTag
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Tag|NULL
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\Entity\Tag|NULL
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException
*/
public function __invoke(GetLatestTagCommand $getLatestTag): ?Tag
{
diff --git a/src/Repository/LocalDirectory/CommandHandler/LocalDirectoryGitCommandHandlerInterface.php b/src/Repository/LocalDirectory/CommandHandler/LocalDirectoryGitCommandHandlerInterface.php
index b3da07c..64e4e7c 100644
--- a/src/Repository/LocalDirectory/CommandHandler/LocalDirectoryGitCommandHandlerInterface.php
+++ b/src/Repository/LocalDirectory/CommandHandler/LocalDirectoryGitCommandHandlerInterface.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandHandlerInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitCommandHandlerInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
interface LocalDirectoryGitCommandHandlerInterface extends GitCommandHandlerInterface
{
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory $gitDirectory
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory $gitDirectory
*
* @return $this
*/
diff --git a/src/Repository/LocalDirectory/GitDirectory.php b/src/Repository/LocalDirectory/GitDirectory.php
index 1986a0d..ec90bb6 100644
--- a/src/Repository/LocalDirectory/GitDirectory.php
+++ b/src/Repository/LocalDirectory/GitDirectory.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory;
+namespace SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException;
+use SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException;
final class GitDirectory
{
@@ -32,7 +32,7 @@ private function __construct(?string $gitDirectory, ?string $workingDirectory =
* @param string $gitDirectory
*
* @return static
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException
*/
public static function createFromGitDirectory(string $gitDirectory): self
{
@@ -58,7 +58,7 @@ public static function createAutoDetected(?string $workingDirectory = NULL, stri
/**
* @return string
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException
*/
public function __toString(): string
{
@@ -88,7 +88,7 @@ public function __toString(): string
/**
* @return string
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException
*/
private function getWorkingDirectoryPath(): string
{
diff --git a/src/Repository/LocalGitRepository.php b/src/Repository/LocalGitRepository.php
index fe1ae30..9d5493b 100644
--- a/src/Repository/LocalGitRepository.php
+++ b/src/Repository/LocalGitRepository.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Repository;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\GetHeadCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\GetLatestTagCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\LocalDirectoryGitCommandHandlerInterface;
+use SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\GetHeadCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\GetLatestTagCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\LocalDirectoryGitCommandHandlerInterface;
final class LocalGitRepository extends AbstractGitRepository
{
@@ -19,9 +19,9 @@ final class LocalGitRepository extends AbstractGitRepository
private string $source;
/**
- * @param string $source
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory $gitDirectory
- * @param array $handlers
+ * @param string $source
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory $gitDirectory
+ * @param array $handlers
*/
public function __construct(GitDirectory $gitDirectory, array $handlers = [], string $source = self::SOURCE_GIT_DIRECTORY)
{
diff --git a/src/Repository/ResolvableGitRepository.php b/src/Repository/ResolvableGitRepository.php
index 5913e2c..137e2dc 100644
--- a/src/Repository/ResolvableGitRepository.php
+++ b/src/Repository/ResolvableGitRepository.php
@@ -2,14 +2,14 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Repository;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\BadMethodCallException;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\UnhandledCommandException;
+use SixtyEightPublishers\TracyGitVersion\Exception\BadMethodCallException;
+use SixtyEightPublishers\TracyGitVersion\Exception\UnhandledCommandException;
final class ResolvableGitRepository implements GitRepositoryInterface
{
- /** @var \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface[] */
+ /** @var \SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface[] */
private array $repositories;
private bool $resolved = FALSE;
@@ -17,7 +17,7 @@ final class ResolvableGitRepository implements GitRepositoryInterface
private ?GitRepositoryInterface $resolvedRepository = NULL;
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface[] $repositories
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface[] $repositories
*/
public function __construct(array $repositories)
{
@@ -77,7 +77,7 @@ public function supports(string $commandClassname): bool
}
/**
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface|NULL
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface|NULL
*/
private function getResolvedRepository(): ?GitRepositoryInterface
{
diff --git a/src/Repository/RuntimeCachedGitRepository.php b/src/Repository/RuntimeCachedGitRepository.php
index a33253e..11e6b24 100644
--- a/src/Repository/RuntimeCachedGitRepository.php
+++ b/src/Repository/RuntimeCachedGitRepository.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Repository;
final class RuntimeCachedGitRepository implements GitRepositoryInterface
{
@@ -11,7 +11,7 @@ final class RuntimeCachedGitRepository implements GitRepositoryInterface
private array $cache = [];
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface $inner
+ * @param \SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface $inner
*/
public function __construct(GitRepositoryInterface $inner)
{
diff --git a/tests/Cases/Bridge/Nette/DI/TracyGitVersionPanelExportExtensionTest.php b/tests/Cases/Bridge/Nette/DI/TracyGitVersionExportExtensionTest.php
similarity index 51%
rename from tests/Cases/Bridge/Nette/DI/TracyGitVersionPanelExportExtensionTest.php
rename to tests/Cases/Bridge/Nette/DI/TracyGitVersionExportExtensionTest.php
index 6a53e8c..8709b12 100644
--- a/tests/Cases/Bridge/Nette/DI/TracyGitVersionPanelExportExtensionTest.php
+++ b/tests/Cases/Bridge/Nette/DI/TracyGitVersionExportExtensionTest.php
@@ -2,23 +2,23 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Bridge\Nette\DI;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Bridge\Nette\DI;
use Tester\Assert;
use Tester\TestCase;
use RuntimeException;
use Nette\DI\Container;
use Nette\DI\Definitions\Statement;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Helper\ContainerHelper;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Nette\DI\TracyGitVersionPanelExtension;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Nette\DI\TracyGitVersionPanelExportExtension;
+use SixtyEightPublishers\TracyGitVersion\Tests\Helper\ContainerHelper;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Nette\DI\TracyGitVersionExtension;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Nette\DI\TracyGitVersionExportExtension;
require __DIR__ . '/../../../../bootstrap.php';
/**
* @testCase
*/
-final class TracyGitVersionPanelExportExtensionTest extends TestCase
+final class TracyGitVersionExportExtensionTest extends TestCase
{
public function testBasicIntegration(): void
{
@@ -27,8 +27,8 @@ public function testBasicIntegration(): void
Assert::noError(function () use (&$container) {
$container = ContainerHelper::create([
'extensions' => [
- '68publishers.tracy_git_version_panel' => new Statement(TracyGitVersionPanelExtension::class),
- '68publishers.tracy_git_version_panel.export' => new Statement(TracyGitVersionPanelExportExtension::class),
+ '68publishers.tracy_git_version' => new Statement(TracyGitVersionExtension::class),
+ '68publishers.tracy_git_version.export' => new Statement(TracyGitVersionExportExtension::class),
],
'application' => [
'scanDirs' => FALSE,
@@ -47,14 +47,14 @@ public function testBasicIntegrationWithoutMainExtension(): void
Assert::exception(function () use (&$container) {
$container = ContainerHelper::create([
'extensions' => [
- '68publishers.tracy_git_version_panel.export' => new Statement(TracyGitVersionPanelExportExtension::class),
+ '68publishers.tracy_git_version.export' => new Statement(TracyGitVersionExportExtension::class),
],
'application' => [
'scanDirs' => FALSE,
],
], FALSE);
- }, RuntimeException::class, sprintf('The extension %s can be used only with %s.', TracyGitVersionPanelExportExtension::class, TracyGitVersionPanelExtension::class));
+ }, RuntimeException::class, sprintf('The extension %s can be used only with %s.', TracyGitVersionExportExtension::class, TracyGitVersionExtension::class));
}
}
-(new TracyGitVersionPanelExportExtensionTest())->run();
+(new TracyGitVersionExportExtensionTest())->run();
diff --git a/tests/Cases/Bridge/Nette/DI/TracyGitVersionPanelExtensionTest.php b/tests/Cases/Bridge/Nette/DI/TracyGitVersionExtensionTest.php
similarity index 73%
rename from tests/Cases/Bridge/Nette/DI/TracyGitVersionPanelExtensionTest.php
rename to tests/Cases/Bridge/Nette/DI/TracyGitVersionExtensionTest.php
index a909ca8..d24a434 100644
--- a/tests/Cases/Bridge/Nette/DI/TracyGitVersionPanelExtensionTest.php
+++ b/tests/Cases/Bridge/Nette/DI/TracyGitVersionExtensionTest.php
@@ -2,24 +2,24 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Bridge\Nette\DI;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Bridge\Nette\DI;
use Tracy\Bar;
use Tester\Assert;
use Tester\TestCase;
use Nette\DI\Container;
use Nette\DI\Definitions\Statement;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\GitVersionPanel;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Helper\ContainerHelper;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitRepositoryInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Nette\DI\TracyGitVersionPanelExtension;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\GitVersionPanel;
+use SixtyEightPublishers\TracyGitVersion\Tests\Helper\ContainerHelper;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitRepositoryInterface;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Nette\DI\TracyGitVersionExtension;
require __DIR__ . '/../../../../bootstrap.php';
/**
* @testCase
*/
-final class TracyGitVersionPanelExtensionTest extends TestCase
+final class TracyGitVersionExtensionTest extends TestCase
{
public function testBasicIntegrationInDebugMode(): void
{
@@ -71,7 +71,7 @@ private function createContainer(array $config = [], bool $debugMode = FALSE): C
return ContainerHelper::create(array_merge(
[
'extensions' => [
- '68publishers.tracy_git_version_panel' => new Statement(TracyGitVersionPanelExtension::class),
+ '68publishers.tracy_git_version' => new Statement(TracyGitVersionExtension::class),
],
'application' => [
'scanDirs' => FALSE,
@@ -82,4 +82,4 @@ private function createContainer(array $config = [], bool $debugMode = FALSE): C
}
}
-(new TracyGitVersionPanelExtensionTest())->run();
+(new TracyGitVersionExtensionTest())->run();
diff --git a/tests/Cases/Bridge/Symfony/Console/Command/ExportRepositoryCommandTest.phpt b/tests/Cases/Bridge/Symfony/Console/Command/ExportRepositoryCommandTest.phpt
index 94db78a..fe42a63 100644
--- a/tests/Cases/Bridge/Symfony/Console/Command/ExportRepositoryCommandTest.phpt
+++ b/tests/Cases/Bridge/Symfony/Console/Command/ExportRepositoryCommandTest.phpt
@@ -2,15 +2,15 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Bridge\Symfony\Console\Command;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Bridge\Symfony\Console\Command;
use Tester\Assert;
use Tester\TestCase;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\Console\Output\OutputInterface;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\ExportConfigException;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Symfony\Console\Application;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Symfony\Console\Command\ExportRepositoryCommand;
+use SixtyEightPublishers\TracyGitVersion\Exception\ExportConfigException;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Symfony\Console\Application;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Symfony\Console\Command\ExportRepositoryCommand;
require __DIR__ . '/../../../../../bootstrap.php';
diff --git a/tests/Cases/Bridge/Tracy/GitVersionPanelTest.php b/tests/Cases/Bridge/Tracy/GitVersionPanelTest.php
index 404af5a..6dd6416 100644
--- a/tests/Cases/Bridge/Tracy/GitVersionPanelTest.php
+++ b/tests/Cases/Bridge/Tracy/GitVersionPanelTest.php
@@ -2,11 +2,11 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Bridge\Tracy;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Bridge\Tracy;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\GitVersionPanel;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\GitVersionPanel;
require __DIR__ . '/../../../bootstrap.php';
diff --git a/tests/Cases/Bridge/Tracy/HelpersTest.php b/tests/Cases/Bridge/Tracy/HelpersTest.php
index 5d05caf..842f202 100644
--- a/tests/Cases/Bridge/Tracy/HelpersTest.php
+++ b/tests/Cases/Bridge/Tracy/HelpersTest.php
@@ -2,11 +2,11 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Bridge\Tracy;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Bridge\Tracy;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Tracy\Helpers;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Tracy\Helpers;
require __DIR__ . '/../../../bootstrap.php';
diff --git a/tests/Cases/Export/ConfigTest.php b/tests/Cases/Export/ConfigTest.php
index 4e6f80e..d001f10 100644
--- a/tests/Cases/Export/ConfigTest.php
+++ b/tests/Cases/Export/ConfigTest.php
@@ -2,12 +2,12 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Export;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Export;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\Config;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\ExportConfigException;
+use SixtyEightPublishers\TracyGitVersion\Export\Config;
+use SixtyEightPublishers\TracyGitVersion\Exception\ExportConfigException;
require __DIR__ . '/../../bootstrap.php';
diff --git a/tests/Cases/Export/LocalDirectoryExporterTest.php b/tests/Cases/Export/LocalDirectoryExporterTest.php
index ece3700..f88eec9 100644
--- a/tests/Cases/Export/LocalDirectoryExporterTest.php
+++ b/tests/Cases/Export/LocalDirectoryExporterTest.php
@@ -2,13 +2,13 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Export;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Export;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\Config;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\LocalDirectoryExporter;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Export\Config;
+use SixtyEightPublishers\TracyGitVersion\Export\LocalDirectoryExporter;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
require __DIR__ . '/../../bootstrap.php';
diff --git a/tests/Cases/Export/PartialExporter/HeadExporterTest.php b/tests/Cases/Export/PartialExporter/HeadExporterTest.php
index efbb685..7984579 100644
--- a/tests/Cases/Export/PartialExporter/HeadExporterTest.php
+++ b/tests/Cases/Export/PartialExporter/HeadExporterTest.php
@@ -2,16 +2,16 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Export\PartialExporter;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Export\PartialExporter;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\Config;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\PartialExporter\HeadExporter;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\GetHeadCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Export\Config;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Export\PartialExporter\HeadExporter;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\GetHeadCommandHandler;
require __DIR__ . '/../../../bootstrap.php';
diff --git a/tests/Cases/Export/PartialExporter/LatestTagExporterTest.php b/tests/Cases/Export/PartialExporter/LatestTagExporterTest.php
index d7a06ca..db4438e 100644
--- a/tests/Cases/Export/PartialExporter/LatestTagExporterTest.php
+++ b/tests/Cases/Export/PartialExporter/LatestTagExporterTest.php
@@ -2,16 +2,16 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Export\PartialExporter;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Export\PartialExporter;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\Config;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
-use SixtyEightPublishers\TracyGitVersionPanel\Export\PartialExporter\LatestTagExporter;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\GetLatestTagCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Export\Config;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Export\PartialExporter\LatestTagExporter;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\GetLatestTagCommandHandler;
require __DIR__ . '/../../../bootstrap.php';
diff --git a/tests/Cases/Repository/Export/CommandHandler/GetHeadCommandHandlerTest.php b/tests/Cases/Repository/Export/CommandHandler/GetHeadCommandHandlerTest.php
index 19654aa..e5257ff 100644
--- a/tests/Cases/Repository/Export/CommandHandler/GetHeadCommandHandlerTest.php
+++ b/tests/Cases/Repository/Export/CommandHandler/GetHeadCommandHandlerTest.php
@@ -2,13 +2,13 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Repository\Export\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Repository\Export\CommandHandler;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Head;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler\GetHeadCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Head;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler\GetHeadCommandHandler;
require __DIR__ . '/../../../../bootstrap.php';
diff --git a/tests/Cases/Repository/Export/CommandHandler/GetLatestTagCommandHandlerTest.php b/tests/Cases/Repository/Export/CommandHandler/GetLatestTagCommandHandlerTest.php
index b0cf8fe..b7f1071 100644
--- a/tests/Cases/Repository/Export/CommandHandler/GetLatestTagCommandHandlerTest.php
+++ b/tests/Cases/Repository/Export/CommandHandler/GetLatestTagCommandHandlerTest.php
@@ -2,13 +2,13 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Repository\Export\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Repository\Export\CommandHandler;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Tag;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler\GetLatestTagCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Tag;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler\GetLatestTagCommandHandler;
require __DIR__ . '/../../../../bootstrap.php';
diff --git a/tests/Cases/Repository/ExportedGitRepositoryTest.phpt b/tests/Cases/Repository/ExportedGitRepositoryTest.phpt
index 66fbf97..d456dd6 100644
--- a/tests/Cases/Repository/ExportedGitRepositoryTest.phpt
+++ b/tests/Cases/Repository/ExportedGitRepositoryTest.phpt
@@ -2,20 +2,20 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Repository;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\ExportedGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\BarCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\FooCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\UnhandledCommandException;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler\ExportedFooCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler\LocalDirectoryFooCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler\BarCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Repository\ExportedGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\BarCommand;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\FooCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Exception\UnhandledCommandException;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler\ExportedFooCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler\LocalDirectoryFooCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler\BarCommandHandler;
require __DIR__ . '/../../bootstrap.php';
@@ -111,7 +111,7 @@ final class ExportedGitRepositoryTest extends TestCase
/**
* @param array $handlers
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\ExportedGitRepository
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\ExportedGitRepository
*/
private function createValidGitRepository(array $handlers) : ExportedGitRepository
{
@@ -121,7 +121,7 @@ final class ExportedGitRepositoryTest extends TestCase
/**
* @param array $handlers
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\ExportedGitRepository
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\ExportedGitRepository
*/
private function createInvalidGitRepository(array $handlers) : ExportedGitRepository
{
diff --git a/tests/Cases/Repository/LocalDirectory/CommandHandler/GetHeadCommandHandlerTest.php b/tests/Cases/Repository/LocalDirectory/CommandHandler/GetHeadCommandHandlerTest.php
index 5e20c0c..8a78019 100644
--- a/tests/Cases/Repository/LocalDirectory/CommandHandler/GetHeadCommandHandlerTest.php
+++ b/tests/Cases/Repository/LocalDirectory/CommandHandler/GetHeadCommandHandlerTest.php
@@ -2,14 +2,14 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Repository\LocalDirectory\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Repository\LocalDirectory\CommandHandler;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Head;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\GetHeadCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Head;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\GetHeadCommandHandler;
require __DIR__ . '/../../../../bootstrap.php';
diff --git a/tests/Cases/Repository/LocalDirectory/CommandHandler/GetLatestTagCommandHandlerTest.php b/tests/Cases/Repository/LocalDirectory/CommandHandler/GetLatestTagCommandHandlerTest.php
index 60ed4c6..4405894 100644
--- a/tests/Cases/Repository/LocalDirectory/CommandHandler/GetLatestTagCommandHandlerTest.php
+++ b/tests/Cases/Repository/LocalDirectory/CommandHandler/GetLatestTagCommandHandlerTest.php
@@ -2,14 +2,14 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Repository\LocalDirectory\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Repository\LocalDirectory\CommandHandler;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Entity\Tag;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetLatestTagCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\GetLatestTagCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\Entity\Tag;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetLatestTagCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\GetLatestTagCommandHandler;
require __DIR__ . '/../../../../bootstrap.php';
diff --git a/tests/Cases/Repository/LocalDirectory/GitDirectoryTest.phpt b/tests/Cases/Repository/LocalDirectory/GitDirectoryTest.phpt
index e12dc72..4f603c6 100644
--- a/tests/Cases/Repository/LocalDirectory/GitDirectoryTest.phpt
+++ b/tests/Cases/Repository/LocalDirectory/GitDirectoryTest.phpt
@@ -2,12 +2,12 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Repository\LocalDirectory;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Repository\LocalDirectory;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException;
require __DIR__ . '/../../../bootstrap.php';
diff --git a/tests/Cases/Repository/LocalGitRepositoryTest.phpt b/tests/Cases/Repository/LocalGitRepositoryTest.phpt
index 94f9c3c..4fb6139 100644
--- a/tests/Cases/Repository/LocalGitRepositoryTest.phpt
+++ b/tests/Cases/Repository/LocalGitRepositoryTest.phpt
@@ -2,18 +2,18 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Repository;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\BarCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\FooCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Command\GetHeadCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\UnhandledCommandException;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler\LocalDirectoryFooCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler\BarCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\BarCommand;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\FooCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Command\GetHeadCommand;
+use SixtyEightPublishers\TracyGitVersion\Exception\UnhandledCommandException;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler\LocalDirectoryFooCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler\BarCommandHandler;
require __DIR__ . '/../../bootstrap.php';
@@ -109,8 +109,8 @@ final class LocalGitRepositoryTest extends TestCase
/**
* @param array $handlers
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalGitRepository
- * @throws \SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\LocalGitRepository
+ * @throws \SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException
*/
private function createValidGitRepository(array $handlers) : LocalGitRepository
{
@@ -120,7 +120,7 @@ final class LocalGitRepositoryTest extends TestCase
/**
* @param array $handlers
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalGitRepository
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\LocalGitRepository
*/
private function createInvalidGitRepository(array $handlers) : LocalGitRepository
{
diff --git a/tests/Cases/Repository/ResolvableGitRepositoryTest.phpt b/tests/Cases/Repository/ResolvableGitRepositoryTest.phpt
index 30d1d3d..d5dbd4c 100644
--- a/tests/Cases/Repository/ResolvableGitRepositoryTest.phpt
+++ b/tests/Cases/Repository/ResolvableGitRepositoryTest.phpt
@@ -2,19 +2,19 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Repository;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\BarCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\FooCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\ResolvableGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\UnhandledCommandException;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\RuntimeCachedGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Repository\SimpleGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler\FooCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler\LocalDirectoryFooCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler\BarCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\BarCommand;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\FooCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\ResolvableGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Exception\UnhandledCommandException;
+use SixtyEightPublishers\TracyGitVersion\Repository\RuntimeCachedGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Repository\SimpleGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler\FooCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler\LocalDirectoryFooCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler\BarCommandHandler;
require __DIR__ . '/../../bootstrap.php';
@@ -118,7 +118,7 @@ final class ResolvableGitRepositoryTest extends TestCase
/**
* @param array $repositories
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\ResolvableGitRepository
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\ResolvableGitRepository
*/
private function createRepository(array $repositories) : ResolvableGitRepository
{
diff --git a/tests/Cases/Repository/RuntimeCachedGitRepositoryTest.phpt b/tests/Cases/Repository/RuntimeCachedGitRepositoryTest.phpt
index 5b57644..73eb8d8 100644
--- a/tests/Cases/Repository/RuntimeCachedGitRepositoryTest.phpt
+++ b/tests/Cases/Repository/RuntimeCachedGitRepositoryTest.phpt
@@ -2,17 +2,17 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Cases\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Cases\Repository;
use Tester\Assert;
use Tester\TestCase;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\BarCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\FooCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\RuntimeCachedGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Repository\SimpleGitRepository;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler\FooCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler\LocalDirectoryFooCommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler\BarCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\BarCommand;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\FooCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\RuntimeCachedGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Repository\SimpleGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler\FooCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler\LocalDirectoryFooCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler\BarCommandHandler;
require __DIR__ . '/../../bootstrap.php';
@@ -71,7 +71,7 @@ final class RuntimeCachedGitRepositoryTest extends TestCase
/**
* @param array $handlers
*
- * @return \SixtyEightPublishers\TracyGitVersionPanel\Repository\RuntimeCachedGitRepository
+ * @return \SixtyEightPublishers\TracyGitVersion\Repository\RuntimeCachedGitRepository
*/
private function createRepository(array $handlers) : RuntimeCachedGitRepository
{
diff --git a/tests/Fixtures/Command/BarCommand.php b/tests/Fixtures/Command/BarCommand.php
index 1d55671..38c61f6 100644
--- a/tests/Fixtures/Command/BarCommand.php
+++ b/tests/Fixtures/Command/BarCommand.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitCommandInterface;
final class BarCommand implements GitCommandInterface
{
diff --git a/tests/Fixtures/Command/FooCommand.php b/tests/Fixtures/Command/FooCommand.php
index ebb34fc..ef5b68e 100644
--- a/tests/Fixtures/Command/FooCommand.php
+++ b/tests/Fixtures/Command/FooCommand.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandInterface;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitCommandInterface;
final class FooCommand implements GitCommandInterface
{
diff --git a/tests/Fixtures/CommandHandler/BarCommandHandler.php b/tests/Fixtures/CommandHandler/BarCommandHandler.php
index 9f69ac7..29828b6 100644
--- a/tests/Fixtures/CommandHandler/BarCommandHandler.php
+++ b/tests/Fixtures/CommandHandler/BarCommandHandler.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\BarCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandHandlerInterface;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\BarCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitCommandHandlerInterface;
final class BarCommandHandler implements GitCommandHandlerInterface
{
public int $callingCounter = 0;
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\BarCommand $command
+ * @param \SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\BarCommand $command
*
* @return int
*/
diff --git a/tests/Fixtures/CommandHandler/ExportedFooCommandHandler.php b/tests/Fixtures/CommandHandler/ExportedFooCommandHandler.php
index 944efb7..4f60a55 100644
--- a/tests/Fixtures/CommandHandler/ExportedFooCommandHandler.php
+++ b/tests/Fixtures/CommandHandler/ExportedFooCommandHandler.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\FooCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\Export\CommandHandler\AbstractExportedCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\FooCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\Export\CommandHandler\AbstractExportedCommandHandler;
final class ExportedFooCommandHandler extends AbstractExportedCommandHandler
{
public int $callingCounter = 0;
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\FooCommand $command
+ * @param \SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\FooCommand $command
*
* @return string
*/
diff --git a/tests/Fixtures/CommandHandler/FooCommandHandler.php b/tests/Fixtures/CommandHandler/FooCommandHandler.php
index 2a89f48..71b150d 100644
--- a/tests/Fixtures/CommandHandler/FooCommandHandler.php
+++ b/tests/Fixtures/CommandHandler/FooCommandHandler.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\FooCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\GitCommandHandlerInterface;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\FooCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\GitCommandHandlerInterface;
final class FooCommandHandler implements GitCommandHandlerInterface
{
public int $callingCounter = 0;
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\FooCommand $command
+ * @param \SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\FooCommand $command
*
* @return string
*/
diff --git a/tests/Fixtures/CommandHandler/LocalDirectoryFooCommandHandler.php b/tests/Fixtures/CommandHandler/LocalDirectoryFooCommandHandler.php
index 21798ca..fe7db0f 100644
--- a/tests/Fixtures/CommandHandler/LocalDirectoryFooCommandHandler.php
+++ b/tests/Fixtures/CommandHandler/LocalDirectoryFooCommandHandler.php
@@ -2,18 +2,18 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\CommandHandler;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\CommandHandler;
-use SixtyEightPublishers\TracyGitVersionPanel\Exception\GitDirectoryException;
-use SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\FooCommand;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\CommandHandler\AbstractLocalDirectoryCommandHandler;
+use SixtyEightPublishers\TracyGitVersion\Exception\GitDirectoryException;
+use SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\FooCommand;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\CommandHandler\AbstractLocalDirectoryCommandHandler;
final class LocalDirectoryFooCommandHandler extends AbstractLocalDirectoryCommandHandler
{
public int $callingCounter = 0;
/**
- * @param \SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Command\FooCommand $command
+ * @param \SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Command\FooCommand $command
*
* @return string
*/
diff --git a/tests/Fixtures/Repository/SimpleGitRepository.php b/tests/Fixtures/Repository/SimpleGitRepository.php
index d2458ff..a6c795e 100644
--- a/tests/Fixtures/Repository/SimpleGitRepository.php
+++ b/tests/Fixtures/Repository/SimpleGitRepository.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Fixtures\Repository;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Fixtures\Repository;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\AbstractGitRepository;
+use SixtyEightPublishers\TracyGitVersion\Repository\AbstractGitRepository;
final class SimpleGitRepository extends AbstractGitRepository
{
diff --git a/tests/Helper/ContainerHelper.php b/tests/Helper/ContainerHelper.php
index edc77e1..f5fe611 100644
--- a/tests/Helper/ContainerHelper.php
+++ b/tests/Helper/ContainerHelper.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace SixtyEightPublishers\TracyGitVersionPanel\Tests\Helper;
+namespace SixtyEightPublishers\TracyGitVersion\Tests\Helper;
use Nette\DI\Container;
use Nette\Utils\Finder;
diff --git a/tests/files/export/config.php b/tests/files/export/config.php
index a859821..009c29e 100644
--- a/tests/files/export/config.php
+++ b/tests/files/export/config.php
@@ -2,8 +2,8 @@
declare(strict_types=1);
-use SixtyEightPublishers\TracyGitVersionPanel\Export\Config;
-use SixtyEightPublishers\TracyGitVersionPanel\Repository\LocalDirectory\GitDirectory;
+use SixtyEightPublishers\TracyGitVersion\Export\Config;
+use SixtyEightPublishers\TracyGitVersion\Repository\LocalDirectory\GitDirectory;
return Config::createDefault()
->setGitDirectory(GitDirectory::createFromGitDirectory(__DIR__ . '/../test-git'))
diff --git a/tracy-git-version-panel b/tracy-git-version
similarity index 88%
rename from tracy-git-version-panel
rename to tracy-git-version
index bf849da..d688f7a 100644
--- a/tracy-git-version-panel
+++ b/tracy-git-version
@@ -21,7 +21,7 @@ require_once $autoloadFile;
unset($possibleAutoloadFiles, $possibleAutoloadFile, $autoloadFile);
-use SixtyEightPublishers\TracyGitVersionPanel\Bridge\Symfony\Console\Application;
+use SixtyEightPublishers\TracyGitVersion\Bridge\Symfony\Console\Application;
$application = new Application();
$application->run();