Skip to content

niclaslindberg/webx-routes-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#WebX-Routes Session Provides session functionality to the WebX Routes framework

##How to install In your Routes project in the bootstrap action:

Minimum Routes version 0.6.0

use WebX\Routes\Session\Api\Session;

RoutesBootstrap::run([function(Routes $routes, Session $session, Response $response) {
    $count = ($session->data("count") ?: 0) + 1;
    $response->typeJson(["count"=>$count]);
    $session->setData("count",$count);
},"../vendor/webx/routes-session/config/routes"]);

About

Session support for WebX Routes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages