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/Controllers/Base.php
T
Yuri Kuznetsov b3d0d4f031 refactor
2013-11-20 13:18:39 +02:00

42 lines
687 B
PHP

<?php
namespace Espo\Core\Controllers;
class Base
{
private $container;
private $serviceFactory;
public function __construct(\Espo\Core\Container $container, \Espo\Core\ServiceFactory $serviceFactory)
{
$this->container = $container;
$this->serviceFactory = $serviceFactory;
}
protected function getContainer()
{
return $this->container;
}
protected function getUser()
{
return $this->container->get('user');
}
protected function getConfig()
{
return $this->container->get('config');
}
protected function getMetadata()
{
return $this->container->get('metadata');
}
protected function getServiceFactory()
{
return $this->serviceFactory;
}
}