Ejemplo n.º 1
0
 /**
  * 
  * @param Controller $controller
  */
 public function __construct($controller)
 {
     $this->controller = $controller;
     $this->request = $controller->getRequest();
     $this->response = $controller->getResponse();
     $this->postFilters = array();
     $this->preFilters = array();
     $this->logger = new Logger();
     $this->entityManager = $GLOBALS['entityManager'];
 }
Ejemplo n.º 2
0
<?php

/*
+---------------------------------------------------------------------------+
| Lightwork MVC                                                             |
+---------------------------------------------------------------------------+
| Author        : Ramon Kayo                                                |
| Email         : contato@ramonkayo.com                                     |
| License       : Distributed under the MIT License                         |
+---------------------------------------------------------------------------+
| "Simplicity is the ultimate sophistication." - Leonardo Da Vinci          |
+---------------------------------------------------------------------------+
| Last modified: 2016/08/06                                                |
+---------------------------------------------------------------------------+
*/
set_include_path(__DIR__);
require_once 'lightwork/load.php';
if (file_exists('maintenance.php')) {
    require_once 'maintenance.php';
    die;
}
use Lightwork\Controller\Controller;
$controller = new Controller();
$controller->run();