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/Jobs/Base.php
T
2014-02-06 10:36:57 +02:00

46 lines
691 B
PHP

<?php
namespace Espo\Core\Jobs;
use \Espo\Core\Container;
abstract class Base
{
private $container;
protected function getContainer()
{
return $this->container;
}
protected function getEntityManager()
{
return $this->getContainer()->get('entityManager');
}
protected function getServiceFactory()
{
return $this->getContainer()->get('serviceFactory');
}
protected function getConfig()
{
return $this->getContainer()->get('config');
}
protected function getMetadata()
{
return $this->getContainer()->get('metadata');
}
public function __construct(Container $container)
{
$this->container = $container;
}
abstract public function run();
}