trying to implement database backend
This commit is contained in:
parent
b5cd90df6f
commit
e174e3d16a
@ -3,13 +3,13 @@
|
|||||||
namespace OCA\Radio\Controller;
|
namespace OCA\Radio\Controller;
|
||||||
|
|
||||||
use OCA\Radio\AppInfo\Application;
|
use OCA\Radio\AppInfo\Application;
|
||||||
use OCA\Radio\Service\RadioService;
|
use OCA\Radio\Service\StationService;
|
||||||
use OCP\AppFramework\Controller;
|
use OCP\AppFramework\Controller;
|
||||||
use OCP\AppFramework\Http\DataResponse;
|
use OCP\AppFramework\Http\DataResponse;
|
||||||
use OCP\IRequest;
|
use OCP\IRequest;
|
||||||
|
|
||||||
class RadioController extends Controller {
|
class StationController extends Controller {
|
||||||
/** @var RadioService */
|
/** @var StationService */
|
||||||
private $service;
|
private $service;
|
||||||
|
|
||||||
/** @var string */
|
/** @var string */
|
||||||
@ -18,7 +18,7 @@ class RadioController extends Controller {
|
|||||||
use Errors;
|
use Errors;
|
||||||
|
|
||||||
public function __construct(IRequest $request,
|
public function __construct(IRequest $request,
|
||||||
RadioService $service,
|
StationService $service,
|
||||||
$userId) {
|
$userId) {
|
||||||
parent::__construct(Application::APP_ID, $request);
|
parent::__construct(Application::APP_ID, $request);
|
||||||
$this->service = $service;
|
$this->service = $service;
|
||||||
|
Loading…
Reference in New Issue
Block a user