Skip to content

Commit e4610ae

Browse files
committed
ApplicationExtension: fixed schema [Closes #213]
1 parent 0f0c24c commit e4610ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Bridges/ApplicationDI/ApplicationExtension.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
use Composer\Autoload\ClassLoader;
1313
use Nette;
1414
use Nette\Application\UI;
15-
use Nette\DI\Config\Expect;
1615
use Nette\DI\Definitions;
16+
use Nette\Schema\Expect;
1717
use Tracy;
1818

1919

@@ -43,13 +43,13 @@ public function __construct(bool $debugMode = false, array $scanDirs = null, str
4343
}
4444

4545

46-
public function getConfigSchema(): Nette\DI\Config\Schema
46+
public function getConfigSchema(): Nette\Schema\Schema
4747
{
4848
return Expect::structure([
4949
'debugger' => Expect::bool(interface_exists(Tracy\IBarPanel::class)),
5050
'errorPresenter' => Expect::string('Nette:Error')->dynamic(),
5151
'catchExceptions' => Expect::bool(!$this->debugMode)->dynamic(),
52-
'mapping' => Expect::arrayOf('string')->dynamic(),
52+
'mapping' => Expect::arrayOf('string|array'),
5353
'scanDirs' => Expect::enum(Expect::arrayOf('string')->default($this->scanDirs), false),
5454
'scanComposer' => Expect::bool(class_exists(ClassLoader::class)),
5555
'scanFilter' => Expect::string('Presenter'),

0 commit comments

Comments
 (0)