- Added a new post-install script for composer which adds a project skeleton "ready to use". - Error 500 are now handled properly in production; waiting to see if adjustements will be required before adding other code pages.
		
			
				
	
	
		
			15 lines
		
	
	
		
			270 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			270 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
use function DI\create, DI\autowire, DI\get;
 | 
						|
 | 
						|
use Dump\DumpMiddleware;
 | 
						|
 | 
						|
if ($_GET['sql'] ?? false) {
 | 
						|
    \Ulmus\Common\PdoObject::$dump = "dump";
 | 
						|
}
 | 
						|
 | 
						|
return [
 | 
						|
    "dump" => create(DumpMiddleware::class),
 | 
						|
    "errorHandler" => create(Middlewares\Whoops::class),
 | 
						|
];
 |