| @@ 46-55 (lines=10) @@ | ||
| 43 | private $cacheItemPool; |
|
| 44 | private $decorated; |
|
| 45 | ||
| 46 | public function __construct(PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, RouteNameResolverInterface $routeNameResolver, RouterInterface $router, PropertyAccessorInterface $propertyAccessor = null, CacheItemPoolInterface $cacheItemPool, IriConverterInterface $decorated) |
|
| 47 | { |
|
| 48 | $this->propertyNameCollectionFactory = $propertyNameCollectionFactory; |
|
| 49 | $this->propertyMetadataFactory = $propertyMetadataFactory; |
|
| 50 | $this->routeNameResolver = $routeNameResolver; |
|
| 51 | $this->router = $router; |
|
| 52 | $this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor(); |
|
| 53 | $this->cacheItemPool = $cacheItemPool; |
|
| 54 | $this->decorated = $decorated; |
|
| 55 | } |
|
| 56 | ||
| 57 | public function getItemFromIri(string $iri, array $context = []) |
|
| 58 | { |
|
| @@ 45-53 (lines=9) @@ | ||
| 42 | private $router; |
|
| 43 | private $propertyAccessor; |
|
| 44 | ||
| 45 | public function __construct(PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, ItemDataProviderInterface $itemDataProvider, RouteNameResolverInterface $routeNameResolver, RouterInterface $router, PropertyAccessorInterface $propertyAccessor = null) |
|
| 46 | { |
|
| 47 | $this->propertyNameCollectionFactory = $propertyNameCollectionFactory; |
|
| 48 | $this->propertyMetadataFactory = $propertyMetadataFactory; |
|
| 49 | $this->itemDataProvider = $itemDataProvider; |
|
| 50 | $this->routeNameResolver = $routeNameResolver; |
|
| 51 | $this->router = $router; |
|
| 52 | $this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor(); |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * {@inheritdoc} |
|