Skip to content

Commit

Permalink
Merge pull request #316 from Scalesoft/feature/annotation-extension-name
Browse files Browse the repository at this point in the history
Add auto search for annotation extension name
  • Loading branch information
enumag authored Jan 15, 2018
2 parents 6adb732 + 017b50a commit d14c0b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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 @@ -623,7 +623,7 @@ protected function processMetadataDriver(Nette\DI\ServiceDefinition $metadataDri

if ($impl === self::ANNOTATION_DRIVER) {
$driver->arguments = [
'@' . self::ANNOTATION_DRIVER . '.reader',
'@' . Doctrine\Common\Annotations\Reader::class,
Nette\Utils\Arrays::flatten($driver->arguments)
];
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console:
kdyby.console:
disabled: true

kdyby.doctrine:
Expand Down
8 changes: 4 additions & 4 deletions tests/KdybyTests/nette-reset.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ php:


extensions:
events: Kdyby\Events\DI\EventsExtension
console: Kdyby\Console\DI\ConsoleExtension
annotations: Kdyby\Annotations\DI\AnnotationsExtension
kdyby.events: Kdyby\Events\DI\EventsExtension
kdyby.console: Kdyby\Console\DI\ConsoleExtension
kdyby.annotations: Kdyby\Annotations\DI\AnnotationsExtension
kdyby.doctrine: Kdyby\Doctrine\DI\OrmExtension


Expand All @@ -16,7 +16,7 @@ kdyby.doctrine:
hydrationCache: array


console:
kdyby.console:
url: http://www.kdyby.org/


Expand Down

0 comments on commit d14c0b0

Please sign in to comment.