RVRNEXT-33 adapt to new soko-web interfaces
This commit is contained in:
		
							parent
							
								
									0c102da1d7
								
							
						
					
					
						commit
						97e04d785c
					
				
							
								
								
									
										9
									
								
								web.php
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								web.php
									
									
									
									
									
								
							@ -4,6 +4,7 @@ use SokoWeb\Response\HttpResponse;
 | 
				
			|||||||
use SokoWeb\Routing\RouteCollection;
 | 
					use SokoWeb\Routing\RouteCollection;
 | 
				
			||||||
use SokoWeb\Session\DatabaseSessionHandler;
 | 
					use SokoWeb\Session\DatabaseSessionHandler;
 | 
				
			||||||
use SokoWeb\Request\Request;
 | 
					use SokoWeb\Request\Request;
 | 
				
			||||||
 | 
					use SokoWeb\Request\Session;
 | 
				
			||||||
use RVR\Controller\HomeController;
 | 
					use RVR\Controller\HomeController;
 | 
				
			||||||
use RVR\Controller\LoginController;
 | 
					use RVR\Controller\LoginController;
 | 
				
			||||||
use RVR\Controller\OAuthAuthController;
 | 
					use RVR\Controller\OAuthAuthController;
 | 
				
			||||||
@ -88,7 +89,11 @@ Container::$routeCollection->group('communities', function (RouteCollection $rou
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Container::$sessionHandler = new DatabaseSessionHandler(Container::$dbConnection);
 | 
					Container::$sessionHandler = new DatabaseSessionHandler(
 | 
				
			||||||
 | 
					    Container::$dbConnection,
 | 
				
			||||||
 | 
					    'sessions',
 | 
				
			||||||
 | 
					    new DateTime('-7 days')
 | 
				
			||||||
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
session_set_save_handler(Container::$sessionHandler, true);
 | 
					session_set_save_handler(Container::$sessionHandler, true);
 | 
				
			||||||
session_start([
 | 
					session_start([
 | 
				
			||||||
@ -114,7 +119,7 @@ Container::$request = new Request(
 | 
				
			|||||||
    $_GET,
 | 
					    $_GET,
 | 
				
			||||||
    $_POST,
 | 
					    $_POST,
 | 
				
			||||||
    getallheaders(),
 | 
					    getallheaders(),
 | 
				
			||||||
    $_SESSION,
 | 
					    new Session($_SESSION),
 | 
				
			||||||
    new UserRepository()
 | 
					    new UserRepository()
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user