Skip to content

Commit

Permalink
Replace RootClass by Outside
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed May 28, 2013
1 parent bd810ed commit eb189c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ZfrRest/Resource/Metadata/Driver/AnnotationDriver.php
Expand Up @@ -107,7 +107,7 @@ public function loadMetadataForClass(ReflectionClass $class)
$resourceAssociationMetadata = $this
->resourceMetadataFactory
->getMetadataForClass($targetClass)
->getRootClassMetadata();
->getOutsideClassMetadata();

$this->processMetadata($resourceAssociationMetadata, $propertyAnnotations);
$resourceMetadata->associations[$associationName] = $resourceAssociationMetadata;
Expand Down
2 changes: 1 addition & 1 deletion src/ZfrRest/Resource/Metadata/Driver/PhpDriver.php
Expand Up @@ -87,7 +87,7 @@ protected function loadMetadataFromFile(ReflectionClass $class, $file)
$resourceAssociationMetadata = $this
->resourceMetadataFactory
->getMetadataForClass($targetClass)
->getRootClassMetadata();
->getOutsideClassMetadata();

$this->processMetadata($resourceAssociationMetadata, $associationConfig);
$resourceMetadata->associations[$associationName] = $resourceAssociationMetadata;
Expand Down
Expand Up @@ -31,7 +31,7 @@ public function testExtractAnnotation()
/** @var \ZfrRest\Resource\Metadata\ResourceMetadataInterface $resourceMetadata */
$resourceMetadata = $resourceMetadataFactory
->getMetadataForClass('ZfrRestTest\Asset\Annotation\User')
->getRootClassMetadata();
->getOutsideClassMetadata();

$this->assertEquals('ZfrRestTest\Asset\Annotation\User', $resourceMetadata->getClassName());
$this->assertEquals('ZfrRestTest\Asset\Controller\UserController', $resourceMetadata->getControllerName());
Expand Down

0 comments on commit eb189c4

Please sign in to comment.