Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15642 Rev 15647
Línea 8... Línea 8...
8
use Laminas\Mvc\Controller\AbstractActionController;
8
use Laminas\Mvc\Controller\AbstractActionController;
Línea 9... Línea 9...
9
 
9
 
10
// Create an action controller.
10
// Create an action controller.
11
class DiscoveryContactProgressController extends AbstractActionController
11
class DiscoveryContactProgressController extends AbstractActionController
12
{
-
 
13
    /**
-
 
14
     *
-
 
15
     * @var AdapterInterface
-
 
16
     */
-
 
17
    private $adapter;
-
 
18
 
-
 
19
 
-
 
20
    /**
-
 
21
     *
-
 
22
     * @var AbstractAdapter
-
 
23
     */
-
 
24
    private $cache;
-
 
25
 
-
 
26
    /**
-
 
27
     *
-
 
28
     * @var  LoggerInterface
-
 
29
     */
-
 
30
    private $logger;
-
 
31
 
-
 
32
    /**
-
 
33
     *
-
 
34
     * @var array
-
 
35
     */
-
 
36
    private $config;
-
 
37
 
-
 
38
    /**
-
 
39
     *
-
 
40
     * @param AdapterInterface $adapter
-
 
41
     * @param AbstractAdapter $cache
-
 
42
     * @param LoggerInterface $logger
-
 
43
     * @param array $config
-
 
44
     */
-
 
45
    public function __construct($adapter, $cache, $logger, $config)
-
 
46
    {
-
 
47
        $this->adapter      = $adapter;
-
 
48
        $this->cache        = $cache;
-
 
49
        $this->logger       = $logger;
-
 
50
        $this->config       = $config;
-
 
51
    }
12
{
52
    // Define an action "world".
13
    // Define an action "world".
53
    public function indexAction()
14
    public function indexAction()
54
    {
15
    {
55
        // Get "message" from the query parameters.
16
        // Get "message" from the query parameters.
56
        // In production code, it's a good idea to sanitize user input.
17
        // In production code, it's a good idea to sanitize user input.
Línea 57... Línea 18...
57
        $message = $this->params()->fromQuery('message', 'hello');
18
        $message = $this->params()->fromQuery('message', 'hello');
58
 
19
 
59
        // Pass variables to the view.
20
        // Pass variables to the view.
60
        return new ViewModel(['message' => $message]);
21
        return 'hola';