예제 #1
0
파일: Parser.php 프로젝트: aleksabp/bolt
 /**
  * Start up the parser by importing the data file to $this->regexes
  *
  * @param array $regexes
  */
 public function __construct(array $regexes)
 {
     parent::__construct($regexes);
     $this->deviceParser = new DeviceParser($this->regexes);
     $this->operatingSystemParser = new OperatingSystemParser($this->regexes);
     $this->userAgentParser = new UserAgentParser($this->regexes);
 }
예제 #2
0
 public function tearDown()
 {
     AbstractParser::$defaultFile = null;
 }