コード例 #1
0
 public function __construct($entityManager, $userService)
 {
     $this->entityManager = $entityManager;
     $this->userService = $userService;
     // init logger
     $logFileDir = getcwd() . '/data/VisoftBaseModule/log/';
     $logFilePath = $logFileDir . 'oauth2-client.log';
     \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($logFileDir);
     $this->logger = new \Zend\Log\Logger();
     $writer = new \Zend\Log\Writer\Stream($logFilePath);
     $this->logger->addWriter($writer);
 }
コード例 #2
0
 public function __construct($options, $entityManager, $userService)
 {
     parent::__construct($options, $entityManager, $userService);
     // init ZF2 logger
     $logFileDir = getcwd() . '/data/VisoftBaseModule/log/';
     $logFilePath = $logFileDir . 'oauth2-provider-' . static::PROVIDER_NAME . '.log';
     \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($logFileDir);
     $this->logger = new \Zend\Log\Logger();
     $writer = new \Zend\Log\Writer\Stream($logFilePath);
     $this->logger->addWriter($writer);
     // init Facebook SDK
     $this->facebookSDK = new \Facebook\Facebook(['app_id' => $options->getClientId(), 'app_secret' => $options->getClientSecret(), 'default_graph_version' => 'v2.6']);
 }
コード例 #3
0
 public function __construct($options)
 {
     $this->rootModuleDir = getcwd() . '/data/VisoftMailerModule';
     $this->logDir = $this->rootModuleDir . '/log';
     $this->contactExportedCsvDir = $this->rootModuleDir . '/contacts/exported-csv';
     $this->contactUploadedCsvDir = $this->rootModuleDir . '/contacts/uploaded-csv';
     $this->contactReportsDir = $this->rootModuleDir . '/contacts/reports';
     $this->contactEnterJsonDir = $this->rootModuleDir . '/contacts/enter-json';
     $this->mailingContactsJsonDir = $this->rootModuleDir . '/mailing/contacts-json';
     $this->mailingReportsDir = $this->rootModuleDir . '/mailing/reports';
     \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->rootModuleDir);
     \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->logDir);
     \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->contactExportedCsvDir);
     \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->contactUploadedCsvDir);
     \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->contactReportsDir);
     \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->contactEnterJsonDir);
     \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->mailingContactsJsonDir);
     \VisoftBaseModule\Controller\Plugin\AccessoryPlugin::checkDir($this->mailingReportsDir);
     parent::__construct($options);
 }