Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16766 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16766 Rev 16768
Línea 4... Línea 4...
4
namespace LeadersLinked\Controller;
4
namespace LeadersLinked\Controller;
Línea 5... Línea 5...
5
 
5
 
6
use Laminas\Authentication\AuthenticationService;
6
use Laminas\Authentication\AuthenticationService;
7
use Laminas\Authentication\Result as AuthResult;
7
use Laminas\Authentication\Result as AuthResult;
8
use Laminas\Db\Adapter\AdapterInterface;
-
 
-
 
8
use Laminas\Db\Adapter\AdapterInterface;
9
use LeadersLinked\Cache\CacheInterface;
9
 
10
use Laminas\Mvc\Controller\AbstractActionController;
10
use Laminas\Mvc\Controller\AbstractActionController;
11
use Laminas\Mvc\I18n\Translator;
11
use Laminas\Mvc\I18n\Translator;
12
use Laminas\Log\LoggerInterface;
12
use Laminas\Log\LoggerInterface;
13
use Laminas\View\Model\ViewModel;
13
use Laminas\View\Model\ViewModel;
Línea 23... Línea 23...
23
use LeadersLinked\Mapper\PlanningGoalsMapper;
23
use LeadersLinked\Mapper\PlanningGoalsMapper;
24
use LeadersLinked\Mapper\PlanningObjectivesMapper;
24
use LeadersLinked\Mapper\PlanningObjectivesMapper;
Línea 25... Línea 25...
25
 
25
 
26
class PlanningGoalsController extends AbstractActionController
26
class PlanningGoalsController extends AbstractActionController
27
{
27
{
28
    /**
28
        /**
29
     *
29
     *
30
     * @var AdapterInterface
30
     * @var AdapterInterface
31
     */
31
     */
32
    private $adapter;
-
 
33
    
32
    private $adapter;
34
    
-
 
35
    /**
-
 
36
     *
-
 
37
     * @var CacheInterface
-
 
38
     */
-
 
39
    private $cache;
-
 
40
    
33
 
41
    /**
34
    /**
42
     *
35
     *
43
     * @var  LoggerInterface
36
     * @var  LoggerInterface
44
     */
37
     */
45
    private $logger;
38
    private $logger;
46
    
39
 
47
    /**
40
    /**
48
     *
41
     *
49
     * @var array
42
     * @var array
50
     */
43
     */
51
    private $config;
-
 
52
    
44
    private $config;
53
    
-
 
54
    
45
 
55
    /**
46
    /**
56
     *
47
     *
57
     * @param AdapterInterface $adapter
-
 
58
     *@param CacheInterface $cache
48
     * @param AdapterInterface $adapter
59
     * @param LoggerInterface $logger
49
     * @param LoggerInterface $logger
60
     * @param array $config
50
     * @param array $config
61
     */
51
     */
62
    public function __construct($adapter, $cache , $logger, $config)
52
    public function __construct($adapter, $logger, $config) 
63
    {
53
    {
64
        $this->adapter      = $adapter;
-
 
65
        $this->cache        = $cache;
54
        $this->adapter = $adapter;
66
        $this->logger       = $logger;
55
        $this->logger = $logger;
67
        $this->config       = $config;
-
 
68
        
-
 
69
        
56
        $this->config = $config;
-
 
57
    }
70
    }
58
    
71
   /* 
59
   /* 
72
  public function idObjective($uuid){
60
  public function idObjective($uuid){
73
        $currentUserPlugin = $this->plugin('currentUserPlugin');
61
        $currentUserPlugin = $this->plugin('currentUserPlugin');
74
        $currentCompany = $currentUserPlugin->getCompany();
62
        $currentCompany = $currentUserPlugin->getCompany();