Proyectos de Subversion LeadersLinked - Backend

Rev

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

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