/** * Get the list of folders that contains rules. * * @return array */ public function getRulesFolders() { $folders = array(__DIR__ . '/../Rules'); if ($this->config !== null && $this->config->getGrabberRulesFolder() !== null) { $folders[] = $this->config->getGrabberRulesFolder(); } return $folders; }