public function middleware($middleware)
    {
        $key = Configure::read('Security.cookieKey', md5(Configure::read('Security.salt')));

        return $middleware->add(new EncryptedCookieMiddleware(['login'], $key));
    }
public function middleware($middleware)
    {
        $key = Configure::read('Security.cookieKey', md5(Configure::read('Security.salt')));

        return $middleware->add(new EncryptedCookieMiddleware(['login'], $key));
    }
public function middleware ( $ middleware ) { $ key = Configure :: read ( 'Security.cookieKey' , md5 ( Configure :: read ( 'Security.salt' ) ) ) ; return $ middleware -> add ( new EncryptedCookieMiddleware ( [ 'login' ] , $ key ) ) ; }
Adds middleware for the plugin
@param Cake\Http\MiddlewareQueue $middleware The middleware queue to update
@return Cake\Http\MiddlewareQueue
@since 2.26.4
Adds middleware for the plugin