protected function _hashParts(Controller $controller)
    {
        $request = $controller->getRequest();

        // Start the session to ensure we get the correct session id.
        $session = $request->getSession();
        $session->start();

        $data = $request->getData();
        $fieldList = $this->_fieldsList($data);
        $unlocked = $this->_sortedUnlocked($data);

        return [
            Router::url($request->getRequestTarget()),
            serialize($fieldList),
            $unlocked,
            $session->id()
        ];
    }
protected function _hashParts(Controller $controller)
    {
        $request = $controller->getRequest();

        // Start the session to ensure we get the correct session id.
        $session = $request->getSession();
        $session->start();

        $data = $request->getData();
        $fieldList = $this->_fieldsList($data);
        $unlocked = $this->_sortedUnlocked($data);

        return [
            Router::url($request->getRequestTarget()),
            serialize($fieldList),
            $unlocked,
            $session->id()
        ];
    }
protected function _hashParts ( Controller $ controller ) { $ request = $ controller -> getRequest ( ) ; // Start the session to ensure we get the correct session id. $ session = $ request -> getSession ( ) ; $ session -> start ( ) ; $ data = $ request -> getData ( ) ; $ fieldList = $ this -> _fieldsList ( $ data ) ; $ unlocked = $ this -> _sortedUnlocked ( $ data ) ; return [ Router :: url ( $ request -> getRequestTarget ( ) ) , serialize ( $ fieldList ) , $ unlocked , $ session -> id ( ) ] ; }
Return hash parts for the Token generation

@param \Cake\Controller\Controller $controller Instantiating controller
@return array
Return hash parts for the Token generation