示例#1
0
 public function __construct($message = 'Regex')
 {
     parent::__construct($message);
     $this->providers[] = function () {
         return null;
     };
 }
示例#2
0
 public function __construct($message = 'Path')
 {
     parent::__construct($message);
     $this->providers[] = function () {
         null;
     };
 }
示例#3
0
 public function __construct($message = 'URL Factory')
 {
     parent::__construct($message);
     $factory = new h\uri\factory();
     $factory->do_register_factory(h\string('http'), new h\http\uri_factory($factory));
     $factory->do_register_factory(h\string('net_path'), new h\uri\net_path_factory($factory));
     $factory->do_register_factory(h\string('hierarchical_part'), new h\uri\hierarchical_part_factory($factory));
     $factory->do_register_factory(h\string('host'), new h\uri\host_factory($factory));
     $factory->do_register_factory(h\string('port'), new h\uri\port_factory($factory));
     $factory->do_register_factory(h\string('absolute_path'), new h\uri\path_factory($factory));
     $this->factory = $factory;
     $this->providers[] = function () {
         return 'http://localhost/';
     };
     $this->providers[] = function () {
         return 'http://projects.lupusmic.org/horn';
     };
     $this->providers[] = function () {
         return 'http://projects.lupusmic.org:8080/horn';
     };
 }
示例#4
0
 public function __construct($message = 'Autotest')
 {
     parent::__construct($message);
 }