Skip to content

Commit f23f146

Browse files
committed
Reorganize directories
1 parent e09fe6f commit f23f146

File tree

152 files changed

+270
-272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+270
-272
lines changed

bench/src/Extractor/NativeExtractorBench.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use PhpBench\Attributes\Iterations;
99
use PhpBench\Attributes\Revs;
1010
use PhpBench\Attributes\Warmup;
11-
use TypeLang\Mapper\Runtime\Extractor\NativeTypeExtractor;
11+
use TypeLang\Mapper\Type\Extractor\NativeTypeExtractor;
1212

1313
#[Revs(50), Warmup(5), Iterations(20), BeforeMethods('prepare')]
1414
final class NativeExtractorBench extends ExtractorBenchmark

bench/src/Instantiator/ReflectionInstantiatorBench.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use PhpBench\Attributes\Revs;
1010
use PhpBench\Attributes\Warmup;
1111
use TypeLang\Mapper\Bench\Stub\ExampleRequestDTO;
12-
use TypeLang\Mapper\Runtime\ClassInstantiator\ReflectionClassInstantiator;
12+
use TypeLang\Mapper\Instantiator\ReflectionClassInstantiator;
1313

1414
#[Revs(50), Warmup(5), Iterations(20), BeforeMethods('prepare')]
1515
final class ReflectionInstantiatorBench extends InstantiatorBenchmark

example/01.normalization/08.object-output-normalization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
declare(strict_types=1);
44

5+
use TypeLang\Mapper\Configuration;
56
use TypeLang\Mapper\Mapper;
6-
use TypeLang\Mapper\Runtime\Configuration;
77

88
require __DIR__ . '/../../vendor/autoload.php';
99

example/02.errors/01.custom-type-printer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
use TypeLang\Mapper\Exception\Mapping\RuntimeException;
5+
use TypeLang\Mapper\Exception\Runtime\RuntimeException;
66
use TypeLang\Mapper\Mapper;
77
use TypeLang\Mapper\Mapping\MapType;
88

example/02.errors/02.extended-type-printer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
use TypeLang\Mapper\Exception\Mapping\RuntimeException;
5+
use TypeLang\Mapper\Exception\Runtime\RuntimeException;
66
use TypeLang\Mapper\Mapper;
77
use TypeLang\Mapper\Mapping\MapType;
88
use TypeLang\Parser\Node\Stmt\NamedTypeNode;

example/02.errors/03.custom-value-printer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
use TypeLang\Mapper\Exception\Mapping\RuntimeException;
5+
use TypeLang\Mapper\Exception\Runtime\RuntimeException;
6+
use TypeLang\Mapper\Exception\Value\PHPValuePrinter;
7+
use TypeLang\Mapper\Exception\Value\SymfonyValuePrinter;
68
use TypeLang\Mapper\Mapper;
79
use TypeLang\Mapper\Mapping\MapType;
8-
use TypeLang\Mapper\Runtime\Value\PHPValuePrinter;
9-
use TypeLang\Mapper\Runtime\Value\SymfonyValuePrinter;
1010

1111
require __DIR__ . '/../../vendor/autoload.php';
1212

example/02.errors/04.custom-path-printer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
use TypeLang\Mapper\Exception\Mapping\RuntimeException;
6-
use TypeLang\Mapper\Mapper;
7-
use TypeLang\Mapper\Mapping\MapType;
85
use TypeLang\Mapper\Context\Path\PathInterface;
96
use TypeLang\Mapper\Context\Path\Printer\PathPrinterInterface;
7+
use TypeLang\Mapper\Exception\Runtime\RuntimeException;
8+
use TypeLang\Mapper\Mapper;
9+
use TypeLang\Mapper\Mapping\MapType;
1010

1111
require __DIR__ . '/../../vendor/autoload.php';
1212

example/03.types/02.custom-type.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
use TypeLang\Mapper\Exception\Mapping\InvalidValueException;
5+
use TypeLang\Mapper\Context\Context;
6+
use TypeLang\Mapper\Exception\Runtime\InvalidValueException;
67
use TypeLang\Mapper\Mapper;
78
use TypeLang\Mapper\Platform\DelegatePlatform;
89
use TypeLang\Mapper\Platform\StandardPlatform;
9-
use TypeLang\Mapper\Context\Context;
1010
use TypeLang\Mapper\Type\Builder\SimpleTypeBuilder;
1111
use TypeLang\Mapper\Type\TypeInterface;
1212

example/03.types/03.custom-type-template-arguments.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
declare(strict_types=1);
44

5-
use TypeLang\Mapper\Exception\Mapping\InvalidValueException;
5+
use TypeLang\Mapper\Context\Context;
6+
use TypeLang\Mapper\Exception\Runtime\InvalidValueException;
67
use TypeLang\Mapper\Mapper;
78
use TypeLang\Mapper\Platform\DelegatePlatform;
89
use TypeLang\Mapper\Platform\StandardPlatform;
9-
use TypeLang\Mapper\Context\Context;
10-
use TypeLang\Mapper\Runtime\Parser\TypeParserInterface;
11-
use TypeLang\Mapper\Runtime\Repository\TypeRepositoryInterface;
1210
use TypeLang\Mapper\Type\Builder\Builder;
11+
use TypeLang\Mapper\Type\Parser\TypeParserInterface;
12+
use TypeLang\Mapper\Type\Repository\TypeRepositoryInterface;
1313
use TypeLang\Mapper\Type\TypeInterface;
1414
use TypeLang\Parser\Node\Stmt\NamedTypeNode;
1515
use TypeLang\Parser\Node\Stmt\TypeStatement;

example/03.types/05.custom-type-callable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
declare(strict_types=1);
44

55
use Psr\Container\ContainerInterface;
6-
use TypeLang\Mapper\Exception\Mapping\InvalidValueException;
6+
use TypeLang\Mapper\Context\Context;
7+
use TypeLang\Mapper\Exception\Runtime\InvalidValueException;
78
use TypeLang\Mapper\Mapper;
89
use TypeLang\Mapper\Platform\DelegatePlatform;
910
use TypeLang\Mapper\Platform\StandardPlatform;
10-
use TypeLang\Mapper\Context\Context;
1111
use TypeLang\Mapper\Type\Builder\CallableTypeBuilder;
1212
use TypeLang\Mapper\Type\TypeInterface;
1313

0 commit comments

Comments
 (0)