Commit 7b236557 authored by Guillaume Perréal's avatar Guillaume Perréal

CS.

parent 0168fd0c
......@@ -31,7 +31,6 @@ use ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface;
use ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface;
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
use ApiPlatform\Core\Metadata\Resource\ResourceMetadata as APIResourceMetadata;
use ApiPlatform\Core\PathResolver\OperationPathResolverInterface;
use Assert\Assertion;
use Doctrine\Common\Inflector\Inflector;
use Irstea\NgModelGeneratorBundle\Models\ClassName;
......@@ -65,9 +64,6 @@ final class MetadataFactory implements MetadataFactoryInterface
/** @var OperationMethodResolverInterface */
private $operationMethodResolver;
/** @var OperationPathResolverInterface */
private $operationPathResolver;
/** @var ContainerInterface */
private $filterLocator;
......@@ -460,11 +456,9 @@ final class MetadataFactory implements MetadataFactoryInterface
$properties[$propertyName] = $property;
if ($property->isEmbedded()) {
$type = $property->getLeafType();
if ($type) {
$className = $type->getClassName();
if ($className) {
$queue[] = PHPClass::get($className);
}
$className = $type->getClassName();
if ($className) {
$queue[] = PHPClass::get($className);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment