1<?php
2
3namespace dokuwiki\Menu\Item;
4
5/**
6 * Class Profile
7 *
8 * Open the user's profile
9 */
10class Profile extends AbstractItem
11{
12    /** @inheritdoc */
13    public function __construct()
14    {
15        global $INPUT;
16        parent::__construct();
17
18        if (!$INPUT->server->str('REMOTE_USER')) {
19            throw new \RuntimeException("profile is only for logged in users");
20        }
21
22        $this->svg = DOKU_INC . 'lib/images/menu/account-card-details.svg';
23    }
24}
25