- Work done on the console to have at least some working functionality from every parts

This commit is contained in:
mcndave committed 2022-11-29 19:29:15 +00:00
1 parent e78492d398
commit 24e5490c71
18 files changed
+352 -27

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
<?php
namespace Lean\Console\Controller;
use League\Route\Router;
use Picea\FileFetcher;
use Picea\Picea;
use Psr\Http\Message\{ ResponseInterface, ServerRequestInterface };
use Notes\Route\Annotation\Object\Route as RouteParam,
Notes\Route\Annotation\Method\Route,
Notes\Security\Annotation\Security,
Notes\Tell\Annotation\Language;
use \Lean\Console\Lib;
use Picea\Extension\UrlExtension;
/**
* @Language("lean.templating")
*/
class Templating extends Console {
use Lib\ConsoleControllerTrait;
/**
* @Route("/templating/picea", "name" => "lean.console:templating.picea")
*/
public function picea(ServerRequestInterface $request, array $arguments) : ResponseInterface
{
$picea = $this->container->has(Picea::class) ? $this->container->get(Picea::class) : false;
$list = $picea->fileFetcher->getFileList();
return $this->renderView("lean-console/page/templating/picea", get_defined_vars());
}
}