Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16766 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
15444 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Controller;
6
 
7
use Laminas\Db\Adapter\AdapterInterface;
8
use Laminas\Cache\Storage\Adapter\AbstractAdapter;
9
use Laminas\Mvc\Controller\AbstractActionController;
10
use Laminas\Log\LoggerInterface;
11
use Laminas\View\Model\JsonModel;
12
 
13
class PerformanceEvaluationController extends AbstractActionController
14
{
15
 
16
    /**
17
     *
18
     * @var AdapterInterface
19
     */
20
    private $adapter;
21
 
22
    /**
23
     *
24
     * @var AbstractAdapter
25
     */
26
    private $cache;
27
 
28
    /**
29
     *
30
     * @var  LoggerInterface
31
     */
32
    private $logger;
33
 
34
    /**
35
     *
36
     * @var array
37
     */
38
    private $config;
39
 
40
    /**
41
     *
42
     * @param AdapterInterface $adapter
43
     * @param AbstractAdapter $cache
44
     * @param LoggerInterface $logger
45
     * @param array $config
46
     */
47
    public function __construct($adapter, $cache, $logger, $config)
48
    {
49
        $this->adapter = $adapter;
50
        $this->cache = $cache;
51
        $this->logger = $logger;
52
        $this->config = $config;
53
    }
54
 
55
    public function indexAction()
56
    {
57
        return new JsonModel([
58
            'success' => false,
59
            'data' => 'ERROR_METHOD_NOT_ALLOWED'
60
        ]);
61
    }
62
 
63
 
64
}