framework/RedKiteCms/Rendering/Controller/BaseController.php
public function fetchUser(SecurityContextInterface $security, ConfigurationHandler $configurationHandler)
    {
        $user = null;
        if ($configurationHandler->isTheme()) {
            return $user;
        }

        $token = $security->getToken();
        if (null !== $token) {
            $user = $token->getUser();
        }

        return $user;
    }
public function fetchUser(SecurityContextInterface $security, ConfigurationHandler $configurationHandler)
    {
        $user = null;
        if ($configurationHandler->isTheme()) {
            return $user;
        }

        $token = $security->getToken();
        if (null !== $token) {
            $user = $token->getUser();
        }

        return $user;
    }
Returns the current signed in user
@param \Symfony\Component\Security\Core\SecurityContextInterface $security
@param \RedKiteCms\Configuration\ConfigurationHandler $configurationHandler

@return \RedKiteCms\Bridge\Security\User