eZ\Bundle\EzPublishRestBundle\EventListener\CsrfListener::isSessionRoute PHP Method

isSessionRoute() protected method

Tests if a given $route is a session management one.
protected isSessionRoute ( string $route ) : boolean
$route string
return boolean
    protected function isSessionRoute($route)
    {
        return in_array($route, ['ezpublish_rest_createSession', 'ezpublish_rest_refreshSession', 'ezpublish_rest_deleteSession']);
    }