Skip to content

Commit 504895d

Browse files
committed
examples: Remove robot loader dependency
It is not necessary when we have PSR-4.
1 parent ce6a6e0 commit 504895d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
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)