Update doc blocks for all app/
This commit is contained in:
parent
5e27772fef
commit
0312c974f5
114 changed files with 1360 additions and 949 deletions
|
@ -32,6 +32,11 @@ use Pterodactyl\Http\Controllers\Controller;
|
|||
|
||||
class LanguageController extends Controller
|
||||
{
|
||||
/**
|
||||
* A list of supported languages on the panel.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $languages = [
|
||||
'de' => 'German',
|
||||
'en' => 'English',
|
||||
|
@ -44,13 +49,12 @@ class LanguageController extends Controller
|
|||
];
|
||||
|
||||
/**
|
||||
* Controller Constructor.
|
||||
* Sets the language for a user.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param string $language
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public function setLanguage(Request $request, $language)
|
||||
{
|
||||
if (array_key_exists($language, $this->languages)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue