示例#1
0
 function __construct()
 {
     $this->cpClearedGetter = new XpClearedGetter("copyright", "statement", false, "content ilike 'Copyright%'");
     $this->licenseClearedGetter = new LicenseClearedGetter();
     parent::__construct(README_AGENT_NAME, AGENT_VERSION, AGENT_REV);
     $this->uploadDao = $this->container->get('dao.upload');
     $this->agentSpecifLongOptions[] = self::UPLOAD_ADDS . ':';
 }
示例#2
0
 function __construct()
 {
     parent::__construct('spdx2', AGENT_VERSION, AGENT_REV);
     $this->uploadDao = $this->container->get('dao.upload');
     $this->clearingDao = $this->container->get('dao.clearing');
     $this->dbManager = $this->container->get('db.manager');
     $this->renderer = $this->container->get('twig.environment');
     $this->renderer->setCache(false);
     $this->agentSpecifLongOptions[] = self::UPLOAD_ADDS . ':';
     $this->agentSpecifLongOptions[] = self::OUTPUT_FORMAT_KEY . ':';
 }
示例#3
0
 function __construct()
 {
     parent::__construct(REUSER_AGENT_NAME, AGENT_VERSION, AGENT_REV);
     $this->uploadDao = $this->container->get('dao.upload');
     $this->clearingDao = $this->container->get('dao.clearing');
     $this->decisionTypes = $this->container->get('decision.types');
     $this->clearingEventProcessor = $this->container->get('businessrules.clearing_event_processor');
     $this->clearingDecisionFilter = $this->container->get('businessrules.clearing_decision_filter');
     $this->clearingDecisionProcessor = $this->container->get('businessrules.clearing_decision_processor');
     $this->agentLicenseEventProcessor = $this->container->get('businessrules.agent_license_event_processor');
 }
示例#4
0
 function __construct($licenseMapUsage = null)
 {
     parent::__construct(AGENT_DECIDER_NAME, AGENT_DECIDER_VERSION, AGENT_DECIDER_REV);
     $this->uploadDao = $this->container->get('dao.upload');
     $this->clearingDao = $this->container->get('dao.clearing');
     $this->highlightDao = $this->container->get('dao.highlight');
     $this->decisionTypes = $this->container->get('decision.types');
     $this->clearingDecisionProcessor = $this->container->get('businessrules.clearing_decision_processor');
     $this->agentLicenseEventProcessor = $this->container->get('businessrules.agent_license_event_processor');
     $this->licenseMapUsage = $licenseMapUsage;
     $this->agentSpecifOptions = "r:";
 }
示例#5
0
 function scheduler_disconnect($exitvalue)
 {
     if ($this->schedulerMode) {
         Agent::heartbeat_handler(SIGALRM);
         echo "BYE {$exitvalue}\n";
     }
 }