Allow to configure persistent database connections

This commit is contained in:
Eric Lippmann 2015-09-07 17:08:25 +02:00
parent 65e4d23d89
commit 61f251d6ad
1 changed files with 11 additions and 0 deletions

View File

@ -113,6 +113,17 @@ class DbResourceForm extends Form
'description' => $this->translate('The password to use for authentication')
)
);
$this->addElement(
'checkbox',
'persistent',
array(
'description' => $this->translate(
'Check this box for persistent database connections. Persistent connections are not closed at the'
. ' end of a request, but are cached and re-used. This is experimental'
),
'label' => $this->translate('Persistent')
)
);
return $this;
}