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