Skip to content

Commit 06a94e3

Browse files
committed
Move properties in IdentifierManagerTrait and fix CS.
1 parent 225a861 commit 06a94e3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/Bridge/Doctrine/Orm/ItemDataProvider.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@
3232
*/
3333
class ItemDataProvider implements ItemDataProviderInterface
3434
{
35+
use IdentifierManagerTrait;
36+
3537
private $managerRegistry;
36-
private $propertyNameCollectionFactory;
37-
private $propertyMetadataFactory;
3838
private $itemExtensions;
3939

40-
use IdentifierManagerTrait;
41-
4240
/**
43-
* @param ManagerRegistry $managerRegistry
44-
* @param IdentifierManagerInterface $identifierManager
45-
* @param QueryItemExtensionInterface[] $itemExtensions
41+
* @param ManagerRegistry $managerRegistry
42+
* @param PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory
43+
* @param PropertyMetadataFactoryInterface $propertyMetadataFactory
44+
* @param QueryItemExtensionInterface[] $itemExtensions
4645
*/
4746
public function __construct(ManagerRegistry $managerRegistry, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, array $itemExtensions = [])
4847
{

src/Bridge/Doctrine/Orm/Util/IdentifierManagerTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*/
2020
trait IdentifierManagerTrait
2121
{
22+
private $propertyNameCollectionFactory;
23+
private $propertyMetadataFactory;
24+
2225
/**
2326
* Transform and check the identifier, composite or not.
2427
*

tests/Bridge/Doctrine/Util/IdentifierManagerTraitTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
class IdentifierManagerTraitImpl
2424
{
2525
use IdentifierManagerTrait;
26-
private $propertyNameCollectionFactory;
27-
private $propertyMetadataFactory;
2826

2927
public function __construct(PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory)
3028
{

0 commit comments

Comments
 (0)