Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1664 nelberth 1
<?php
2219 nelberth 2
 
1664 nelberth 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
 
2219 nelberth 13
class PlanningObjectivesAndGoalsController extends AbstractActionController {
2002 nelberth 14
 
1664 nelberth 15
    /**
16
     *
17
     * @var AdapterInterface
18
     */
19
    private $adapter;
2219 nelberth 20
 
1664 nelberth 21
    /**
22
     *
23
     * @var AbstractAdapter
24
     */
25
    private $cache;
2219 nelberth 26
 
1664 nelberth 27
    /**
28
     *
29
     * @var  LoggerInterface
30
     */
31
    private $logger;
2219 nelberth 32
 
1664 nelberth 33
    /**
34
     *
35
     * @var array
36
     */
37
    private $config;
2219 nelberth 38
 
1664 nelberth 39
    /**
40
     *
41
     * @param AdapterInterface $adapter
42
     * @param AbstractAdapter $cache
43
     * @param LoggerInterface $logger
44
     * @param array $config
45
     */
2219 nelberth 46
    public function __construct($adapter, $cache, $logger, $config) {
47
        $this->adapter = $adapter;
48
        $this->cache = $cache;
49
        $this->logger = $logger;
50
        $this->config = $config;
1664 nelberth 51
    }
1740 nelberth 52
 
2219 nelberth 53
    public function indexAction() {
1740 nelberth 54
 
2219 nelberth 55
        return new JsonModel([
56
            'success' => false,
57
            'data' => 'ERROR_METHOD_NOT_ALLOWED'
58
        ]);
1664 nelberth 59
    }
2008 nelberth 60
 
1664 nelberth 61
}