Sistema web para crear proyecto web nuevo

This commit is contained in:
2020-07-03 17:21:55 -04:00
parent af3507bda5
commit ad3952501f
53 changed files with 2437 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<?php
namespace ProVM\Projects\Common\Controller\Web;
use Psr\Http\Message\RequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
use ProVM\Common\Alias\View;
use ProVM\Projects\Common\Service\Projects;
class Home {
public function __invoke(Request $request, Response $response, Projects $service, View $view): Response {
$projects = $service->list();
return $view->render($response, 'home', compact('projects'));
}
}