Closed (fixed)
Project:
voom
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 Apr 2011 at 22:31 UTC
Updated:
11 May 2011 at 23:11 UTC
Would be nice to be able to inject connections objects based on a specified database configured in settings.php. This does not save any lines code as one line is swapped for an annotation. But it will allow us to provide more transaction management features later via dynamic proxy classes.
class deep {
/** @Inject(database="test") */
private $conn;
public function test() {
$result = $conn->query("SELECT name, level FROM {ahole}");
foreach ($result as $record) {
......
Comments
Comment #1
mgiacomi commentedFixed by today's commit. Works as documented in the description. Declarative transactions via dynamic proxy and annotations can now move forward.