This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/application/Espo/Core/Application.php
T
Yuri Kuznetsov e9728454ef refactor 1 step
2013-11-08 12:05:53 +02:00

45 lines
806 B
PHP

<?php
namespace Espo\Core;
class Application
{
private $metadata;
private $container;
private $serviceFactory;
/**
* Constructor
*/
public function __construct()
{
$this->container = new Container();
$this->metadata = $this->container->get('metadata');
$this->serviceFactory = new ServiceFactory($this->container);
//$this->slim = new \Slim\
}
public function run($name)
{
// TODO place routing HERE
// dispatch which controller to user
// $this->controller = new $controllerClassName($this->container, $this->serviceFactory);
// call needed controller method $this->$method($params, $data)
// dont't return anything here
}
}