Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
4376 nelberth 1
<?php
2
declare(strict_types=1);
3
 
4
namespace LeadersLinked\Controller;
5
 
6
use Laminas\Authentication\AuthenticationService;
7
use Laminas\Authentication\Result as AuthResult;
8
use Laminas\Db\Adapter\AdapterInterface;
16768 efrain 9
 
4376 nelberth 10
use Laminas\Mvc\Controller\AbstractActionController;
11
use Laminas\Mvc\I18n\Translator;
12
use Laminas\Log\LoggerInterface;
13
use Laminas\View\Model\ViewModel;
14
use Laminas\View\Model\JsonModel;
15
use LeadersLinked\Hydrator\ObjectPropertyHydrator;
16
 
4378 nelberth 17
class HighPerformanceTeamsController extends AbstractActionController
4376 nelberth 18
{
19
    /**
20
     *
21
     * @var AdapterInterface
22
     */
23
    private $adapter;
24
 
25
    /**
26
     *
27
     * @var  LoggerInterface
28
     */
29
    private $logger;
30
 
31
    /**
32
     *
33
     * @var array
34
     */
35
    private $config;
36
 
37
    /**
38
     *
39
     * @param AdapterInterface $adapter
40
     * @param LoggerInterface $logger
41
     * @param array $config
42
     */
16768 efrain 43
    public function __construct($adapter, $logger, $config)
4376 nelberth 44
    {
16768 efrain 45
        $this->adapter = $adapter;
46
        $this->logger = $logger;
47
        $this->config = $config;
4376 nelberth 48
    }
49
 
50
    public function indexAction()
51
    {
52
        $request = $this->getRequest();
53
 
54
        $request = $this->getRequest();
55
        if($request->isGet()) {
56
 
57
            $this->layout()->setTemplate('layout/layout-backend');
58
            $viewModel = new ViewModel();
59
            $viewModel->setTemplate('leaders-linked/high-performance-teams/index.phtml');
60
            return $viewModel ;
61
 
62
 
63
        } else {
64
            return new JsonModel([
65
                'success' => false,
66
                'data' => 'ERROR_METHOD_NOT_ALLOWED'
67
            ]);;
68
        }
69
    }
70
}