Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16766 | Rev 16769 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16766 Rev 16768
Línea 3... Línea 3...
3
declare(strict_types=1);
3
declare(strict_types=1);
Línea 4... Línea 4...
4
 
4
 
Línea 5... Línea 5...
5
namespace LeadersLinked\Controller;
5
namespace LeadersLinked\Controller;
6
 
-
 
-
 
6
 
Línea 7... Línea 7...
7
use Laminas\Db\Adapter\AdapterInterface;
7
use Laminas\Db\Adapter\AdapterInterface;
8
use LeadersLinked\Cache\CacheInterface;
8
 
Línea 9... Línea 9...
9
 
9
 
Línea 24... Línea 24...
24
use LeadersLinked\Form\DiscoveryContact\ContactUploadForm;
24
use LeadersLinked\Form\DiscoveryContact\ContactUploadForm;
25
use LeadersLinked\Mapper\DiscoveryContactInteractionMapper;
25
use LeadersLinked\Mapper\DiscoveryContactInteractionMapper;
26
use LeadersLinked\Mapper\DiscoveryContactInteractionTypeMapper;
26
use LeadersLinked\Mapper\DiscoveryContactInteractionTypeMapper;
27
use LeadersLinked\Model\DiscoveryContactInteraction;
27
use LeadersLinked\Model\DiscoveryContactInteraction;
28
use LeadersLinked\Model\DiscoveryContactInteractionType;
28
use LeadersLinked\Model\DiscoveryContactInteractionType;
-
 
29
use LeadersLinked\Cache\CacheInterface;
-
 
30
use LeadersLinked\Cache\CacheImpl;
Línea 29... Línea 31...
29
 
31
 
30
 
32
 
31
class DiscoveryContactController extends AbstractActionController
33
class DiscoveryContactController extends AbstractActionController
32
{
34
{
33
    /**
35
    /**
34
     *
36
     *
35
     * @var AdapterInterface
37
     * @var AdapterInterface
36
     */
-
 
37
    private $adapter;
38
     */
38
 
-
 
39
 
-
 
40
    /**
-
 
41
     *
-
 
42
     * @var CacheInterface
-
 
43
     */
-
 
44
    private $cache;
39
    private $adapter;
45
 
40
    
46
    /**
41
    /**
47
     *
42
     *
48
     * @var  LoggerInterface
43
     * @var  LoggerInterface
49
     */
44
     */
50
    private $logger;
45
    private $logger;
51
 
46
    
52
    /**
47
    /**
53
     *
48
     *
54
     * @var array
49
     * @var array
55
     */
50
     */
-
 
51
    private $config;
-
 
52
    
-
 
53
    /**
-
 
54
     * 
-
 
55
     * @var CacheInterface
-
 
56
     */
56
    private $config;
57
    private $cache;
57
 
58
    
58
    /**
59
    /**
59
     *
-
 
60
     * @param AdapterInterface $adapter
60
     *
61
     * @param CacheInterface $cache
61
     * @param AdapterInterface $adapter
62
     * @param LoggerInterface $logger
62
     * @param LoggerInterface $logger
63
     * @param array $config
63
     * @param array $config
64
     */
64
     */
65
    public function __construct($adapter, $cache, $logger, $config)
65
    public function __construct($adapter, $logger, $config)
66
    {
66
    {
67
        $this->adapter      = $adapter;
67
        $this->adapter = $adapter;
68
        $this->cache        = $cache;
68
        $this->logger = $logger;
69
        $this->logger       = $logger;
69
        $this->config = $config;
Línea 70... Línea 70...
70
        $this->config       = $config;
70
        $this->cache = CacheImpl::getInstance($config);
71
    }
71
    }
72
 
72