/**
* @param \Nette\DI\Container
* @param array
*/
public function __construct(DI\Container $context, array $configuration = array())
{
$this->context = $context;
$this->configuration = \Nette\Utils\Arrays::mergeTree(array(
'productionMode' => $context->params['productionMode'],
'proxyDir' => $context->expand("%appDir%/proxies"),
'proxyNamespace' => 'App\Models\Proxies',
'entityDirs' => array($context->params['appDir'], NELLA_FRAMEWORK_DIR),
'migrations' => array(
'name' => \Nella\Framework::NAME . " DB Migrations",
'table' => "db_version",
'directory' => $context->expand("%appDir%/migrations"),
'namespace' => 'App\Models\Migrations',
)
), $configuration);
}