layouts = Factory::getInstance('layouts'); /** @var AuthenticationPlugin $plugin */ $plugin = $this->plugins->get('auth'); // Set current session $this->users = $plugin->users; $this->session = $plugin->sessions->getCurrentSession(); } }