add constructor property promotion
add return type of methods
This commit is contained in:
parent
05c35b9a63
commit
7c5654f3bc
14 changed files with 77 additions and 387 deletions
|
|
@ -29,28 +29,14 @@ use OCP\IUserSession;
|
|||
|
||||
class AppController extends Controller
|
||||
{
|
||||
/**
|
||||
* @var ConfigProxy
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var AppRepository
|
||||
*/
|
||||
protected $appRepository;
|
||||
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
AppRepository $appRepository,
|
||||
IURLGenerator $urlGenerator,
|
||||
ConfigProxy $config
|
||||
protected AppRepository $appRepository,
|
||||
protected IURLGenerator $urlGenerator,
|
||||
protected ConfigProxy $config
|
||||
) {
|
||||
parent::__construct($appName, $request);
|
||||
|
||||
$this->appRepository = $appRepository;
|
||||
$this->urlGenerator = $urlGenerator;
|
||||
$this->config = $config;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue