Skip to content

Commit

Permalink
remove entities
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayIterator committed Oct 15, 2023
1 parent ad458e4 commit 372c065
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,9 @@ protected function doInit(): void
}
}

$this->doRegisterEntities();
$this->doFilterPath();
}

/**
* Register entities
* @return void
*/
private function doRegisterEntities(): void
{
$metadata = ContainerHelper::use(Connection::class, $this->getContainer())
?->getDefaultConfiguration()
->getMetadataDriverImpl();
if ($metadata instanceof AttributeDriver) {
$metadata->addPaths([
__DIR__ . '/Entities'
]);
}
}

public function getRequest(): ?ServerRequestInterface
{
return $this->request;
Expand Down

0 comments on commit 372c065

Please sign in to comment.