Skip to content

Commit 6a63d21

Browse files
author
abluchet
committed
Rename EagerLoadingTrait
1 parent f69d00c commit 6a63d21

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Bridge/Doctrine/Orm/Extension/EagerLoadingExtension.php

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

1414
namespace ApiPlatform\Core\Bridge\Doctrine\Orm\Extension;
1515

16+
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\EagerLoadingTrait;
1617
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
17-
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\ShouldEagerLoad;
1818
use ApiPlatform\Core\Exception\PropertyNotFoundException;
1919
use ApiPlatform\Core\Exception\ResourceClassNotFoundException;
2020
use ApiPlatform\Core\Exception\RuntimeException;
@@ -36,7 +36,7 @@
3636
*/
3737
final class EagerLoadingExtension implements QueryCollectionExtensionInterface, QueryItemExtensionInterface
3838
{
39-
use ShouldEagerLoad;
39+
use EagerLoadingTrait;
4040

4141
private $propertyNameCollectionFactory;
4242
private $propertyMetadataFactory;

src/Bridge/Doctrine/Orm/Extension/FilterEagerLoadingExtension.php

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

1414
namespace ApiPlatform\Core\Bridge\Doctrine\Orm\Extension;
1515

16+
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\EagerLoadingTrait;
1617
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
17-
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\ShouldEagerLoad;
1818
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
1919
use Doctrine\ORM\Query\Expr\Join;
2020
use Doctrine\ORM\QueryBuilder;
@@ -25,7 +25,7 @@
2525
*/
2626
final class FilterEagerLoadingExtension implements QueryCollectionExtensionInterface
2727
{
28-
use ShouldEagerLoad;
28+
use EagerLoadingTrait;
2929

3030
public function __construct(ResourceMetadataFactoryInterface $resourceMetadataFactory, $forceEager = true)
3131
{

src/Bridge/Doctrine/Orm/Util/ShouldEagerLoad.php renamed to src/Bridge/Doctrine/Orm/Util/EagerLoadingTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* @internal
2323
*/
24-
trait ShouldEagerLoad
24+
trait EagerLoadingTrait
2525
{
2626
private $forceEager;
2727
private $resourceMetadataFactory;

0 commit comments

Comments
 (0)