Skip to content

Commit

Permalink
ApplicationExtension: fixed scanDir! & compatibility with nette/schem…
Browse files Browse the repository at this point in the history
…a 2 [Closes #257]
  • Loading branch information
dg committed Dec 17, 2020
1 parent 0ee270d commit f8892db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"conflict": {
"nette/di": "<3.0-stable",
"nette/forms": "<3.0",
"nette/schema": "<1.1-stable",
"latte/latte": "<2.7.1 >=3.0",
"tracy/tracy": "<2.5"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Bridges/ApplicationDI/ApplicationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getConfigSchema(): Nette\Schema\Schema
'errorPresenter' => Expect::string('Nette:Error')->dynamic(),
'catchExceptions' => Expect::bool()->dynamic(),
'mapping' => Expect::arrayOf('string|array'),
'scanDirs' => Expect::anyOf(Expect::arrayOf('string'), false)->default($this->scanDirs),
'scanDirs' => Expect::anyOf(Expect::arrayOf('string')->default($this->scanDirs)->mergeDefaults(), false),
'scanComposer' => Expect::bool(class_exists(ClassLoader::class)),
'scanFilter' => Expect::string('*Presenter'),
'silentLinks' => Expect::bool(),
Expand Down

0 comments on commit f8892db

Please sign in to comment.