Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
114 efrain 1
<?php
2
declare(strict_types=1);
3
 
4
namespace LeadersLinked\Controller;
5
 
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
 
14
class CompanySelfEvaluationController extends AbstractActionController
15
{
16
    /**
17
     *
18
     * @var AdapterInterface
19
     */
20
    private $adapter;
21
 
22
 
23
    /**
24
     *
25
     * @var AbstractAdapter
26
     */
27
    private $cache;
28
 
29
    /**
30
     *
31
     * @var  LoggerInterface
32
     */
33
    private $logger;
34
 
35
    /**
36
     *
37
     * @var array
38
     */
39
    private $config;
40
 
41
 
42
 
43
    /**
44
     *
45
     * @param AdapterInterface $adapter
46
     * @param AbstractAdapter $cache
47
     * @param LoggerInterface $logger
48
     * @param array $config
49
     */
50
    public function __construct($adapter, $cache , $logger, $config)
51
    {
52
        $this->adapter      = $adapter;
53
        $this->cache        = $cache;
54
        $this->logger       = $logger;
55
        $this->config       = $config;
56
 
57
 
58
    }
59
 
60
    public function indexAction()
61
    {
62
 
63
        return new JsonModel([
64
            'success' => false,
65
            'data' => 'ERROR_METHOD_NOT_ALLOWED'
66
        ]);
67
    }
68
 
69
 
70
}
71