15 lines
583 B
PHP
15 lines
583 B
PHP
![]() |
<?php
|
||
|
namespace Incoviba\Controller\Ventas;
|
||
|
use Psr\Http\Message\ResponseInterface;
|
||
|
use Psr\Http\Message\ServerRequestInterface;
|
||
|
use Incoviba\Common\Alias\View;
|
||
|
use Incoviba\Repository;
|
||
|
|
||
|
class Propietarios
|
||
|
{
|
||
|
public function show(ServerRequestInterface $request, ResponseInterface $response, View $view, Repository\Venta\Propietario $propietarioRepository, int $propietario_rut): ResponseInterface
|
||
|
{
|
||
|
$propietario = $propietarioRepository->fetchById($propietario_rut);
|
||
|
return $view->render($response, 'ventas.propietarios.show', compact('propietario'));
|
||
|
}
|
||
|
}
|