Skip to content

Commit

Permalink
tests: renamed Database -> FooExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 9, 2015
1 parent 17bc29b commit e24c500
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Bootstrap/Configurator.onCompile.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -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();

0 comments on commit e24c500

Please sign in to comment.