src/Web/User.php
public function initComponent()
    {
        return $this->getIdentityAsync()
            ->always(function() {
                $this->_initialized = true;
            })
            ->then(function() {
                return true;
            }, function() {
                return false;
            });
    }
public function initComponent()
    {
        return $this->getIdentityAsync()
            ->always(function() {
                $this->_initialized = true;
            })
            ->then(function() {
                return true;
            }, function() {
                return false;
            });
    }
Init callback. Called by parent container/service/component on init and must return a fulfilled Promise
@return PromiseInterface