Skip to content

Commit

Permalink
DI - changed expand method to deprecated version
Browse files Browse the repository at this point in the history
test - removed config comment
  • Loading branch information
janatjak committed Jan 18, 2018
1 parent 8734376 commit f370e4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Kdyby/Doctrine/DI/OrmExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ protected function processEntityManager($name, array $defaults)
$metadataDriver->addSetup('setDefaultDriver', [
new Statement($this->metadataDriverClasses[self::ANNOTATION_DRIVER], [
'@' . Doctrine\Common\Annotations\Reader::class,
[Nette\DI\Helpers::expand('%appDir%', $builder->parameters)]
[$builder->expand('%appDir%')]
])
]);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/KdybyTests/Doctrine/config/metadata-empty.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
appDir: %wwwDir%/Doctrine/models2 # appDir replacing required - AnnotationDriver::getAllClassNames() require problem
appDir: %wwwDir%/Doctrine/models2

kdyby.doctrine:
driver: pdo_sqlite
Expand Down

0 comments on commit f370e4f

Please sign in to comment.