Skip to content

Commit bfc31ce

Browse files
committed
Util classes
1 parent 681a790 commit bfc31ce

File tree

126 files changed

+163
-164
lines changed

Some content is hidden

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

126 files changed

+163
-164
lines changed

src/Action/ExceptionAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
namespace ApiPlatform\Action;
1515

1616
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
17-
use ApiPlatform\Core\Util\ErrorFormatGuesser;
18-
use ApiPlatform\Core\Util\RequestAttributesExtractor;
1917
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
18+
use ApiPlatform\Util\ErrorFormatGuesser;
2019
use ApiPlatform\Util\OperationRequestInitiatorTrait;
20+
use ApiPlatform\Util\RequestAttributesExtractor;
2121
use Symfony\Component\Debug\Exception\FlattenException as LegacyFlattenException;
2222
use Symfony\Component\ErrorHandler\Exception\FlattenException;
2323
use Symfony\Component\HttpFoundation\Request;

src/Api/IdentifiersExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
use ApiPlatform\Core\Identifier\CompositeIdentifierParser;
1818
use ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface;
1919
use ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface;
20-
use ApiPlatform\Core\Util\ResourceClassInfoTrait;
2120
use ApiPlatform\Exception\RuntimeException;
2221
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
22+
use ApiPlatform\Util\ResourceClassInfoTrait;
2323
use Symfony\Component\PropertyAccess\PropertyAccess;
2424
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
2525

src/Core/Annotation/AttributesHydratorTrait.php

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

1414
namespace ApiPlatform\Core\Annotation;
1515

16-
use ApiPlatform\Core\Util\Inflector;
1716
use ApiPlatform\Exception\InvalidArgumentException;
17+
use ApiPlatform\Util\Inflector;
1818

1919
/**
2020
* Hydrates attributes from annotation's parameters.

src/Core/Api/CachedIdentifiersExtractor.php

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

1414
namespace ApiPlatform\Core\Api;
1515

16-
use ApiPlatform\Core\Util\ResourceClassInfoTrait;
16+
use ApiPlatform\Util\ResourceClassInfoTrait;
1717
use Psr\Cache\CacheException;
1818
use Psr\Cache\CacheItemPoolInterface;
1919
use Symfony\Component\PropertyAccess\PropertyAccess;

src/Core/Api/IdentifiersExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
use ApiPlatform\Api\IdentifiersExtractor as NewIdentifiersExtractor;
1717
use ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface;
1818
use ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface;
19-
use ApiPlatform\Core\Util\ResourceClassInfoTrait;
2019
use ApiPlatform\Exception\RuntimeException;
20+
use ApiPlatform\Util\ResourceClassInfoTrait;
2121
use Symfony\Component\PropertyAccess\PropertyAccess;
2222
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
2323

src/Core/Api/ResourceClassResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
namespace ApiPlatform\Core\Api;
1515

1616
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface;
17-
use ApiPlatform\Core\Util\ClassInfoTrait;
1817
use ApiPlatform\Exception\InvalidArgumentException;
18+
use ApiPlatform\Util\ClassInfoTrait;
1919

2020
/**
2121
* {@inheritdoc}

src/Core/Bridge/Doctrine/Common/DataPersister.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace ApiPlatform\Core\Bridge\Doctrine\Common;
1515

1616
use ApiPlatform\Core\DataPersister\ContextAwareDataPersisterInterface;
17-
use ApiPlatform\Core\Util\ClassInfoTrait;
17+
use ApiPlatform\Util\ClassInfoTrait;
1818
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
1919
use Doctrine\ORM\Mapping\ClassMetadataInfo;
2020
use Doctrine\Persistence\ManagerRegistry;

src/Core/Bridge/Doctrine/EventListener/PublishMercureUpdatesListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
use ApiPlatform\Core\Api\ResourceClassResolverInterface;
1818
use ApiPlatform\Core\Api\UrlGeneratorInterface;
1919
use ApiPlatform\Core\Bridge\Symfony\Messenger\DispatchTrait;
20-
use ApiPlatform\Core\Util\ResourceClassInfoTrait;
2120
use ApiPlatform\Exception\InvalidArgumentException;
2221
use ApiPlatform\Exception\OperationNotFoundException;
2322
use ApiPlatform\Exception\RuntimeException;
2423
use ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface as GraphQlMercureSubscriptionIriGeneratorInterface;
2524
use ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface as GraphQlSubscriptionManagerInterface;
2625
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
26+
use ApiPlatform\Util\ResourceClassInfoTrait;
2727
use Doctrine\Common\EventArgs;
2828
use Doctrine\ODM\MongoDB\Event\OnFlushEventArgs as MongoDbOdmOnFlushEventArgs;
2929
use Doctrine\ORM\Event\OnFlushEventArgs as OrmOnFlushEventArgs;

src/Core/Bridge/Doctrine/MongoDbOdm/Filter/DateFilter.php

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

1414
namespace ApiPlatform\Core\Bridge\Doctrine\MongoDbOdm\Filter;
1515

16-
use ApiPlatform\Core\Bridge\Doctrine\Common\Filter\DateFilterInterface;
1716
use ApiPlatform\Bridge\Doctrine\Common\Filter\DateFilterTrait;
17+
use ApiPlatform\Core\Bridge\Doctrine\Common\Filter\DateFilterInterface;
1818
use ApiPlatform\Exception\InvalidArgumentException;
1919
use Doctrine\ODM\MongoDB\Aggregation\Builder;
2020
use Doctrine\ODM\MongoDB\Types\Type as MongoDbType;

src/Core/Bridge/Doctrine/MongoDbOdm/Filter/ExistsFilter.php

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

1414
namespace ApiPlatform\Core\Bridge\Doctrine\MongoDbOdm\Filter;
1515

16-
use ApiPlatform\Core\Bridge\Doctrine\Common\Filter\ExistsFilterInterface;
1716
use ApiPlatform\Bridge\Doctrine\Common\Filter\ExistsFilterTrait;
17+
use ApiPlatform\Core\Bridge\Doctrine\Common\Filter\ExistsFilterInterface;
1818
use Doctrine\ODM\MongoDB\Aggregation\Builder;
1919
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
2020
use Doctrine\Persistence\ManagerRegistry;

0 commit comments

Comments
 (0)