mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-30 06:33:31 +00:00
move objects to use ValueObject namespace
This commit is contained in:
parent
5183a51f6b
commit
02dd74a3ab
|
@ -6,4 +6,4 @@ services:
|
|||
|
||||
Rector\Utils\DocumentationGenerator\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Exception,Configuration/Configuration.php,Node/*Info.php}'
|
||||
exclude: '../src/ValueObject/*'
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
namespace Rector\Utils\DocumentationGenerator\Node;
|
||||
|
||||
use Rector\Utils\DocumentationGenerator\ValueObject\NodeInfo;
|
||||
|
||||
final class NodeInfoResult
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Rector\Utils\DocumentationGenerator\Node;
|
||||
namespace Rector\Utils\DocumentationGenerator\ValueObject;
|
||||
|
||||
final class NodeInfo
|
||||
{
|
|
@ -6,4 +6,4 @@ services:
|
|||
|
||||
Rector\Utils\RectorGenerator\:
|
||||
resource: '../src'
|
||||
exclude: '../src/{Exception,Configuration/Configuration.php}'
|
||||
exclude: '../src/{Exception/*,ValueObject/*}'
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Rector\Utils\RectorGenerator\Configuration;
|
||||
namespace Rector\Utils\RectorGenerator\ValueObject;
|
||||
|
||||
use Nette\Utils\Strings;
|
||||
|
Loading…
Reference in New Issue
Block a user