Skip to content

Commit dc87c57

Browse files
committed
Move types and builders to the standard platform namespace
1 parent f0f2f2b commit dc87c57

File tree

95 files changed

+163
-160
lines changed

Some content is hidden

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

95 files changed

+163
-160
lines changed

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

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

55
use TypeLang\Mapper\Exception\Mapping\InvalidValueException;
66
use TypeLang\Mapper\Mapper;
7-
use TypeLang\Mapper\Platform\Builder\SimpleTypeBuilder;
87
use TypeLang\Mapper\Platform\DelegatePlatform;
8+
use TypeLang\Mapper\Platform\Standard\Builder\SimpleTypeBuilder;
9+
use TypeLang\Mapper\Platform\Standard\Type\TypeInterface;
910
use TypeLang\Mapper\Platform\StandardPlatform;
10-
use TypeLang\Mapper\Platform\Type\TypeInterface;
1111
use TypeLang\Mapper\Runtime\Context;
1212

1313
require __DIR__ . '/../../vendor/autoload.php';

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

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

55
use TypeLang\Mapper\Exception\Mapping\InvalidValueException;
66
use TypeLang\Mapper\Mapper;
7-
use TypeLang\Mapper\Platform\Builder\Builder;
87
use TypeLang\Mapper\Platform\DelegatePlatform;
8+
use TypeLang\Mapper\Platform\Standard\Builder\Builder;
9+
use TypeLang\Mapper\Platform\Standard\Type\TypeInterface;
910
use TypeLang\Mapper\Platform\StandardPlatform;
10-
use TypeLang\Mapper\Platform\Type\TypeInterface;
1111
use TypeLang\Mapper\Runtime\Context;
1212
use TypeLang\Mapper\Runtime\Parser\TypeParserInterface;
1313
use TypeLang\Mapper\Runtime\Repository\TypeRepositoryInterface;

example/03.types/04.custom-platform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
declare(strict_types=1);
44

55
use TypeLang\Mapper\Mapper;
6-
use TypeLang\Mapper\Platform\Builder\ClassTypeBuilder;
76
use TypeLang\Mapper\Platform\GrammarFeature;
87
use TypeLang\Mapper\Platform\PlatformInterface;
8+
use TypeLang\Mapper\Platform\Standard\Builder\ClassTypeBuilder;
99

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
use Psr\Container\ContainerInterface;
66
use TypeLang\Mapper\Exception\Mapping\InvalidValueException;
77
use TypeLang\Mapper\Mapper;
8-
use TypeLang\Mapper\Platform\Builder\CallableTypeBuilder;
98
use TypeLang\Mapper\Platform\DelegatePlatform;
9+
use TypeLang\Mapper\Platform\Standard\Builder\CallableTypeBuilder;
10+
use TypeLang\Mapper\Platform\Standard\Type\TypeInterface;
1011
use TypeLang\Mapper\Platform\StandardPlatform;
11-
use TypeLang\Mapper\Platform\Type\TypeInterface;
1212
use TypeLang\Mapper\Runtime\Context;
1313

1414
require __DIR__ . '/../../vendor/autoload.php';

example/03.types/06.custom-type-psr-container.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
use Psr\Container\ContainerInterface;
66
use TypeLang\Mapper\Exception\Mapping\InvalidValueException;
77
use TypeLang\Mapper\Mapper;
8-
use TypeLang\Mapper\Platform\Builder\PsrContainerTypeBuilder;
98
use TypeLang\Mapper\Platform\DelegatePlatform;
9+
use TypeLang\Mapper\Platform\Standard\Builder\PsrContainerTypeBuilder;
10+
use TypeLang\Mapper\Platform\Standard\Type\TypeInterface;
1011
use TypeLang\Mapper\Platform\StandardPlatform;
11-
use TypeLang\Mapper\Platform\Type\TypeInterface;
1212
use TypeLang\Mapper\Runtime\Context;
1313

1414
require __DIR__ . '/../../vendor/autoload.php';

src/Mapper.php

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

77
use TypeLang\Mapper\Exception\Definition\TypeNotFoundException;
88
use TypeLang\Mapper\Platform\PlatformInterface;
9+
use TypeLang\Mapper\Platform\Standard\Type\TypeInterface;
910
use TypeLang\Mapper\Platform\StandardPlatform;
10-
use TypeLang\Mapper\Platform\Type\TypeInterface;
1111
use TypeLang\Mapper\Runtime\Configuration;
1212
use TypeLang\Mapper\Runtime\Context\RootContext;
1313
use TypeLang\Mapper\Runtime\Parser\InMemoryTypeParser;

src/Mapping/Metadata/TypeMetadata.php

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

55
namespace TypeLang\Mapper\Mapping\Metadata;
66

7-
use TypeLang\Mapper\Platform\Type\TypeInterface;
7+
use TypeLang\Mapper\Platform\Standard\Type\TypeInterface;
88
use TypeLang\Parser\Node\Stmt\TypeStatement;
99

1010
final class TypeMetadata extends Metadata

src/Platform/DelegatePlatform.php

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

55
namespace TypeLang\Mapper\Platform;
66

7-
use TypeLang\Mapper\Platform\Builder\TypeBuilderInterface;
8-
use TypeLang\Mapper\Platform\Type\TypeInterface;
7+
use TypeLang\Mapper\Platform\Standard\Builder\TypeBuilderInterface;
8+
use TypeLang\Mapper\Platform\Standard\Type\TypeInterface;
99
use TypeLang\Parser\Node\Stmt\TypeStatement;
1010

1111
final class DelegatePlatform implements PlatformInterface

src/Platform/PlatformInterface.php

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

55
namespace TypeLang\Mapper\Platform;
66

7-
use TypeLang\Mapper\Platform\Builder\TypeBuilderInterface;
8-
use TypeLang\Mapper\Platform\Type\TypeInterface;
7+
use TypeLang\Mapper\Platform\Standard\Builder\TypeBuilderInterface;
8+
use TypeLang\Mapper\Platform\Standard\Type\TypeInterface;
99
use TypeLang\Parser\Node\Stmt\TypeStatement;
1010

1111
interface PlatformInterface

src/Platform/Builder/ArrayTypeBuilder.php renamed to src/Platform/Standard/Builder/ArrayTypeBuilder.php

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

33
declare(strict_types=1);
44

5-
namespace TypeLang\Mapper\Platform\Builder;
5+
namespace TypeLang\Mapper\Platform\Standard\Builder;
66

77
use TypeLang\Mapper\Exception\Definition\Shape\ShapeFieldsNotSupportedException;
88
use TypeLang\Mapper\Exception\Definition\Template\Hint\TemplateArgumentHintsNotSupportedException;
99
use TypeLang\Mapper\Exception\Definition\Template\TooManyTemplateArgumentsException;
1010
use TypeLang\Mapper\Exception\Definition\TypeNotFoundException;
11-
use TypeLang\Mapper\Platform\Type\ArrayType;
11+
use TypeLang\Mapper\Platform\Standard\Type\ArrayType;
1212
use TypeLang\Mapper\Runtime\Parser\TypeParserInterface;
1313
use TypeLang\Mapper\Runtime\Repository\TypeRepositoryInterface;
1414
use TypeLang\Parser\Node\Stmt\NamedTypeNode;

0 commit comments

Comments
 (0)