示例#1
0
 /**
  * Gibt Pfad für den Namespace der Entities zurück
  *
  * @return Webforge\Common\System\Dir
  */
 public function getEntitiesPath()
 {
     if (!isset($this->entitiesPath)) {
         $this->entitiesPath = Code::namespaceToPath($this->entitiesNamespace, $this->project->dir('lib'));
     }
     return $this->entitiesPath;
 }
示例#2
0
 public function testNamespaceToPath_withoutDirParam()
 {
     $ds = DIRECTORY_SEPARATOR;
     $this->assertEquals(getcwd() . $ds . 'Psc' . $ds . 'Code' . $ds . 'Generate' . $ds, (string) Code::namespaceToPath('\\Psc\\Code\\Generate')->resolvePath());
 }