Skip to content

Commit fe9db86

Browse files
authored
Merge pull request #13 from jtojnar/nette-4-updates
nette 4 updates
2 parents ce6a6e0 + c18bddf commit fe9db86

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414
"php": ">=8.0",
1515
"latte/latte": "^3.0",
1616
"nette/forms": "^3.0",
17-
"nette/utils": "^3.0"
17+
"nette/utils": "^3.0 || ^4.0"
1818
},
1919
"require-dev": {
2020
"nette/application": "^3.0",
2121
"nette/bootstrap": "^3.0",
2222
"nette/di": "^3.0",
23-
"nette/robot-loader": "^3.0",
2423
"phpstan/phpstan": "~1.8",
2524
"phpstan/phpstan-nette": "~1.0",
2625
"tracy/tracy": "^2.5"
@@ -35,5 +34,11 @@
3534
},
3635
"autoload": {
3736
"psr-4": { "Nextras\\FormsRendering\\": "src/" }
37+
},
38+
"autoload-dev": {
39+
"psr-4": {
40+
"NextrasDemos\\FormsRendering\\LatteMacros\\": "examples/lattemacros/",
41+
"NextrasDemos\\FormsRendering\\Renderers\\": "examples/renderers/"
42+
}
3843
}
3944
}

examples/lattemacros/index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
$configurator = new Configurator;
1212
$configurator->enableDebugger(__DIR__ . '/log');
1313
$configurator->setTempDirectory(__DIR__ . '/temp');
14-
$configurator->createRobotLoader()->addDirectory(__DIR__)->register();
1514
$configurator->addConfig(__DIR__ . '/config.neon');
1615

1716
$container = $configurator->createContainer();

examples/renderers/index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
$configurator = new Configurator;
1212
$configurator->enableDebugger(__DIR__ . '/log');
1313
$configurator->setTempDirectory(__DIR__ . '/temp');
14-
$configurator->createRobotLoader()->addDirectory(__DIR__)->register();
1514
$configurator->addConfig(__DIR__ . '/config.neon');
1615

1716
$container = $configurator->createContainer();

0 commit comments

Comments
 (0)