28 lines
		
	
	
		
			934 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			934 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Lean\Console\Controller;
 | |
| 
 | |
| use League\Route\Router;
 | |
| use Picea\{ FileFetcher, Picea ,Caching\Opcache, Extension\UrlExtension };
 | |
| use Psr\Http\Message\{ ResponseInterface, ServerRequestInterface };
 | |
| use Lean\Console\{ Form, Lib };
 | |
| use Notes\Tell\Attribute\Language, Notes\Route\Attribute\Method\Route;
 | |
| 
 | |
| use function Home\View\{ _, lang, url, route, form };
 | |
| 
 | |
| #[Language("lean.caching")]
 | |
| class Caching extends Console {
 | |
|     use Lib\ConsoleControllerTrait;
 | |
| 
 | |
|     #[Route(route: "/caching/picea", name: "lean.console:caching")]
 | |
|     public function picea(ServerRequestInterface $request, array $arguments) : ResponseInterface
 | |
|     {
 | |
|         $list = [];
 | |
| 
 | |
|         if ( isset($this->picea) ) {
 | |
|             form(new Form\Caching\Picea($this->picea, $list), $this->pushContext(new Lib\FormContext($request, "caching.picea")));
 | |
|         }
 | |
| 
 | |
|         return $this->renderView("lean-console/page/caching/picea", get_defined_vars());
 | |
|     }
 | |
| } |