예제 #1
0
파일: Base.php 프로젝트: naushrambo/espocrm
 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'));
 }
예제 #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();
 }
예제 #3
0
 public function __construct(\Espo\Core\Container $container)
 {
     $this->container = $container;
     $this->fileManager = $container->get('fileManager');
 }
예제 #4
0
 public function __construct(Container $container)
 {
     $this->container = $container;
     $this->metadata = $container->get('metadata');
 }