示例#1
0
文件: Web.php 项目: janpoem/kephp
 public function makeControllerClass(string $controller)
 {
     $class = path2class($controller);
     $class = add_namespace($class, $this->controllerNamespace);
     return $class;
 }
示例#2
0
 protected function parseClasses(SourceScanner $scanner)
 {
     if (preg_match_all($this->regexClass, $this->content, $matches, PREG_SET_ORDER)) {
         foreach ($matches as $match) {
             $type = $match[1];
             $class = $match[2];
             $this->classParser = new ClassParser(add_namespace($class, $this->namespace), $type, $this->path);
             $this->classParser->parse($scanner);
         }
     }
     return $this;
 }