Skip to content

Commit

Permalink
SystemExtension: Set driver for DataTransfer
Browse files Browse the repository at this point in the history
  • Loading branch information
pepakriz committed Oct 10, 2014
1 parent edc2d02 commit 01f4149
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/System/DI/SystemExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Nette\DI\ContainerBuilder;
use Nette\DI\Statement;
use Nette\PhpGenerator\PhpLiteral;
use Venne\DataTransfer\DI\DataTransferExtension;
use Venne\Widgets\DI\WidgetsExtension;

/**
Expand Down Expand Up @@ -188,6 +189,12 @@ public function loadConfiguration()
}
}

foreach ($this->compiler->extensions as $extension) {
if ($extension instanceof DataTransferExtension) {
$extension->setDriverClass('Venne\Bridges\Kdyby\Doctrine\DataTransfer\EntityDriver');
}
}

$container->addDefinition($this->prefix('trayComponent'))
->setImplement('Venne\System\AdminModule\Components\ITrayControlFactory')
->setInject(true);
Expand Down

0 comments on commit 01f4149

Please sign in to comment.