Skip to content

Commit 7053bfb

Browse files
committed
fix: namespace
1 parent 053f648 commit 7053bfb

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/Core/Bridge/Symfony/Bundle/Resources/config/hal.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
<!-- JSON Schema -->
5959

60-
<service id="api_platform.hal.json_schema.schema_factory" class="ApiPlatform\Core\Hal\JsonSchema\SchemaFactory" decorates="api_platform.json_schema.schema_factory">
60+
<service id="api_platform.hal.json_schema.schema_factory" class="ApiPlatform\Hal\JsonSchema\SchemaFactory" decorates="api_platform.json_schema.schema_factory">
6161
<argument type="service" id="api_platform.hal.json_schema.schema_factory.inner" />
6262
</service>
6363
</services>

src/Hal/JsonSchema/SchemaFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Core\Hal\JsonSchema;
14+
namespace ApiPlatform\Hal\JsonSchema;
1515

1616
use ApiPlatform\Core\JsonSchema\Schema;
1717
use ApiPlatform\Core\JsonSchema\SchemaFactoryInterface;

tests/Core/Api/FilterCollectionFactoryTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public function testCreateFilterCollectionFromLocator()
4141
$filterLocatorProphecy->has('bar')->willReturn(false)->shouldBeCalled();
4242

4343
$filterCollection = (new FilterCollectionFactory(['foo', 'bar']))->createFilterCollectionFromLocator($filterLocatorProphecy->reveal());
44-
$this->assertArrayNotHasKey('bar', $filterCollection->getArrayCopy());
44+
45+
$this->assertArrayNotHasKey('bar', $filterCollection);
4546
$this->assertTrue(isset($filterCollection['foo']));
4647
$this->assertInstanceOf(FilterInterface::class, $filterCollection['foo']);
4748
$this->assertEquals(new FilterCollection(['foo' => $filter]), $filterCollection);

tests/Hal/JsonSchema/SchemaFactoryTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
namespace ApiPlatform\Core\Tests\Hal\JsonSchema;
1515

1616
use ApiPlatform\Core\Api\OperationType;
17-
use ApiPlatform\Core\Hal\JsonSchema\SchemaFactory;
1817
use ApiPlatform\Core\Hydra\JsonSchema\SchemaFactory as HydraSchemaFactory;
1918
use ApiPlatform\Core\JsonSchema\Schema;
2019
use ApiPlatform\Core\JsonSchema\SchemaFactory as BaseSchemaFactory;
@@ -24,8 +23,9 @@
2423
use ApiPlatform\Core\Metadata\Property\PropertyNameCollection;
2524
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
2625
use ApiPlatform\Core\Metadata\Resource\ResourceMetadata;
27-
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\Dummy;
2826
use ApiPlatform\Core\Tests\ProphecyTrait;
27+
use ApiPlatform\Hal\JsonSchema\SchemaFactory;
28+
use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Dummy;
2929
use PHPUnit\Framework\TestCase;
3030

3131
class SchemaFactoryTest extends TestCase

0 commit comments

Comments
 (0)