Example #1
0
 public function __construct(\Espo\Core\Container $container, \Espo\Core\Upgrades\ActionManager $actionManager)
 {
     $this->container = $container;
     $this->actionManager = $actionManager;
     $this->params = $actionManager->getParams();
     $this->zipUtil = new \Espo\Core\Utils\File\ZipArchive($container->get('fileManager'));
 }
Example #2
0
 public function __construct(\Espo\Core\Container $container, $allowAnyAccess = false)
 {
     $this->container = $container;
     $this->allowAnyAccess = $allowAnyAccess;
     $authenticationMethod = $this->getConfig()->get('authenticationMethod', 'Espo');
     $authenticationClassName = "\\Espo\\Core\\Utils\\Authentication\\" . $authenticationMethod;
     $this->authentication = new $authenticationClassName($this->getConfig(), $this->getEntityManager(), $this);
     $this->request = $container->get('slim')->request();
 }
 public function __construct(\Espo\Core\Container $container)
 {
     $this->container = $container;
     $this->fileManager = $container->get('fileManager');
 }
Example #4
0
 public function __construct(Container $container)
 {
     $this->container = $container;
     $this->metadata = $container->get('metadata');
 }