From e24c5000c022336b8c0a6409bfd8d1ff63ede8f6 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 10 Mar 2015 00:19:17 +0100 Subject: [PATCH] tests: renamed Database -> FooExtension --- tests/Bootstrap/Configurator.onCompile.phpt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Bootstrap/Configurator.onCompile.phpt b/tests/Bootstrap/Configurator.onCompile.phpt index 2ea2a7e..055cb29 100644 --- a/tests/Bootstrap/Configurator.onCompile.phpt +++ b/tests/Bootstrap/Configurator.onCompile.phpt @@ -11,7 +11,7 @@ use Nette\Configurator, require __DIR__ . '/../bootstrap.php'; -class DatabaseExtension extends Nette\DI\CompilerExtension +class FooExtension extends Nette\DI\CompilerExtension { public function loadConfiguration() { @@ -23,13 +23,13 @@ class DatabaseExtension extends Nette\DI\CompilerExtension $configurator = new Configurator; $configurator->setTempDirectory(TEMP_DIR); $configurator->onCompile[] = function(Configurator $configurator, Nette\DI\Compiler $compiler) { - $compiler->addExtension('database', new DatabaseExtension); + $compiler->addExtension('foo', new FooExtension); }; $configurator->addConfig(Tester\FileMock::create(' parameters: bar: hello -database: +foo: foo: %bar% ', 'neon')); $container = $configurator->createContainer();