Nette DI
Configure your Nette application
namespace App;
use OriNette\DI\Boot\Environment;
use OriNette\DI\Boot\ManualConfigurator;
final class Bootstrap
{
public static function boot(): ManualConfigurator
{
$configurator = new ManualConfigurator(dirname(__DIR__));
$configurator->setDebugMode(
Environment::isEnvDebug()
|| Environment::isLocalhost()
);
$configurator->enableDebugger();
$configurator->addConfig(__DIR__ . '/wiring.neon');
$configurator->addConfig(__DIR__ . '/../config/local.neon');
return $configurator;
}
}
... and more.