FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
RestController.php
Go to the documentation of this file.
1
<?php
2
/***************************************************************
3
Copyright (C) 2018 Siemens AG
4
Author: Gaurav Mishra <mishra.gaurav@siemens.com>
5
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License
8
version 2 as published by the Free Software Foundation.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License along
16
with this program; if not, write to the Free Software Foundation, Inc.,
17
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
***************************************************************/
26
namespace
Fossology\UI\Api\Controllers
;
27
28
use
Psr\Container\ContainerInterface
;
29
use
Fossology\UI\Api\Helper\RestHelper
;
30
use
Fossology\UI\Api\Helper\DbHelper
;
31
36
class
RestController
37
{
42
protected
$container
;
43
48
protected
$restHelper
;
49
54
protected
$dbHelper
;
55
60
public
function
__construct
(
$container
)
61
{
62
$this->container =
$container
;
63
$this->restHelper = $this->container->get(
'helper.restHelper'
);
64
$this->dbHelper = $this->restHelper->getDbHelper();
65
}
66
}
ContainerInterface
Fossology\UI\Api\Controllers\RestController\$restHelper
$restHelper
Definition:
RestController.php:48
RestHelper
Fossology\UI\Api\Controllers\RestController\$container
$container
Definition:
RestController.php:42
Fossology\UI\Api\Controllers\RestController
Base controller for REST calls.
Definition:
RestController.php:36
Fossology\UI\Api\Controllers
Definition:
AuthController.php:24
Fossology\UI\Api\Controllers\RestController\__construct
__construct($container)
Definition:
RestController.php:60
Fossology\UI\Api\Controllers\RestController\$dbHelper
$dbHelper
Definition:
RestController.php:54
DbHelper
src
www
ui
api
Controllers
RestController.php
Generated on Mon Jun 29 2020 12:03:44 for FOSSology by
1.8.11