move objects to use ValueObject namespace

This commit is contained in:
Tomas Votruba 2019-08-24 13:17:36 +02:00
parent 5183a51f6b
commit 02dd74a3ab
12 changed files with 13 additions and 10 deletions

View File

@ -6,4 +6,4 @@ services:
Rector\Utils\DocumentationGenerator\:
resource: '../src'
exclude: '../src/{Exception,Configuration/Configuration.php,Node/*Info.php}'
exclude: '../src/ValueObject/*'

View File

@ -98,8 +98,8 @@ use Rector\Exception\ShouldNotHappenException;
use Rector\PhpParser\Printer\BetterStandardPrinter;
use Rector\Utils\DocumentationGenerator\Contract\OutputFormatter\DumpNodesOutputFormatterInterface;
use Rector\Utils\DocumentationGenerator\Node\NodeClassProvider;
use Rector\Utils\DocumentationGenerator\Node\NodeInfo;
use Rector\Utils\DocumentationGenerator\Node\NodeInfoResult;
use Rector\Utils\DocumentationGenerator\ValueObject\NodeInfo;
use ReflectionClass;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;

View File

@ -2,6 +2,8 @@
namespace Rector\Utils\DocumentationGenerator\Node;
use Rector\Utils\DocumentationGenerator\ValueObject\NodeInfo;
final class NodeInfoResult
{
/**

View File

@ -3,8 +3,8 @@
namespace Rector\Utils\DocumentationGenerator\OutputFormatter\DumpNodes;
use Rector\Utils\DocumentationGenerator\Contract\OutputFormatter\DumpNodesOutputFormatterInterface;
use Rector\Utils\DocumentationGenerator\Node\NodeInfo;
use Rector\Utils\DocumentationGenerator\Node\NodeInfoResult;
use Rector\Utils\DocumentationGenerator\ValueObject\NodeInfo;
use Symfony\Component\Console\Style\SymfonyStyle;
final class ConsoleDumpNodesOutputFormatter implements DumpNodesOutputFormatterInterface

View File

@ -4,8 +4,8 @@ namespace Rector\Utils\DocumentationGenerator\OutputFormatter\DumpNodes;
use Nette\Utils\Json;
use Rector\Utils\DocumentationGenerator\Contract\OutputFormatter\DumpNodesOutputFormatterInterface;
use Rector\Utils\DocumentationGenerator\Node\NodeInfo;
use Rector\Utils\DocumentationGenerator\Node\NodeInfoResult;
use Rector\Utils\DocumentationGenerator\ValueObject\NodeInfo;
final class JsonDumpNodesOutputFormatter implements DumpNodesOutputFormatterInterface
{

View File

@ -3,8 +3,8 @@
namespace Rector\Utils\DocumentationGenerator\OutputFormatter\DumpNodes;
use Rector\Utils\DocumentationGenerator\Contract\OutputFormatter\DumpNodesOutputFormatterInterface;
use Rector\Utils\DocumentationGenerator\Node\NodeInfo;
use Rector\Utils\DocumentationGenerator\Node\NodeInfoResult;
use Rector\Utils\DocumentationGenerator\ValueObject\NodeInfo;
use Symfony\Component\Console\Style\SymfonyStyle;
final class MarkdownDumpNodesOutputFormatter implements DumpNodesOutputFormatterInterface

View File

@ -1,6 +1,6 @@
<?php declare(strict_types=1);
namespace Rector\Utils\DocumentationGenerator\Node;
namespace Rector\Utils\DocumentationGenerator\ValueObject;
final class NodeInfo
{

View File

@ -6,4 +6,4 @@ services:
Rector\Utils\RectorGenerator\:
resource: '../src'
exclude: '../src/{Exception,Configuration/Configuration.php}'
exclude: '../src/{Exception/*,ValueObject/*}'

View File

@ -5,10 +5,10 @@ namespace Rector\Utils\RectorGenerator\Command;
use Nette\Utils\FileSystem;
use Nette\Utils\Json;
use Nette\Utils\Strings;
use Rector\Utils\RectorGenerator\Configuration\Configuration;
use Rector\Utils\RectorGenerator\Configuration\ConfigurationFactory;
use Rector\Utils\RectorGenerator\Contract\ContributorCommandInterface;
use Rector\Utils\RectorGenerator\TemplateVariablesFactory;
use Rector\Utils\RectorGenerator\ValueObject\Configuration;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

View File

@ -7,6 +7,7 @@ use PhpParser\Node;
use Rector\Exception\FileSystem\FileNotFoundException;
use Rector\Utils\RectorGenerator\Exception\ConfigurationException;
use Rector\Utils\RectorGenerator\Node\NodeClassProvider;
use Rector\Utils\RectorGenerator\ValueObject\Configuration;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
use Symfony\Component\Yaml\Yaml;

View File

@ -8,7 +8,7 @@ use PhpParser\Node\Expr\ArrayItem;
use PhpParser\Node\Expr\ClassConstFetch;
use PhpParser\Node\Name\FullyQualified;
use Rector\PhpParser\Printer\BetterStandardPrinter;
use Rector\Utils\RectorGenerator\Configuration\Configuration;
use Rector\Utils\RectorGenerator\ValueObject\Configuration;
final class TemplateVariablesFactory
{

View File

@ -1,6 +1,6 @@
<?php declare(strict_types=1);
namespace Rector\Utils\RectorGenerator\Configuration;
namespace Rector\Utils\RectorGenerator\ValueObject;
use Nette\Utils\Strings;