Add Db service prototype
This commit is contained in:
parent
0c8a5e15bd
commit
4b9a97cb08
|
|
@ -50,6 +50,10 @@ class Application extends App {
|
||||||
$container->registerService('L10N', function($c) {
|
$container->registerService('L10N', function($c) {
|
||||||
return $c->query('ServerContainer')->getL10N($c->query('AppName'));
|
return $c->query('ServerContainer')->getL10N($c->query('AppName'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$container->registerService('PendingRegist', function($c) {
|
||||||
|
return new PendingRegist($c->query('ServerContainer')->getDb());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
namespace OCA\Registration\Db;
|
||||||
|
|
||||||
|
use \OCP\IDb;
|
||||||
|
|
||||||
|
class PendingRegist {
|
||||||
|
|
||||||
|
private $db;
|
||||||
|
|
||||||
|
public function __construct(IDb $db) {
|
||||||
|
$this->db = $db;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function find($id) {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue